Cmp< double > Class Template Reference Specialization of Cmp for checking the ordering of two floating point numbers. More...
Detailed Descriptiontemplate<>
|
Cmp | ( | const double | p1, |
const double | p2 | ||
) | [inline] |
~Cmp | ( | ) | [inline] |
void _compare | ( | ) | const [inline, private] |
Perform the actual comparison if necessary.
Definition at line 259 of file Cmp.hh.
References Cmp< T >::_value, Rivet::EQUIVALENT, Rivet::fuzzyEquals(), Rivet::ORDERED, Rivet::UNDEFINED, and Rivet::UNORDERED.
operator CmpState | ( | ) | const [inline] |
Automatically convert to an enum.
Definition at line 237 of file Cmp.hh.
References Cmp< T >::_compare(), and Cmp< T >::_value.
operator int | ( | ) | const [inline] |
Automatically convert to an integer.
Definition at line 243 of file Cmp.hh.
References Cmp< T >::_compare(), and Cmp< T >::_value.
The assignment operator.
Definition at line 228 of file Cmp.hh.
References Cmp< T >::_value.
{ _value = x; return *this; }
If this state is equivalent, set this state to the state of c.
Definition at line 250 of file Cmp.hh.
References Cmp< T >::_compare(), Cmp< T >::_value, and Rivet::EQUIVALENT.
{ _compare(); if (_value == EQUIVALENT) _value = c; return *this; }