Data type traits for signed char. More...
#include <cmtkDataTypeTraits.h>
Public Types | |
typedef DataTypeTraits< char > | Self |
This class. | |
Static Public Member Functions | |
static ScalarDataType | GetScalarDataType () |
Get the scalar type ID constant for this type. | |
static char | Abs (const char value) |
Get absolute value. | |
template<class T > | |
static char | Convert (const T value, const bool paddingFlag=false, const char paddingData=0) |
Return given value converted (and rounded) to discrete type. | |
static char | ChoosePaddingValue () |
Return PADDING data value (i.e. | |
Static Public Attributes | |
static const ScalarDataType | DataTypeID = TYPE_CHAR |
static const Types::DataItem | Min = SCHAR_MIN |
Minimum value in this type. | |
static const Types::DataItem | Max = SCHAR_MAX |
Maximum value in this type. |
Data type traits for signed char.
Definition at line 191 of file cmtkDataTypeTraits.h.
typedef DataTypeTraits<char> cmtk::DataTypeTraits< char >::Self |
This class.
Definition at line 195 of file cmtkDataTypeTraits.h.
static char cmtk::DataTypeTraits< char >::Abs | ( | const char | value ) | [inline, static] |
Get absolute value.
Definition at line 209 of file cmtkDataTypeTraits.h.
static char cmtk::DataTypeTraits< char >::ChoosePaddingValue | ( | ) | [inline, static] |
Return PADDING data value (i.e.
Inf) for the given type.
Definition at line 229 of file cmtkDataTypeTraits.h.
static char cmtk::DataTypeTraits< char >::Convert | ( | const T | value, |
const bool | paddingFlag = false , |
||
const char | paddingData = 0 |
||
) | [inline, static] |
Return given value converted (and rounded) to discrete type.
Definition at line 216 of file cmtkDataTypeTraits.h.
static ScalarDataType cmtk::DataTypeTraits< char >::GetScalarDataType | ( | ) | [inline, static] |
Get the scalar type ID constant for this type.
Definition at line 198 of file cmtkDataTypeTraits.h.
References cmtk::TYPE_CHAR.
const ScalarDataType cmtk::DataTypeTraits< char >::DataTypeID = TYPE_CHAR [static] |
Definition at line 200 of file cmtkDataTypeTraits.h.