ML Reference
OverloadSelector Namespace Reference

Classes

struct  SwitchType
 helper types to switch between implementations of functions by overloading More...

Typedefs

typedef SwitchType< true > OnTrue
typedef SwitchType< false > OnFalse

Functions

template<typename T >
SwitchType< ml::TypeTraits< T >
::isStandardType > 
isScalarType ()
 The purpose of this function only is to return different result types depending on if T is a scalar type or not.
template<typename T >
SwitchType< ml::TypeTraits< T >
::isBuiltInIntegerType > 
isBuiltInIntegerType ()

Typedef Documentation

Definition at line 332 of file mlTypeTraits.h.

Definition at line 331 of file mlTypeTraits.h.


Function Documentation

template<typename T >
SwitchType<ml::TypeTraits<T>::isBuiltInIntegerType> OverloadSelector::isBuiltInIntegerType ( )

Definition at line 344 of file mlTypeTraits.h.

Referenced by MLIsBuiltInIntegerTypePtr().

template<typename T >
SwitchType<ml::TypeTraits<T>::isStandardType> OverloadSelector::isScalarType ( )

The purpose of this function only is to return different result types depending on if T is a scalar type or not.

Use this to call different templated functions depending on the type. The functions need to have a dummy parameter with either type TrueType or FalseType;

Definition at line 339 of file mlTypeTraits.h.