Skip to navigation

holoscan::OperatorRef

Beta
View as Markdown

Identify one compiled operator and, optionally, one active run.

A plan-bound reference has a zero run generation and carries no active control authority. Runtime binds a separately authorized reference to a nonzero run generation before run-scoped operations. Numeric identities are fixed-size plan/run values, not object addresses or process-global names.

#include <holoscan/operator_ref.hpp>

Methods

valid

bool holoscan::OperatorRef::valid() const noexcept

Return whether operator and plan identities are both nonzero.

Returns: true for a plan-bound or run-bound reference with complete base identity.

plan_bound

bool holoscan::OperatorRef::plan_bound() const noexcept

Return whether this value identifies only an immutable plan operator.

Returns: true when valid is true and run_generation is zero.

run_bound

bool holoscan::OperatorRef::run_bound() const noexcept

Return whether this value identifies an operator in one active run.

Returns: true when valid is true and run_generation is nonzero.


Member variables

NameTypeDescription
idOperatorInstanceIdCompiled operator identity; zero is invalid.
plan_generationPlanGenerationIdImmutable plan identity; zero is invalid.
run_generationRunGenerationIdZero when plan-bound; nonzero when run-bound.