holoscan::ParameterWrapper

Beta
View as Markdown

Class to wrap a parameter with std::any.

#include <holoscan/parameter.hpp>

Constructors

ParameterWrapper

holoscan::ParameterWrapper::ParameterWrapper() = defaultholoscan::ParameterWrapper::ParameterWrapper() = default

Methods

type

const std::type_info & holoscan::ParameterWrapper::type() const

Get the type of the parameter.

Returns: The type info of the parameter.

arg_type

const ArgType & holoscan::ParameterWrapper::arg_type() constconst ArgType & holoscan::ParameterWrapper::arg_type() const

Get the type of the parameter as an ArgType.

Returns: The type of the parameter as an ArgType.

value

std::any & holoscan::ParameterWrapper::value()

Get the value of the parameter.

Returns: The reference to the value of the parameter.

storage_ptr

void * holoscan::ParameterWrapper::storage_ptr() const

Get the pointer to the parameter storage.

Returns: The pointer to the parameter storage.


Member variables

NameTypeDescription
type_const std::type_info *The element type of Parameter.
arg_type_ArgTypeThe type of the argument.
value_std::anyThe value of the parameter.
storage_ptr_void *The pointer to the parameter storage.