Skip to navigation

holoscan::FlowHandle

Beta
View as MarkdownOpen in Claude
template <PublishedPayload SourceT, PublishedPayload TargetT = SourceT>

Hold one semantically compatible typed Graph edge declaration.

Different endpoint types are admitted only when both declare explicit raw-POD contracts and their complete canonical name, version, object layout, and field records compare equal. Every other payload family remains exact-C++-type only.

#include <holoscan/graph.hpp>

Template parameters

SourceT
PublishedPayload

Exact C++ source payload type.

TargetT
PublishedPayloadDefaults to SourceT

Exact C++ target payload type; defaults to SourceT.


Constructors

FlowHandle

holoscan::FlowHandle<SourceT, TargetT>::FlowHandle(
std::weak_ptr<detail::GraphState> state,
EdgeId id,
GraphPortId source,
GraphPortId target,
std::shared_ptr<const void> handle_identity
) noexcept

Methods

id

EdgeId holoscan::FlowHandle<SourceT, TargetT>::id() const noexcept

Return the snapshot-local authored edge identity.

Returns: Nonzero edge identity while the source Graph exists.

source

const Output<SourceT> & holoscan::FlowHandle<SourceT, TargetT>::source() const

Resolve the current source declaration.

Returns: Current output member after any atomic parameter reconstruction.

Throws: RuntimeError if the Graph retired or the structural declaration changed.

target

const Input<TargetT> & holoscan::FlowHandle<SourceT, TargetT>::target() const

Resolve the current target declaration.

Returns: Current input member after any atomic parameter reconstruction.

Throws: RuntimeError if the Graph retired or the structural declaration changed.

graph_valid

bool holoscan::FlowHandle<SourceT, TargetT>::graph_valid() const noexcept

Return whether this edge remains owned by its source Graph.

Returns: True while the Graph and nonzero authoring identity remain 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_EdgeId
source_GraphPortId
target_GraphPortId
handle_identity_std::shared_ptr< const void >