MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Numerical traits used by math (e.g. More...
#include <mdsMathTraits.h>
Public Types | |
enum | { isPointer = SIsPointer<T>::RESULT } |
Simple type checks. More... | |
enum | { isReference = SIsReference<T>::RESULT } |
enum | { isMemberPointer = SIsMemberPointer<T>::RESULT } |
enum | { isUnsignedInt = SIsUnsignedInt<T>::RESULT } |
enum | { isSignedInt = SIsSignedInt<T>::RESULT } |
enum | { isFloat = SIsFloat<T>::RESULT } |
enum | { isConst = SIsConst<T>::RESULT } |
enum | { isIntegral = isUnsignedInt || isSignedInt || SIsOtherInt<T>::RESULT } |
enum | { isFundamental = isIntegral || isFloat || SIsOtherStd<T>::RESULT } |
typedef SIsConst< T >::tNonConst | tNonConst |
Non-const type if T is constant. | |
typedef T | tNumber |
Type representing the number in logarithmic space. | |
typedef SSelect< isFundamental||isPointer||isMemberPointer, T, tReferred & >::RESULT | tParameter |
Type used to pass type T as a function/method parameter. | |
typedef SIsPointer< T >::tPointee | tPointee |
Pointee type if T is pointer. | |
typedef SIsReference< T > ::tReferred | tReferred |
Referred type if T is reference. | |
Public Member Functions | |
template<> | |
float | getLogSmall () |
template<> | |
double | getLogSmall () |
template<> | |
float | getLogZero () |
template<> | |
double | getLogZero () |
template<> | |
mds::sys::tInt8 | getMax () |
template<> | |
mds::sys::tUInt8 | getMax () |
template<> | |
mds::sys::tInt16 | getMax () |
template<> | |
mds::sys::tUInt16 | getMax () |
template<> | |
mds::sys::tInt32 | getMax () |
template<> | |
mds::sys::tUInt32 | getMax () |
template<> | |
mds::img::tRGBPixel | getMax () |
template<> | |
mds::img::tRGBPixel | getMax () |
template<> | |
mds::sys::tInt8 | getMin () |
template<> | |
mds::sys::tUInt8 | getMin () |
template<> | |
mds::sys::tInt16 | getMin () |
template<> | |
mds::sys::tUInt16 | getMin () |
template<> | |
mds::sys::tInt32 | getMin () |
template<> | |
mds::sys::tUInt32 | getMin () |
template<> | |
mds::img::tRGBPixel | getMin () |
template<> | |
mds::img::tRGBPixel | getMin () |
template<> | |
float | getMinExpArg () |
template<> | |
double | getMinExpArg () |
template<> | |
float | getMinLogArg () |
template<> | |
double | getMinLogArg () |
template<> | |
mds::sys::tInt8 | getZero () |
template<> | |
mds::sys::tUInt8 | getZero () |
template<> | |
mds::sys::tInt16 | getZero () |
template<> | |
mds::sys::tUInt16 | getZero () |
template<> | |
mds::sys::tInt32 | getZero () |
template<> | |
mds::sys::tUInt32 | getZero () |
template<> | |
mds::img::tRGBPixel | getZero () |
template<> | |
mds::img::tRGBPixel | getZero () |
Static Public Member Functions | |
static T | getLogSmall () |
Returns number in the logarithmic space that is small enough so it is considered to be the log(0) value. | |
static T | getLogZero () |
Returns value representing log(0) in the logarithmic space. | |
static T | getMax () |
Maximal value of the type T. | |
static T | getMin () |
Minimal value of the type T. | |
static T | getMinExpArg () |
Lowest argument of the exp() function (= log(getMinLogArg())). | |
static T | getMinLogArg () |
Lowest argument of the log() function (= exp(getMinExpArg())). | |
static T | getMinLogExp () |
Returns minimal exponent of a number in logarithmic space. | |
static tSize | getSize () |
Returns size of the type T in bytes. | |
static T | getZero () |
Zero defined for the type T. |
Numerical traits used by math (e.g.
arithmetic in logarithmic space).
typedef SIsConst<T>::tNonConst mds::CTypeTraits< T >::tNonConst [inherited] |
Non-const type if T is constant.
typedef T mds::math::CMathTraits< T >::tNumber |
Type representing the number in logarithmic space.
typedef SSelect<isFundamental || isPointer || isMemberPointer, T, tReferred&>::RESULT mds::CTypeTraits< T >::tParameter [inherited] |
Type used to pass type T as a function/method parameter.
typedef SIsPointer<T>::tPointee mds::CTypeTraits< T >::tPointee [inherited] |
Pointee type if T is pointer.
typedef SIsReference<T>::tReferred mds::CTypeTraits< T >::tReferred [inherited] |
Referred type if T is reference.
static T mds::math::CMathTraits< T >::getLogSmall | ( | ) | [static] |
Returns number in the logarithmic space that is small enough so it is considered to be the log(0) value.
float mds::math::CMathTraits< float >::getLogSmall | ( | ) |
double mds::math::CMathTraits< double >::getLogSmall | ( | ) |
static T mds::math::CMathTraits< T >::getLogZero | ( | ) | [static] |
Returns value representing log(0) in the logarithmic space.
float mds::math::CMathTraits< float >::getLogZero | ( | ) |
double mds::math::CMathTraits< double >::getLogZero | ( | ) |
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getMax | ( | ) | [inherited] |
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getMax | ( | ) | [inherited] |
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getMax | ( | ) | [inherited] |
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getMax | ( | ) | [inherited] |
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getMax | ( | ) | [inherited] |
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getMax | ( | ) | [inherited] |
static T mds::CTypeTraits< T >::getMax | ( | ) | [static, inherited] |
Maximal value of the type T.
mds::img::tRGBPixel mds::CTypeTraits< mds::img::tRGBPixel >::getMax | ( | ) | [inherited] |
mds::img::tRGBPixel mds::CTypeTraits< mds::img::tRGBPixel >::getMax | ( | ) | [inherited] |
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getMin | ( | ) | [inherited] |
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getMin | ( | ) | [inherited] |
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getMin | ( | ) | [inherited] |
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getMin | ( | ) | [inherited] |
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getMin | ( | ) | [inherited] |
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getMin | ( | ) | [inherited] |
mds::img::tRGBPixel mds::CTypeTraits< mds::img::tRGBPixel >::getMin | ( | ) | [inherited] |
mds::img::tRGBPixel mds::CTypeTraits< mds::img::tRGBPixel >::getMin | ( | ) | [inherited] |
static T mds::CTypeTraits< T >::getMin | ( | ) | [static, inherited] |
Minimal value of the type T.
static T mds::math::CMathTraits< T >::getMinExpArg | ( | ) | [static] |
Lowest argument of the exp() function (= log(getMinLogArg())).
float mds::math::CMathTraits< float >::getMinExpArg | ( | ) |
double mds::math::CMathTraits< double >::getMinExpArg | ( | ) |
static T mds::math::CMathTraits< T >::getMinLogArg | ( | ) | [static] |
Lowest argument of the log() function (= exp(getMinExpArg())).
float mds::math::CMathTraits< float >::getMinLogArg | ( | ) |
double mds::math::CMathTraits< double >::getMinLogArg | ( | ) |
static T mds::math::CMathTraits< T >::getMinLogExp | ( | ) | [static] |
Returns minimal exponent of a number in logarithmic space.
static tSize mds::CTypeTraits< T >::getSize | ( | ) | [static, inherited] |
Returns size of the type T in bytes.
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getZero | ( | ) | [inherited] |
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getZero | ( | ) | [inherited] |
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getZero | ( | ) | [inherited] |
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getZero | ( | ) | [inherited] |
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getZero | ( | ) | [inherited] |
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getZero | ( | ) | [inherited] |
static T mds::CTypeTraits< T >::getZero | ( | ) | [static, inherited] |
Zero defined for the type T.
mds::img::tRGBPixel mds::CTypeTraits< mds::img::tRGBPixel >::getZero | ( | ) | [inherited] |
mds::img::tRGBPixel mds::CTypeTraits< mds::img::tRGBPixel >::getZero | ( | ) | [inherited] |