Skip to navigation

holoscan::authoring::ConstructorHandleType

Beta
View as MarkdownOpen in Claude
template <typename T>

Bind one exact C++ interface type to its provider-owned descriptor.

Define the descriptor and this binding together in one provider source file, and return the binding from an exported accessor. Consumers then name the interface type and the descriptor in a single declaration, so a handle created for one type cannot be labeled as another.

#include <holoscan/authoring/constructor_handle.hpp>

Template parameters

T
typename

Exact interface type carried by handles of this type. const T and T are distinct.


Constructors

ConstructorHandleType

const ConstructorHandleDescriptor &descriptor
) noexcept

Bind descriptor to T.

Parameters

descriptor
const ConstructorHandleDescriptor &

Provider-owned descriptor with process lifetime.


Methods

descriptor

const ConstructorHandleDescriptor & holoscan::authoring::ConstructorHandleType<T>::descriptor() const noexcept

Return the bound descriptor.


Member variables

NameTypeDescription
descriptor_const ConstructorHandleDescriptor *