MeVisLab Toolbox Reference
OverloadSelector Namespace Reference

Classes

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

Typedefs

typedef SwitchType< trueOnTrue
 
typedef SwitchType< falseOnFalse
 

Functions

template<typename T >
SwitchType< ml::TypeTraits< T >::isStandardTypeisScalarType ()
 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

◆ OnFalse

◆ OnTrue

Function Documentation

◆ isBuiltInIntegerType()

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

Definition at line 345 of file mlTypeTraits.h.

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