Data type traits for signed short. More...
#include <cmtkDataTypeTraits.h>
Public Types | |
typedef DataTypeTraits< signed short > | Self |
This class. | |
Static Public Member Functions | |
static ScalarDataType | GetScalarDataType () |
Get the scalar type ID constant for this type. | |
static signed short | Abs (const signed short value) |
Get absolute value. | |
template<class T > | |
static signed short | Convert (const T value, const bool paddingFlag=false, const signed short paddingData=0) |
Return given value converted (and rounded) to discrete type. | |
static signed short | ChoosePaddingValue () |
Return PADDING data value (i.e. | |
Static Public Attributes | |
static const ScalarDataType | DataTypeID = TYPE_SHORT |
static const Types::DataItem | Min = SHRT_MIN |
Minimum value in this type. | |
static const Types::DataItem | Max = SHRT_MAX |
Maximum value in this type. |
Data type traits for signed short.
Definition at line 237 of file cmtkDataTypeTraits.h.
typedef DataTypeTraits<signed short> cmtk::DataTypeTraits< signed short >::Self |
This class.
Definition at line 241 of file cmtkDataTypeTraits.h.
static signed short cmtk::DataTypeTraits< signed short >::Abs | ( | const signed short | value ) | [inline, static] |
Get absolute value.
Definition at line 255 of file cmtkDataTypeTraits.h.
static signed short cmtk::DataTypeTraits< signed short >::ChoosePaddingValue | ( | ) | [inline, static] |
Return PADDING data value (i.e.
Inf) for the given type.
Definition at line 275 of file cmtkDataTypeTraits.h.
static signed short cmtk::DataTypeTraits< signed short >::Convert | ( | const T | value, |
const bool | paddingFlag = false , |
||
const signed short | paddingData = 0 |
||
) | [inline, static] |
Return given value converted (and rounded) to discrete type.
Definition at line 262 of file cmtkDataTypeTraits.h.
static ScalarDataType cmtk::DataTypeTraits< signed short >::GetScalarDataType | ( | ) | [inline, static] |
Get the scalar type ID constant for this type.
Definition at line 244 of file cmtkDataTypeTraits.h.
References cmtk::TYPE_SHORT.
const ScalarDataType cmtk::DataTypeTraits< signed short >::DataTypeID = TYPE_SHORT [static] |
Definition at line 246 of file cmtkDataTypeTraits.h.