TwiceAsNice  2019-02-18
Functions
Nice::Helper Namespace Reference

Functions

bool fuzzyCompare (double p1, double p2)
 
bool fuzzyCompare (float p1, float p2)
 
template<typename T >
const T & min (const T &a, const T &b)
 
template<typename T >
const T & max (const T &a, const T &b)
 
template<typename T >
const T & bound (const T &min, const T &val, const T &max)
 
static bool isNull (double d)
 

This function tests a double for a null value. More...
 
static bool fuzzyIsNull (double d)
 
static bool isNull (float f)
 This function tests a float for a null value. More...
 
static bool fuzzyIsNull (float f)
 
static bool isNull (double d)
 

This function tests a double for a null value. More...
 
static bool fuzzyIsNull (double d)
 
static bool isNull (float f)
 This function tests a float for a null value. More...
 
static bool fuzzyIsNull (float f)
 

Function Documentation

◆ bound()

template<typename T >
const T & Nice::Helper::bound ( const T &  min,
const T &  val,
const T &  max 
)
inline
Parameters

◆ fuzzyCompare() [1/2]

bool Nice::Helper::fuzzyCompare ( double  p1,
double  p2 
)
inline
Parameters

◆ fuzzyCompare() [2/2]

bool Nice::Helper::fuzzyCompare ( float  p1,
float  p2 
)
inline
Parameters

◆ fuzzyIsNull() [1/4]

static bool Nice::Helper::fuzzyIsNull ( double  d)
inlinestatic

◆ fuzzyIsNull() [2/4]

static bool Nice::Helper::fuzzyIsNull ( double  d)
inlinestatic

◆ fuzzyIsNull() [3/4]

static bool Nice::Helper::fuzzyIsNull ( float  f)
inlinestatic

◆ fuzzyIsNull() [4/4]

static bool Nice::Helper::fuzzyIsNull ( float  f)
inlinestatic

◆ isNull() [1/4]

static bool Nice::Helper::isNull ( double  d)
inlinestatic



This function tests a double for a null value.

It doesn't check whether the actual value is 0 or close to 0, but whether it is binary 0.

Parameters
<br><br>
Returns
bool This function tests a double for a null value. It doesn't check whether the actual value is 0 or close to 0, but whether it is binary 0.

◆ isNull() [2/4]

static bool Nice::Helper::isNull ( double  d)
inlinestatic



This function tests a double for a null value.

It doesn't check whether the actual value is 0 or close to 0, but whether it is binary 0.

Parameters
<br><br>
Returns
bool This function tests a double for a null value. It doesn't check whether the actual value is 0 or close to 0, but whether it is binary 0.

◆ isNull() [3/4]

static bool Nice::Helper::isNull ( float  f)
inlinestatic

This function tests a float for a null value.

It doesn't check whether the actual value is 0 or close to 0, but whether it is binary 0.

Parameters

◆ isNull() [4/4]

static bool Nice::Helper::isNull ( float  f)
inlinestatic

This function tests a float for a null value.

It doesn't check whether the actual value is 0 or close to 0, but whether it is binary 0.

Parameters

◆ max()

template<typename T >
const T & Nice::Helper::max ( const T &  a,
const T &  b 
)
inline
Parameters

◆ min()

template<typename T >
const T & Nice::Helper::min ( const T &  a,
const T &  b 
)
inline
Parameters