Skip to navigation

holoscan::authoring::ForeignPayloadValue

Beta
View as Markdown

Own one exact type-erased process-local payload value across an adapter boundary.

#include <holoscan/authoring/registry.hpp>

Constructors

ForeignPayloadValue

holoscan::authoring::ForeignPayloadValue::ForeignPayloadValue() = default

Create an empty value.


Methods

get

template <PublishedPayload T>
const T * holoscan::authoring::ForeignPayloadValue::get() const noexcept

Recover the exact borrowed value when the process-local token matches.

Returns: Borrowed value, or null for an empty or different exact type.

Template parameters

T
PublishedPayload

Expected published payload type.

operator bool

holoscan::authoring::ForeignPayloadValue::operator bool() const noexcept

Return whether this value owns a typed payload.


Static methods

from

template <PublishedPayload T>
static ForeignPayloadValue holoscan::authoring::ForeignPayloadValue::from(
T value
)

Own one copyable published payload with its process-local type token.

Returns: Type-erased owning value.

Template parameters

T
PublishedPayload

Exact published payload type.

Parameters

value
T

Value moved into shared adapter-owned storage.


Member variables

NameTypeDescription
holder_std::shared_ptr< const void >
value_const void *
local_type_token_const void *