feisty meow concerns codebase
2.140
|
#include <double_plus.h>
Public Member Functions | |
double_plus (double init=0.0, double delta=DEFAULT_DELTA) | |
initializes using "init" as the initial value and equality within "delta". More... | |
double_plus (const double_plus &to_copy) | |
initializes this from "to_copy". More... | |
virtual | ~double_plus () |
DEFINE_CLASS_NAME ("double_plus") | |
double_plus & | operator= (const double_plus &cp) |
standard assignment operator. More... | |
double | value () const |
observes the value held in this. More... | |
operator double () const | |
observes the value held in this. More... | |
double | delta () const |
observes the precision for equality comparisons. More... | |
void | delta (double new_delta) |
modifies the precision for equality comparisons. More... | |
double | truncate () const |
returns a version of the number that is chopped off past the delta after rounding. More... | |
virtual bool | equal_to (const basis::equalizable &f2) const |
returns true if this equals "f2" within the "delta" precision. More... | |
virtual bool | less_than (const basis::orderable &f2) const |
Public Member Functions inherited from basis::orderable | |
virtual bool | operator< (const orderable &s2) const |
the virtual method for object ordering. More... | |
Public Member Functions inherited from basis::equalizable | |
virtual bool | operator== (const equalizable &s2) const |
the virtual method for object equality. More... | |
Definition at line 36 of file double_plus.h.
|
inline |
initializes using "init" as the initial value and equality within "delta".
Definition at line 46 of file double_plus.h.
|
inline |
initializes this from "to_copy".
Definition at line 49 of file double_plus.h.
|
inlinevirtual |
Definition at line 51 of file double_plus.h.
mathematics::double_plus::DEFINE_CLASS_NAME | ( | "double_plus" | ) |
|
inline |
observes the precision for equality comparisons.
Definition at line 64 of file double_plus.h.
|
inline |
modifies the precision for equality comparisons.
Definition at line 66 of file double_plus.h.
|
inlinevirtual |
returns true if this equals "f2" within the "delta" precision.
returns true if this is less than "f2".
Implements basis::equalizable.
Definition at line 73 of file double_plus.h.
|
inlinevirtual |
Implements basis::orderable.
Definition at line 80 of file double_plus.h.
|
inline |
observes the value held in this.
Definition at line 61 of file double_plus.h.
References truncate().
|
inline |
standard assignment operator.
Definition at line 56 of file double_plus.h.
|
inline |
returns a version of the number that is chopped off past the delta after rounding.
Definition at line 69 of file double_plus.h.
References mathematics::math_ops::round_it().
Referenced by operator double(), and value().
|
inline |
observes the value held in this.
Definition at line 59 of file double_plus.h.
References truncate().