Tolerance< double > Class Template Reference
[Miscellaneous Tools]

#include <lemon/tolerance.h>

List of all members.


Detailed Description

template<>
class lemon::Tolerance< double >

Double specialization of Tolerance.
See also:
Tolerance


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 ()
 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)
 Returns true if a is surely strictly less than b.
bool different (Value a, Value b)
 Returns true if a is surely different from b.
bool positive (Value a)
 Returns true if a is surely positive.
bool negative (Value a)
 Returns true if a is surely negative.
Value nonZero (Value a)
 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.


The documentation for this class was generated from the following files:
Generated on Fri Feb 3 18:42:43 2006 for LEMON by  doxygen 1.4.6