MeVisLab Toolbox 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. More...
 
template<typename T >
SwitchType< ml::TypeTraits< T >::isBuiltInIntegerType > isBuiltInIntegerType ()
 

Typedef Documentation

◆ OnFalse

Definition at line 334 of file mlTypeTraits.h.

◆ OnTrue

Definition at line 333 of file mlTypeTraits.h.

Function Documentation

◆ isBuiltInIntegerType()

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

Definition at line 346 of file mlTypeTraits.h.

Referenced by MLIsBuiltInIntegerTypePtr().

◆ isScalarType()

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 341 of file mlTypeTraits.h.