holoscan::BasicSourceRef
Refer to one logical source without carrying adapter ownership.
The reference contains only a strong plan-local SourceId and private immutable plan provenance. It never contains an authoring-object address, file descriptor, CUDA event, HoloMQ handle, adapter pointer, or Runtime object. A default value is invalid. Copying does not retain a binding or source generation.
Template parameters
Immutable logical source kind represented by this type.
Constructors
BasicSourceRef
Default
Overload 2
Construct an invalid source reference.
Methods
id
Return the plan-local logical source identity.
Returns: Assigned source identity, or invalid zero for an unbound value.
operator bool
Return whether this reference contains an assigned logical identity.
Returns: true when id is nonzero.
Static methods
kind
Return the immutable logical kind carried by this reference type.
Returns: Template source kind.