holoscan::ParamSnapshotScope
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.
Constructors
ParamSnapshotScope
Default
Overload 2
Construct the complete-run root scope.
Construction does not allocate or bind the scope to a live run.
Methods
kind
Return the scope kind.
The call does not allocate or block.
Returns: Exact tagged interpretation of path.
path
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
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
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
Canonical decoded embedded Graph path.
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
Canonical decoded Operator path to own in the returned scope.