Skip to navigation

holoscan::ParamSnapshotScope

Beta
View as Markdown

Own one structured Parameter snapshot record-container scope.

The scope describes the outer set of Operator records owned by a snapshot; it is not a copy of the exact authority that produced the snapshot. A field-restricted capture therefore owns one Operator-scoped envelope whose field vector contains only the authorized field. Snapshots grant no control authority, and slicing can only remove records or fields already present.

#include <holoscan/parameter_snapshot.hpp>

Constructors

ParamSnapshotScope

holoscan::ParamSnapshotScope::ParamSnapshotScope() = default

Construct the complete-run root scope.

Construction does not allocate or bind the scope to a live run.


Methods

kind

ParamSnapshotScopeKind holoscan::ParamSnapshotScope::kind() const noexcept

Return the scope kind.

The call does not allocate or block.

Returns: Exact tagged interpretation of path.

path

const OperatorPath & holoscan::ParamSnapshotScope::path() const noexcept

Return the decoded scope path for non-root scope.

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

Returns: Borrowed path owned by this scope; empty for ParamSnapshotScopeKind::kRoot.


Static methods

root

static ParamSnapshotScope holoscan::ParamSnapshotScope::root() noexcept

Return complete-run root scope.

The call does not allocate or block.

Returns: Root scope that selects every policy-visible Operator in a run.

graph

static ParamSnapshotScope holoscan::ParamSnapshotScope::graph(
const GraphInstancePath &path
)

Return one embedded Graph-instance scope.

Returns: Owning scope that selects every Operator below path.

Throws: std::bad_alloc if copying the path segments into the owning scope fails.

Parameters

path
const GraphInstancePath &

Canonical decoded embedded Graph path.

operator_

static ParamSnapshotScope holoscan::ParamSnapshotScope::operator_(
)

Return one Operator scope.

A default-constructed empty path produces a deferred-invalid scope that ParamSnapshot::slice rejects with ErrorCode::kInvalidArgument.

Moving an existing path into this call does not allocate. Passing an lvalue may allocate while copying the by-value argument before the function is entered.

Returns: Owning scope that selects exactly path.

Throws: std::bad_alloc if construction of the by-value path argument fails.

Parameters

path
OperatorPath

Canonical decoded Operator path to own in the returned scope.


Member variables

NameTypeDescription
kind_ParamSnapshotScopeKind
path_OperatorPath