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

Template providing type specific information. More...

#include <mdsTypeTraits.h>

Inheritance diagram for mds::CTypeTraits< 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 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<>
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<>
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 getMax ()
 Maximal value of the type T.
static T getMin ()
 Minimal value of the type T.
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::CTypeTraits< T >

Template providing type specific information.


Member Typedef Documentation

template<typename T>
typedef SIsConst<T>::tNonConst mds::CTypeTraits< T >::tNonConst

Non-const type if T is constant.

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

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

template<typename T>
typedef SIsPointer<T>::tPointee mds::CTypeTraits< T >::tPointee

Pointee type if T is pointer.

template<typename T>
typedef SIsReference<T>::tReferred mds::CTypeTraits< T >::tReferred

Referred type if T is reference.


Member Enumeration Documentation

template<typename T>
anonymous enum

Simple type checks.

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

Member Function Documentation

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

Maximal value of the type T.

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

Minimal value of the type T.

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

Returns size of the type T in bytes.

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

Zero defined for the type T.


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