holoscan::authoring::OpaqueOperatorRef
holoscan::authoring::OpaqueOperatorRef
Type-erase one exact typed Operator authoring handle.
Only the thunk table emitted for the exact Operator type can reconstruct its typed handle from stable Graph identity. The reference retains the Graph weakly so lifecycle thunks can connect distinct registered Operator types without extending the Graph lifetime.
Constructors
OpaqueOperatorRef
Default
Copy
Create an empty invalid reference.
Methods
graph_valid
Return whether the exact Graph declaration remains live.
Returns: true only while the Graph owns the registered Operator.
name
Return the Operator’s owned local declaration name.
Returns: Empty view after Graph retirement.
path
Return the canonical percent-encoded Graph/Operator lookup path.
Returns: Owned path using the no-leading-slash OperatorPath grammar.
Throws: RuntimeError when the Graph declaration is no longer live.
execution_partition
Return the accepted partition containing this exact root-Graph Operator.
Returns: Independently retained partition view.
Throws: RuntimeError with the native typed code for an unusable, foreign, stale, or unknown identity.
Parameters
Partition authority retained by one accepted execution plan.
port
Resolve one current local port without knowing the exact Operator type.
Returns: Logical reference that preserves the owning Operator’s exact type token.
Throws: RuntimeError when the reference is stale or the port is unknown.
Parameters
Exact setup-declared local port name.
ports
Copy current setup-order port records without knowing the exact Operator type.
Throws: RuntimeError when the reference is stale.
operator bool
Return whether this reference contains a registered declaration.
Returns: The same result as graph_valid.
holds_type
typed_handle
Static methods
region_add
Add an erased Operator batch to one region atomically.
Throws: RuntimeError under the matching RegionHandle::add contract.
Parameters
Destination region owned by the same live Graph.
Non-empty registered Operator references.
region_add_members
Add erased Operator and embedded-Graph members to one region atomically.
Throws: RuntimeError under the matching RegionHandle::add contract.
Parameters
Destination region owned by the same live Graph.
Registered Operator references, which may be empty.
Embedded-Graph references, which may be empty when operators are present.
partition_add
Add an erased Operator batch to one partition atomically.
Throws: RuntimeError under the matching variadic PartitionHandle::add contract.
Parameters
Destination partition owned by the same live Graph.
Non-empty registered Operator references.
lifecycle_before
Author one cross-type lifecycle dependency through resolved Graph identities.
lifecycle_allow_self_restart
Authorize one erased Operator to request its own restart.
lifecycle_allow_external_restart
Authorize external control to restart one erased Operator.
lifecycle_allow_restart_request
Authorize one erased requester to restart another erased Operator.
from_handle
Type-erase one public typed Operator handle.