Data type traits for double-precision floating point. More...
#include <cmtkDataTypeTraits.h>
Public Types | |
typedef DataTypeTraits< double > | Self |
This class. | |
Static Public Member Functions | |
static ScalarDataType | GetScalarDataType () |
Get the scalar type ID constant for this type. | |
static double | Abs (const double value) |
Get absolute value. | |
template<class T > | |
static double | Convert (const T value, const bool paddingFlag=false, const double paddingData=0) |
Return given value converted (and rounded) to discrete type. | |
static double | ChoosePaddingValue () |
Return PADDING data value (i.e. | |
Static Public Attributes | |
static const ScalarDataType | DataTypeID = TYPE_DOUBLE |
Data type traits for double-precision floating point.
Definition at line 105 of file cmtkDataTypeTraits.h.
typedef DataTypeTraits<double> cmtk::DataTypeTraits< double >::Self |
This class.
Definition at line 109 of file cmtkDataTypeTraits.h.
static double cmtk::DataTypeTraits< double >::Abs | ( | const double | value ) | [inline, static] |
Get absolute value.
Definition at line 117 of file cmtkDataTypeTraits.h.
static double cmtk::DataTypeTraits< double >::ChoosePaddingValue | ( | ) | [inline, static] |
Return PADDING data value (i.e.
Inf) for the given type.
Definition at line 137 of file cmtkDataTypeTraits.h.
static double cmtk::DataTypeTraits< double >::Convert | ( | const T | value, |
const bool | paddingFlag = false , |
||
const double | paddingData = 0 |
||
) | [inline, static] |
Return given value converted (and rounded) to discrete type.
Definition at line 124 of file cmtkDataTypeTraits.h.
static ScalarDataType cmtk::DataTypeTraits< double >::GetScalarDataType | ( | ) | [inline, static] |
Get the scalar type ID constant for this type.
Definition at line 112 of file cmtkDataTypeTraits.h.
References cmtk::TYPE_DOUBLE.
const ScalarDataType cmtk::DataTypeTraits< double >::DataTypeID = TYPE_DOUBLE [static] |
Definition at line 114 of file cmtkDataTypeTraits.h.