holoscan::SourceId
Identify one logical activation-candidate source within an ExecutionPlan.
Compilation assigns nonzero values after canonical source ordering. The identifier is strong, fixed-width, and plan-local. It covers both declared physical readiness sources and compiler-synthesized clock or predicate sources, but does not encode source kind, an authoring-object address, or a backend handle. Zero is the invalid or unbound value. SourceId supports equality and hashing only because its numeric representation carries no semantic order.
Numeric values may be reused by different plans. Equality therefore has meaning only when both operands are known to belong to the same ExecutionPlan and plan/catalog generation. Runtime, trace, and transport records that retain a SourceId beyond an immediate plan-local lookup must also retain the originating plan or catalog identity. A value from a replaced, foreign, or stale plan must not be looked up in the current plan even when its numeric representation collides.
Construction and access to the numeric representation are restricted to Core implementation helpers so callers cannot manufacture a live source authority. Copies remain ordinary values; lifecycle generation and adapter authority are represented separately. The value owns no resources, performs no allocation, and is safe to copy, hash, or compare concurrently.
Constructors
SourceId
Default
Overload 2
Construct an invalid source identifier.
Methods
operator bool
Return whether this identifier contains a compiler-assigned nonzero value.
Returns: true for a nonzero identifier; otherwise false.