Data type traits for unsigned char (byte). More...
#include <cmtkDataTypeTraits.h>
Public Types | |
typedef DataTypeTraits< byte > | Self |
This class. | |
Static Public Member Functions | |
static ScalarDataType | GetScalarDataType () |
Get the scalar type ID constant for this type. | |
static byte | Abs (const byte value) |
Get absolute value. | |
template<class T > | |
static byte | Convert (const T value, const bool paddingFlag=false, const byte paddingData=0) |
Return given value converted (and rounded) to discrete type. | |
static byte | ChoosePaddingValue () |
Return PADDING data value (i.e. | |
Static Public Attributes | |
static const ScalarDataType | DataTypeID = TYPE_BYTE |
static const Types::DataItem | Min = 0 |
Minimum value in this type. | |
static const Types::DataItem | Max = UCHAR_MAX |
Maximum value in this type. |
Data type traits for unsigned char (byte).
Definition at line 145 of file cmtkDataTypeTraits.h.
typedef DataTypeTraits<byte> cmtk::DataTypeTraits< byte >::Self |
This class.
Definition at line 149 of file cmtkDataTypeTraits.h.
static byte cmtk::DataTypeTraits< byte >::Abs | ( | const byte | value ) | [inline, static] |
Get absolute value.
Definition at line 163 of file cmtkDataTypeTraits.h.
static byte cmtk::DataTypeTraits< byte >::ChoosePaddingValue | ( | ) | [inline, static] |
Return PADDING data value (i.e.
Inf) for the given type.
Definition at line 183 of file cmtkDataTypeTraits.h.
static byte cmtk::DataTypeTraits< byte >::Convert | ( | const T | value, |
const bool | paddingFlag = false , |
||
const byte | paddingData = 0 |
||
) | [inline, static] |
Return given value converted (and rounded) to discrete type.
Definition at line 170 of file cmtkDataTypeTraits.h.
static ScalarDataType cmtk::DataTypeTraits< byte >::GetScalarDataType | ( | ) | [inline, static] |
Get the scalar type ID constant for this type.
Definition at line 152 of file cmtkDataTypeTraits.h.
References cmtk::TYPE_BYTE.
const ScalarDataType cmtk::DataTypeTraits< byte >::DataTypeID = TYPE_BYTE [static] |
Definition at line 154 of file cmtkDataTypeTraits.h.