Skip to navigation

holoscan::ExportedTopic

Beta
View as Markdown
template <PublishedPayload T>

Identify an intrinsic Graph-to-external typed boundary.

#include <holoscan/external_topic.hpp>

Template parameters

T
PublishedPayload

Exact public payload type leaving the Graph.


Constructors

ExportedTopic

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

Methods

input

Input<T> & holoscan::ExportedTopic<T>::input() const

Return the Graph-side input used by typed add_flow.

Returns: Dynamically resolved boundary declaration owned by the source Graph.

Throws: RuntimeError if the Graph was destroyed or failed composition, or the declaration was otherwise retired. The handle never returns a pointer to discarded draft storage.

graph_valid

bool holoscan::ExportedTopic<T>::graph_valid() const noexcept

Return whether the source Graph still owns this boundary.

Returns: true only while the exact Graph declaration can be re-resolved.

operator bool

holoscan::ExportedTopic<T>::operator bool() const noexcept

Return whether this handle names a live Graph declaration.

Returns: The same declaration-liveness result as graph_valid.


Types

Typedefs

NameDefinitionDescription
graph_authoring_handle_tagvoidOpt this authoring handle out of replayable Graph captures.

Member variables

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