holoscan::ArgType

Beta
View as Markdown

Struct for the type information of an argument.

#include <holoscan/arg.hpp>

Constructors

ArgType

holoscan::ArgType::ArgType() = defaultholoscan::ArgType::ArgType() = default

Methods

element_type

ArgElementType holoscan::ArgType::element_type() const

Get the element type of the argument.

Returns: The element type of the argument.

container_type

ArgContainerType holoscan::ArgType::container_type() const

Get the container type of the argument.

Returns: The container type of the argument.

dimension

int32_t holoscan::ArgType::dimension() const

Get the dimension of the argument.

Returns: The dimension of the argument.

to_string

std::string holoscan::ArgType::to_string() const

Get a string representation of the argument type.

Returns: String representation of the argument type.

to_element_type_pair

template <class typeT>
static std::pair<const std::type_index, ArgElementType> holoscan::ArgType::to_element_type_pair(
ArgElementType element_type
)

Static methods

get_element_type

static ArgElementType holoscan::ArgType::get_element_type(
std::type_index index
)

Get the element type of the argument.

Returns: The element type of the argument.

Parameters

index
std::type_index

The type index of the argument.

create

template <typename typeT>
static ArgType holoscan::ArgType::create()static ArgType holoscan::ArgType::create()

Create the argument type from the given type.

Returns: The argument type.

Template parameters

typeT
typename

The type of the argument.


Member variables

NameTypeDescription
element_type_map_ staticstd::unordered_map< std::type_index, ArgElementType >
element_type_name_map_ staticconst std::unordered_map< ArgElementType, const char * >
element_type_ArgElementType
container_type_ArgContainerType
dimension_int32_t