Skip to navigation

holoscan::PredicateBinding

Beta
View as Markdown

Own one cold predicate identity, callable, optional state, config, and input list.

Copying deep-clones the owned values. The descriptor has no runtime receiver address, plan identity, evaluator invocation API, or profile-admission authority. Compilation classifies the immutable descriptor and session construction copies or rebinds the accepted callable. Cold construction and copying may allocate and may propagate exceptions from owned values. Concurrent access is not safe when any thread mutates or replaces the binding; externally synchronize mutation and any overlapping observation.

#include <holoscan/temporal_contract.hpp>

Constructors

PredicateBinding

Construct an invalid empty binding.

Destructor

~PredicateBinding

Destroy all owned cold callable, state, and config values.


Assignment operators

operator=

PredicateBinding & holoscan::PredicateBinding::operator=(
const PredicateBinding &other
)

Replace this descriptor with a deep copy.

Returns: This descriptor after replacement.

Parameters

other
const PredicateBinding &

Descriptor to copy.


Methods

operator bool

holoscan::PredicateBinding::operator bool() const noexcept

Return whether this descriptor contains a callable and valid identity.

Returns: true for a factory-created binding.

name

std::string_view holoscan::PredicateBinding::name() const noexcept

Return the copied local or qualified predicate name.

Returns: Borrowed view valid until this binding is modified or destroyed.

callable_kind

PredicateCallableKind holoscan::PredicateBinding::callable_kind() const noexcept

Return the cold callable classification.

Returns: Function, owned-functor, or explicit type-erased category.

has_config

bool holoscan::PredicateBinding::has_config() const noexcept

Return whether an explicit config value is owned.

Returns: true only for a config-bearing factory overload.

input_count

std::size_t holoscan::PredicateBinding::input_count() const noexcept

Return the number of declared additional predicate inputs.

Returns: Finite cold descriptor count.

expects_driver

bool holoscan::PredicateBinding::expects_driver() const noexcept

Member variables

NameTypeDescription
impl_std::unique_ptr< Impl >