cartobase  4.7.0
DataTypeInfo< DataType > Class Template Reference

DataTypeInfo class is a hint to access data type information. More...

#include <cartobase/type/datatypeinfo.h>

Public Types

typedef carto::DataTypeTraits< DataType > DataTypeTraitsType
 

Static Public Member Functions

static uint8_t samples ()
 Number of channels for the DataType. More...
 
static uint8_t depth ()
 Depth of channels for the DataType. More...
 
static const std::string channelType ()
 std::string that represents the channel type for the DataType More...
 

Detailed Description

template<class DataType>
class DataTypeInfo< DataType >

DataTypeInfo class is a hint to access data type information.

This class allows a program to obtain information about the representation of a data type (number of channels, depth, ...).

Template Parameters
DataTypedata type to get information about (uint8_t, VoxelRGB, VoxelRGBA, ...)

Definition at line 51 of file datatypeinfo.h.

Member Typedef Documentation

◆ DataTypeTraitsType

template<class DataType >
typedef carto::DataTypeTraits<DataType> DataTypeInfo< DataType >::DataTypeTraitsType

Definition at line 55 of file datatypeinfo.h.

Member Function Documentation

◆ channelType()

template<class DataType >
const std::string DataTypeInfo< DataType >::channelType ( )
inlinestatic

std::string that represents the channel type for the DataType

Definition at line 88 of file datatypeinfo.h.

References carto::DataTypeCode< T >::dataType().

◆ depth()

template<class DataType >
uint8_t DataTypeInfo< DataType >::depth ( )
inlinestatic

Depth of channels for the DataType.

Definition at line 82 of file datatypeinfo.h.

References carto::DataTypeTraits< DataType >::channelcount.

◆ samples()

template<class DataType >
uint8_t DataTypeInfo< DataType >::samples ( )
inlinestatic

Number of channels for the DataType.

Definition at line 76 of file datatypeinfo.h.

References carto::DataTypeTraits< DataType >::channelcount.


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