#include <CoinFloatEqual.hpp>
Public Member Functions | |
| bool | operator() (const double f1, const double f2) const |
| Compare function. | |
Constructors and destructors | |
| CoinAbsFltEq () | |
| Default constructor. | |
| CoinAbsFltEq (const double epsilon) | |
| Alternate constructor with epsilon as a parameter. | |
| virtual | ~CoinAbsFltEq () |
| Destructor. | |
| CoinAbsFltEq (const CoinAbsFltEq &src) | |
| Copy constructor. | |
| CoinAbsFltEq & | operator= (const CoinAbsFltEq &rhs) |
| Assignment. | |
Private Attributes | |
Private member data | |
| double | epsilon_ |
| Equality tolerance. | |
Operands are considered equal if their difference is within an epsilon ; the test does not consider the relative magnitude of the operands.
Definition at line 44 of file CoinFloatEqual.hpp.
| CoinAbsFltEq::CoinAbsFltEq | ( | ) | [inline] |
| CoinAbsFltEq::CoinAbsFltEq | ( | const double | epsilon | ) | [inline] |
Alternate constructor with epsilon as a parameter.
Definition at line 65 of file CoinFloatEqual.hpp.
| virtual CoinAbsFltEq::~CoinAbsFltEq | ( | ) | [inline, virtual] |
| CoinAbsFltEq::CoinAbsFltEq | ( | const CoinAbsFltEq & | src | ) | [inline] |
| bool CoinAbsFltEq::operator() | ( | const double | f1, | |
| const double | f2 | |||
| ) | const [inline] |
Compare function.
Definition at line 50 of file CoinFloatEqual.hpp.
References CoinIsnan(), and epsilon_.
| CoinAbsFltEq& CoinAbsFltEq::operator= | ( | const CoinAbsFltEq & | rhs | ) | [inline] |
double CoinAbsFltEq::epsilon_ [private] |
Equality tolerance.
Definition at line 91 of file CoinFloatEqual.hpp.
Referenced by operator()(), and operator=().
1.4.7