Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Functions

SgUctValueUtil Namespace Reference

Functions

template<typename T >
bool IsPrecise (T val)
 Check if floating point value is a precise representation of an integer.

Function Documentation

template<typename T >
bool SgUctValueUtil::IsPrecise ( val  ) 

Check if floating point value is a precise representation of an integer.

When SgUctValue is used for counts, the search should abort when the value is no longer precise, because incrementing it further will not change its value anymore.

Template Parameters:
T The floating point type
Returns:
true if value is less or equal $ r^d - 1 $ (r: radix, d: number of the digits in the mantissa of the type)

Definition at line 52 of file SgUctValue.h.

Referenced by SgUctSearch::CheckAbortSearch().


Sun Mar 13 2011 Doxygen 1.7.1