holoscan::authoring::ConstructorHandle
holoscan::authoring::ConstructorHandle
Own one typed C++ object for a registered Operator construction call.
Copies share ownership of the original object and preserve its control block; recovery never creates a second owner from a raw pointer. A handle also records the process that created it so that an object inherited through fork() is rejected rather than admitted by address.
Constructors
ConstructorHandle
Create an empty handle, which no construction call accepts.
Methods
as_shared
Recover an independent shared owner after checking the exact descriptor.
Returns: A shared owner of the original object, or a type-mismatch or empty-handle error.
Parameters
Typed descriptor binding expected by the caller.
type
Return the descriptor this handle was created with, or nullptr when empty.
operator bool
Return whether this handle owns an object.
created_in_current_process
Return whether this handle was created in the calling process.
owner
Return the type-erased owner, preserving the original control block.
Static methods
from_shared
Wrap one shared owner under its exact interface type.
Returns: The handle, or AUTHORING_CONSTRUCTOR_HANDLE_NULL for a null owner.
Parameters
Typed descriptor binding for T.
Non-null shared owner; its control block is retained unchanged.