Class ArgType

class ArgType

Struct for the type information of an argument.

Public Functions

ArgType() = default

inline ArgType(ArgElementType element_type, ArgContainerType container_type)

Construct a new ArgType object.

Parameters
  • element_type – The element type of the argument.

  • container_type – The container type of the argument.

inline ArgElementType element_type() const

Get the element type of the argument.

Returns

The element type of the argument.

inline ArgContainerType container_type() const

Get the container type of the argument.

Returns

The container type of the argument.

Public Static Functions

static inline ArgElementType get_element_type(std::type_index index)

Get the element type of the argument.

Parameters

index – The type index of the argument.

Returns

The element type of the argument.

template<typename typeT>
static inline ArgType create()

Create the argument type from the given type.

Template Parameters

typeT – The type of the argument.

Returns

The argument type.

© Copyright 2022, NVIDIA. Last updated on Jun 28, 2023.