holoscan::authoring::ForeignPayloadValue
holoscan::authoring::ForeignPayloadValue
Own one exact type-erased process-local payload value across an adapter boundary.
Constructors
ForeignPayloadValue
Create an empty value.
Methods
get
Recover the exact borrowed value when the process-local token matches.
Returns: Borrowed value, or null for an empty or different exact type.
Template parameters
T
Expected published payload type.
operator bool
Return whether this value owns a typed payload.
Static methods
from
Own one copyable published payload with its process-local type token.
Returns: Type-erased owning value.
Template parameters
T
Exact published payload type.
Parameters
value
Value moved into shared adapter-owned storage.