OpenWalnut  1.5.0dev
Functions | Variables
wlimits Namespace Reference

Project wide limits for different quantities. More...

Functions

template<typename T >
bool isNaN (T value)
 Determines if a number is considered as NaN (aka Not a Number) or not. More...
 
template<typename T >
bool isInf (T value)
 Determines if a number is considered as infinity or not. More...
 

Variables

const double MAX_DOUBLE = std::numeric_limits< double >::max()
 Maximum double value. More...
 
const float MAX_FLOAT = std::numeric_limits< float >::max()
 Maximum float value. More...
 
const size_t MAX_SIZE_T = std::numeric_limits< size_t >::max()
 Maximum size value. More...
 
const int32_t MAX_INT32_T = std::numeric_limits< int32_t >::max()
 Maximum int32_t value. More...
 
const double MIN_DOUBLE = std::numeric_limits< double >::min()
 Positive minimum double value. More...
 
const float MIN_FLOAT = std::numeric_limits< float >::min()
 Positive minimum float value. More...
 
const size_t MIN_SIZE_T = std::numeric_limits< size_t >::min()
 Lowest/Minimum size value (equivalent to LOWEST_SIZE_T) More...
 
const int32_t MIN_INT32_T = std::numeric_limits< int32_t >::min()
 Lowest/Minimum int32_t value (equivalent to LOWEST_INT32_T) More...
 
const double LOWEST_DOUBLE = std::numeric_limits< double >::lowest()
 Minimum double value. More...
 
const float LOWEST_FLOAT = std::numeric_limits< float >::lowest()
 Minimum float value. More...
 
const size_t LOWEST_SIZE_T = std::numeric_limits< size_t >::lowest()
 Lowest/Minimum size value (equivalent to MIN_SIZE_T) More...
 
const int32_t LOWEST_INT32_T = std::numeric_limits< int32_t >::lowest()
 Lowest/Minimum int32_t value (equivalent to MIN_INT32_T) More...
 
const double DBL_EPS = std::numeric_limits< double >::epsilon()
 Smallest double such: 1.0 + DBL_EPS == 1.0 is still true. More...
 
const float FLT_EPS = std::numeric_limits< float >::epsilon()
 Smallest float such: 1.0 + FLT_EPS == 1.0 is still true. More...
 

Detailed Description

Project wide limits for different quantities.

Function Documentation

◆ isInf()

template<typename T >
bool wlimits::isInf ( value)

Determines if a number is considered as infinity or not.

Note
The reason for using here a wrapper to cmath's isinf is that it is only included in C99 which is not part of any existing C++ standard yet.
Parameters
valueThe value to be checked
Returns
True if the value is infinity, false otherwise.

Definition at line 101 of file WLimits.h.

Referenced by wtracking::WTrackingUtility::followToNextVoxel(), WMWriteMesh::saveJson(), and WMWriteMesh::saveVTKASCII().

+ Here is the caller graph for this function:

◆ isNaN()

template<typename T >
bool wlimits::isNaN ( value)

Determines if a number is considered as NaN (aka Not a Number) or not.

Note
The reason for using here a wrapper to cmath's isnan is that it is only included in C99 which is not part of any existing C++ standard yet.
Parameters
valueThe value to be checked
Returns
True if the value is a NaN, false otherwise.

Definition at line 96 of file WLimits.h.

Referenced by WDataSetTimeSeries::calcDataSetAtTime(), WDataSetTimeSeries::findNearestTimeSlice(), wtracking::WTrackingUtility::followToNextVoxel(), WDataSetTimeSeries::interpolate(), and WDataSetTimeSeries::WDataSetTimeSeries().

+ Here is the caller graph for this function:

Variable Documentation

◆ DBL_EPS

const double wlimits::DBL_EPS = std::numeric_limits< double >::epsilon()

◆ FLT_EPS

const float wlimits::FLT_EPS = std::numeric_limits< float >::epsilon()

◆ LOWEST_DOUBLE

const double wlimits::LOWEST_DOUBLE = std::numeric_limits< double >::lowest()

Minimum double value.

Definition at line 41 of file WLimits.cpp.

◆ LOWEST_FLOAT

const float wlimits::LOWEST_FLOAT = std::numeric_limits< float >::lowest()

Minimum float value.

Definition at line 42 of file WLimits.cpp.

◆ LOWEST_INT32_T

const int32_t wlimits::LOWEST_INT32_T = std::numeric_limits< int32_t >::lowest()

Lowest/Minimum int32_t value (equivalent to MIN_INT32_T)

Definition at line 44 of file WLimits.cpp.

◆ LOWEST_SIZE_T

const size_t wlimits::LOWEST_SIZE_T = std::numeric_limits< size_t >::lowest()

Lowest/Minimum size value (equivalent to MIN_SIZE_T)

Definition at line 43 of file WLimits.cpp.

◆ MAX_DOUBLE

const double wlimits::MAX_DOUBLE = std::numeric_limits< double >::max()

◆ MAX_FLOAT

const float wlimits::MAX_FLOAT = std::numeric_limits< float >::max()

Maximum float value.

Definition at line 32 of file WLimits.cpp.

Referenced by WDataCreatorTorus< T >::operator()(), and WCsvConverter::setOutputFromCSV().

◆ MAX_INT32_T

const int32_t wlimits::MAX_INT32_T = std::numeric_limits< int32_t >::max()

Maximum int32_t value.

Definition at line 34 of file WLimits.cpp.

Referenced by WEventIDLimitationPropertyHandler::determineMinMaxEventID().

◆ MAX_SIZE_T

const size_t wlimits::MAX_SIZE_T = std::numeric_limits< size_t >::max()

Maximum size value.

Definition at line 33 of file WLimits.cpp.

◆ MIN_DOUBLE

const double wlimits::MIN_DOUBLE = std::numeric_limits< double >::min()

◆ MIN_FLOAT

const float wlimits::MIN_FLOAT = std::numeric_limits< float >::min()

Positive minimum float value.

Definition at line 37 of file WLimits.cpp.

Referenced by WCsvConverter::setOutputFromCSV().

◆ MIN_INT32_T

const int32_t wlimits::MIN_INT32_T = std::numeric_limits< int32_t >::min()

Lowest/Minimum int32_t value (equivalent to LOWEST_INT32_T)

Definition at line 39 of file WLimits.cpp.

Referenced by WEventIDLimitationPropertyHandler::determineMinMaxEventID().

◆ MIN_SIZE_T

const size_t wlimits::MIN_SIZE_T = std::numeric_limits< size_t >::min()

Lowest/Minimum size value (equivalent to LOWEST_SIZE_T)

Definition at line 38 of file WLimits.cpp.