MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Member Functions
mds::math::CMathTraits< T > Class Template Reference

Numerical traits used by math (e.g. More...

#include <mdsMathTraits.h>

Inheritance diagram for mds::math::CMathTraits< T >:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

template<typename T>
class mds::math::CMathTraits< T >

Numerical traits used by math (e.g.

arithmetic in logarithmic space).


Member Typedef Documentation

template<typename T>
typedef SIsConst<T>::tNonConst mds::CTypeTraits< T >::tNonConst [inherited]

Non-const type if T is constant.

template<typename T >
typedef T mds::math::CMathTraits< T >::tNumber

Type representing the number in logarithmic space.

template<typename T>
typedef SSelect<isFundamental || isPointer || isMemberPointer, T, tReferred&>::RESULT mds::CTypeTraits< T >::tParameter [inherited]

Type used to pass type T as a function/method parameter.

template<typename T>
typedef SIsPointer<T>::tPointee mds::CTypeTraits< T >::tPointee [inherited]

Pointee type if T is pointer.

template<typename T>
typedef SIsReference<T>::tReferred mds::CTypeTraits< T >::tReferred [inherited]

Referred type if T is reference.


Member Enumeration Documentation

template<typename T>
anonymous enum [inherited]

Simple type checks.

Enumerator:
isPointer 
template<typename T>
anonymous enum [inherited]
Enumerator:
isReference 
template<typename T>
anonymous enum [inherited]
Enumerator:
isMemberPointer 
template<typename T>
anonymous enum [inherited]
Enumerator:
isUnsignedInt 
template<typename T>
anonymous enum [inherited]
Enumerator:
isSignedInt 
template<typename T>
anonymous enum [inherited]
Enumerator:
isFloat 
template<typename T>
anonymous enum [inherited]
Enumerator:
isConst 
template<typename T>
anonymous enum [inherited]
Enumerator:
isIntegral 
template<typename T>
anonymous enum [inherited]
Enumerator:
isFundamental 

Member Function Documentation

template<typename T >
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.

template<>
float mds::math::CMathTraits< float >::getLogSmall ( )
template<>
double mds::math::CMathTraits< double >::getLogSmall ( )
template<typename T >
static T mds::math::CMathTraits< T >::getLogZero ( ) [static]

Returns value representing log(0) in the logarithmic space.

template<>
float mds::math::CMathTraits< float >::getLogZero ( )
template<>
double mds::math::CMathTraits< double >::getLogZero ( )
template<>
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getMax ( ) [inherited]
template<>
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getMax ( ) [inherited]
template<>
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getMax ( ) [inherited]
template<>
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getMax ( ) [inherited]
template<>
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getMax ( ) [inherited]
template<>
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getMax ( ) [inherited]
template<typename T>
static T mds::CTypeTraits< T >::getMax ( ) [static, inherited]

Maximal value of the type T.

template<>
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getMin ( ) [inherited]
template<>
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getMin ( ) [inherited]
template<>
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getMin ( ) [inherited]
template<>
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getMin ( ) [inherited]
template<>
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getMin ( ) [inherited]
template<>
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getMin ( ) [inherited]
template<typename T>
static T mds::CTypeTraits< T >::getMin ( ) [static, inherited]

Minimal value of the type T.

template<typename T >
static T mds::math::CMathTraits< T >::getMinExpArg ( ) [static]

Lowest argument of the exp() function (= log(getMinLogArg())).

template<>
float mds::math::CMathTraits< float >::getMinExpArg ( )
template<>
double mds::math::CMathTraits< double >::getMinExpArg ( )
template<typename T >
static T mds::math::CMathTraits< T >::getMinLogArg ( ) [static]

Lowest argument of the log() function (= exp(getMinExpArg())).

template<>
float mds::math::CMathTraits< float >::getMinLogArg ( )
template<>
double mds::math::CMathTraits< double >::getMinLogArg ( )
template<typename T >
static T mds::math::CMathTraits< T >::getMinLogExp ( ) [static]

Returns minimal exponent of a number in logarithmic space.

template<typename T>
static tSize mds::CTypeTraits< T >::getSize ( ) [static, inherited]

Returns size of the type T in bytes.

template<>
mds::sys::tInt8 mds::CTypeTraits< mds::sys::tInt8 >::getZero ( ) [inherited]
template<>
mds::sys::tUInt8 mds::CTypeTraits< mds::sys::tUInt8 >::getZero ( ) [inherited]
template<>
mds::sys::tInt16 mds::CTypeTraits< mds::sys::tInt16 >::getZero ( ) [inherited]
template<>
mds::sys::tUInt16 mds::CTypeTraits< mds::sys::tUInt16 >::getZero ( ) [inherited]
template<>
mds::sys::tInt32 mds::CTypeTraits< mds::sys::tInt32 >::getZero ( ) [inherited]
template<>
mds::sys::tUInt32 mds::CTypeTraits< mds::sys::tUInt32 >::getZero ( ) [inherited]
template<typename T>
static T mds::CTypeTraits< T >::getZero ( ) [static, inherited]

Zero defined for the type T.


The documentation for this class was generated from the following file: