Data type traits for unsigned short. More...
#include <cmtkDataTypeTraits.h>
Public Types | |
typedef DataTypeTraits< int > | Self |
This class. | |
Static Public Member Functions | |
static ScalarDataType | GetScalarDataType () |
Get the scalar type ID constant for this type. | |
static int | Abs (const int value) |
Get absolute value. | |
template<class T > | |
static int | Convert (const T value, const bool paddingFlag=false, const int paddingData=0) |
Return given value converted (and rounded) to discrete type. | |
static int | ChoosePaddingValue () |
Return PADDING data value (i.e. | |
Static Public Attributes | |
static const ScalarDataType | DataTypeID = TYPE_INT |
static const Types::DataItem | Min = INT_MIN |
Minimum value in this type. | |
static const Types::DataItem | Max = INT_MAX |
Maximum value in this type. |
Data type traits for unsigned short.
Definition at line 329 of file cmtkDataTypeTraits.h.
typedef DataTypeTraits<int> cmtk::DataTypeTraits< int >::Self |
This class.
Definition at line 333 of file cmtkDataTypeTraits.h.
static int cmtk::DataTypeTraits< int >::Abs | ( | const int | value ) | [inline, static] |
Get absolute value.
Definition at line 347 of file cmtkDataTypeTraits.h.
static int cmtk::DataTypeTraits< int >::ChoosePaddingValue | ( | ) | [inline, static] |
Return PADDING data value (i.e.
Inf) for the given type.
Definition at line 367 of file cmtkDataTypeTraits.h.
static int cmtk::DataTypeTraits< int >::Convert | ( | const T | value, |
const bool | paddingFlag = false , |
||
const int | paddingData = 0 |
||
) | [inline, static] |
Return given value converted (and rounded) to discrete type.
Definition at line 354 of file cmtkDataTypeTraits.h.
static ScalarDataType cmtk::DataTypeTraits< int >::GetScalarDataType | ( | ) | [inline, static] |
Get the scalar type ID constant for this type.
Definition at line 336 of file cmtkDataTypeTraits.h.
References cmtk::TYPE_INT.
const ScalarDataType cmtk::DataTypeTraits< int >::DataTypeID = TYPE_INT [static] |
Definition at line 338 of file cmtkDataTypeTraits.h.