Hermes
hermes::DataTypes Class Reference

DataType set of auxiliary functions. More...

Static Public Member Functions

static HERMES_DEVICE_CALLABLE DataType typeFrom (u8 index)
 Translates DataType from identifier number. More...
 
template<typename T >
static HERMES_DEVICE_CALLABLE DataType typeFrom ()
 Translates template type T to DataType. More...
 
static u32 typeSize (DataType type)
 Computes number of bytes from DataType. More...
 
static std::string typeName (DataType type)
 Gets DataType string name. More...
 

Detailed Description

DataType set of auxiliary functions.

Member Function Documentation

◆ typeFrom() [1/2]

template<typename T >
static HERMES_DEVICE_CALLABLE DataType hermes::DataTypes::typeFrom ( )
inlinestatic

Translates template type T to DataType.

Template Parameters
T
Returns

◆ typeFrom() [2/2]

static HERMES_DEVICE_CALLABLE DataType hermes::DataTypes::typeFrom ( u8  index)
inlinestatic

Translates DataType from identifier number.

Parameters
index
Returns

◆ typeName()

static std::string hermes::DataTypes::typeName ( DataType  type)
inlinestatic

Gets DataType string name.

Parameters
type
Returns

◆ typeSize()

static u32 hermes::DataTypes::typeSize ( DataType  type)
inlinestatic

Computes number of bytes from DataType.

Parameters
type
Returns

The documentation for this class was generated from the following file: