Dataflow Runtime API  3.1.1.0
Static Public Member Functions | List of all members
imt::base::core::util::MinMax Class Reference

Min/Max utility class. More...

#include <Imt.Base.Core.Util/MinMax.h>

Static Public Member Functions

template<typename T >
static const T max (const T argOne, const T argTwo)
 Return the greater of two arguments. More...
 
template<typename T >
static const T min (const T argOne, const T argTwo)
 Return the smaller of two arguments. More...
 
template<typename T >
static const T truncateToRange (const T value, const T lowLimit, const T highLimit)
 Truncate the value to range. More...
 

Detailed Description

Min/Max utility class.

Pure static class.

Member Function Documentation

◆ max()

template<typename T >
static const T imt::base::core::util::MinMax::max ( const T  argOne,
const T  argTwo 
)
inlinestatic

Return the greater of two arguments.

Parameters
argOneArgument one
argTwoArgument two
Returns
Return the greater of two arguments

◆ min()

template<typename T >
static const T imt::base::core::util::MinMax::min ( const T  argOne,
const T  argTwo 
)
inlinestatic

Return the smaller of two arguments.

Parameters
argOneArgument one
argTwoArgument two
Returns
Return the smaller of two arguments

◆ truncateToRange()

template<typename T >
static const T imt::base::core::util::MinMax::truncateToRange ( const T  value,
const T  lowLimit,
const T  highLimit 
)
inlinestatic

Truncate the value to range.

Parameters
valueValue to be truncated
lowLimitLower limit of range
highLimitHigher limit of range
Returns
Return the truncated value to range

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