Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

CoinRelFltEq Class Reference

Equality to a scaled tolerance. More...

#include <CoinFloatEqual.hpp>

List of all members.

Public Member Functions

bool operator() (const double f1, const double f2) const
 Compare function.

Constructors and destructors
 CoinRelFltEq ()
 Default constructor.

 CoinRelFltEq (const double epsilon)
 Alternate constructor with epsilon as a parameter.

virtual ~CoinRelFltEq ()
 Destructor.

 CoinRelFltEq (const CoinRelFltEq &src)
 Copy constructor.

CoinRelFltEqoperator= (const CoinRelFltEq &rhs)
 Assignment.


Private Attributes

Private member data
double epsilon_
 Base equality tolerance.


Detailed Description

Equality to a scaled tolerance.

Operands are considered equal if their difference is within a scaled epsilon calculated as epsilon_*(1+max(|f1|,|f2|)).

Definition at line 105 of file CoinFloatEqual.hpp.


The documentation for this class was generated from the following file:
Generated on Wed Dec 3 14:34:29 2003 for Coin by doxygen 1.3.5