Tolerance< double > Class Template Reference
[Miscellaneous Tools]


Detailed Description

template<>
class lemon::Tolerance< double >

Double specialization of Tolerance.
See also:
Tolerance
#include <lemon/tolerance.h>

List of all members.

Public Types

typedef double Value
 

Public Member Functions

 Tolerance ()
 Constructor setting the epsilon tolerance to the default value.
 Tolerance (double e)
 Constructor setting the epsilon tolerance.
Value epsilon () const
 Return the epsilon value.
void epsilon (Value e)
 Set the epsilon value.
Comparisons
See class Tolerance for more details.

bool less (Value a, Value b) const
 Returns true if a is surely strictly less than b.
bool different (Value a, Value b) const
 Returns true if a is surely different from b.
bool positive (Value a) const
 Returns true if a is surely positive.
bool negative (Value a) const
 Returns true if a is surely negative.
bool nonZero (Value a) const
 Returns true if a is surely non-zero.

Static Public Member Functions

static Value defaultEpsilon ()
 Return the default epsilon value.
static void defaultEpsilon (Value e)
 Set the default epsilon value.
static Value zero ()
 Returns zero.


Generated on Thu Jun 4 04:06:41 2009 for LEMON by  doxygen 1.5.9