Skip to navigation

holoscan::PredicateInputView

Beta
View as Markdown
template <PublishedPayload T>

Borrow one immutable scalar sample during predicate evaluation.

Runtime creates a view only for a selected or reused scalar input. The view owns neither the sample nor its read claim and expires with the predicate evaluation or fired activation that adopted the pinned sample. It exposes no mutable payload, endpoint, transport handle, or ownership extension.

#include <holoscan/predicate_input_view.hpp>

Template parameters

T
PublishedPayload

Constructors

PredicateInputView

const PredicateInputView &other
) noexcept = default

Copy the same predicate-scoped immutable sample view.

Parameters

other
const PredicateInputView &

View whose borrowed binding and generation evidence are copied.

Destructor

~PredicateInputView

holoscan::PredicateInputView<T>::~PredicateInputView() noexcept = default

Destroy this view without retaining or releasing the pinned sample.


Assignment operators

operator=

PredicateInputView & holoscan::PredicateInputView<T>::operator=(
const PredicateInputView &other
) noexcept = default

Replace this view with another predicate-scoped borrowed binding.

Returns: This view after replacement.

Parameters

other
const PredicateInputView &

View whose borrowed binding and generation evidence are copied.


Methods

sample

const Sample<T> & holoscan::PredicateInputView<T>::sample() const noexcept

Return the pinned immutable sample.

Preconditions

The view’s generation remains active and the binding contains a scalar sample.

Returns: Predicate-evaluation-scoped sample reference.

selection

InputSelection holoscan::PredicateInputView<T>::selection() const noexcept

Return the frozen selection outcome for this sample.

Returns: Selected or reused state and its reason.

validate

void holoscan::PredicateInputView<T>::validate() const noexcept

Member variables

NameTypeDescription
binding_detail::PredicateInputBinding< T >