Skip to navigation

holoscan::RegionHandle

Beta
View as Markdown

Author one named logical region and its cold placement constraints.

This non-owning handle refers to one region in the originating Graph. It remains usable only while that Graph and declaration remain live. Region mutation is atomic on failure but is not thread-safe with any other read or mutation of the same Graph.

#include <holoscan/graph.hpp>

Constructors

RegionHandle

std::weak_ptr<detail::GraphState> state,
std::shared_ptr<const void> handle_identity
) noexcept

Methods

add

template <std::derived_from< OperatorBase > Op>
RegionHandle & holoscan::RegionHandle::add(
const OperatorHandle<Op> &op
)

Add one logical Operator to this region.

Returns: This handle for fluent authoring.

Throws: RuntimeError if the handle is foreign, stale, or already a member.

Template parameters

Op
std::derived_from< OperatorBase >

Parameters

op
const OperatorHandle<Op> &

Graph-owned Operator declaration.

constrain

RegionHandle & holoscan::RegionHandle::constrain(
RegionConstraint constraint
)

Add one unique backend-neutral region constraint.

Returns: This handle for fluent authoring.

Throws: RuntimeError if the constraint is invalid or duplicated.

Parameters

constraint
RegionConstraint

Valid constraint not already present by kind.

profile

RegionHandle & holoscan::RegionHandle::profile(
Profile profile
)

Set this region’s capability profile request.

Returns: This handle for fluent authoring.

Throws: RuntimeError if profile is invalid or already set.

Parameters

profile
Profile

Closed profile value.

id

RegionId holoscan::RegionHandle::id() const noexcept

Return this region’s snapshot-local authoring identity.

Returns: Nonzero region identity while the declaration is live.


Types

Typedefs

NameDefinitionDescription
graph_authoring_handle_tagvoidOpt this authoring handle out of replayable Graph captures.

Member variables

NameTypeDescription
state_std::weak_ptr< detail::GraphState >
id_RegionId
handle_identity_std::shared_ptr< const void >