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