Skip to navigation

holoscan::params::ParamRebindTargetScope

Beta
View as Markdown

Own the exact destination Operator authority for one cold rebind target.

A default-constructed value is the strict whole-Graph scope. Graph and Operator paths are decoded owning values; no member borrows a Graph, snapshot, or caller span. Capture canonicalizes an Operator set by rendered exact path and rejects an empty, duplicate, unknown, or over-limit set rather than inferring authority from source archive contents.

#include <holoscan/params/rebind.hpp>

Constructors

ParamRebindTargetScope

holoscan::params::ParamRebindTargetScope::ParamRebindTargetScope() = default

Construct the strict whole-Graph destination scope.

Construction does not allocate or bind to a live Graph.


Methods

kind

ParamRebindTargetScopeKind holoscan::params::ParamRebindTargetScope::kind() const noexcept

Return the exact destination scope category.

paths

std::span<const std::vector<std::string>> holoscan::params::ParamRebindTargetScope::paths() const noexcept

Return owning decoded paths supplied for this scope.

The view remains valid until this scope is assigned or destroyed.

Returns: Empty for whole-Graph scope, one path for Graph/Operator scope, or the caller set.


Static methods

whole_graph

static ParamRebindTargetScope holoscan::params::ParamRebindTargetScope::whole_graph() noexcept

Return the strict whole-Graph destination scope.

Returns: Scope requiring every destination Operator to expose an admitted schema.

graph

static ParamRebindTargetScope holoscan::params::ParamRebindTargetScope::graph(
const GraphInstancePath &path
)

Return one exact embedded-Graph destination scope.

Returns: Owning scope selecting every Operator below the supplied path.

Throws: std::bad_alloc if copying the decoded path fails.

Parameters

path
const GraphInstancePath &

Canonical decoded embedded Graph instance path.

operator_

static ParamRebindTargetScope holoscan::params::ParamRebindTargetScope::operator_(
const OperatorPath &path
)

Return one exact Operator destination scope.

An empty path is retained as deferred-invalid input that target capture rejects.

Returns: Scope selecting exactly the supplied path.

Parameters

path
const OperatorPath &

Owning canonical decoded Operator path.

operator_set

static ParamRebindTargetScope holoscan::params::ParamRebindTargetScope::operator_set(
const std::vector<OperatorPath> &paths
)

Return one explicit exact Operator-set destination scope.

Empty paths, an empty set, duplicates, and the finite capture limit fail closed.

Returns: Scope whose paths are canonicalized and validated during target capture.

Parameters

paths
const std::vector<OperatorPath> &

Owning decoded Operator paths; caller order has no semantic meaning.


Member variables

NameTypeDescription
kind_ParamRebindTargetScopeKind
paths_std::vector< std::vector< std::string > >