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 ()
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 ( )

◆ isScalarType()

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

The purpose of this function is only to return different result types depending on whether T is a scalar type. 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.

Referenced by ml::isScalarValueInRange().