Public Member Functions | |
| ratio (void) | |
| ratio (const ratio &r) | |
| ratio & | operator+= (const ratio &r) |
| ratio & | operator+= (const double d) |
| ratio & | operator/= (const ratio &r) |
| ratio & | operator/= (double d) |
| ratio & | operator= (const ratio &r) |
| bool | operator== (const ratio &r) const |
| bool | operator!= (const ratio &r) const |
| double | make_double (void) const |
| double | Top (void) const |
| double | Bottom (void) const |
The ratio class allows numerators and denominators to be summed separately. Access to each is provided.
Definition at line 34 of file ratio.h.
| ratio::ratio | ( | void | ) |
| ratio::ratio | ( | const ratio & | r | ) |
| ratio & ratio::operator+= | ( | const double | d | ) |
| ratio & ratio::operator/= | ( | double | d | ) |
| bool ratio::operator== | ( | const ratio & | r | ) | const |
| bool ratio::operator!= | ( | const ratio & | r | ) | const |
| double ratio::make_double | ( | void | ) | const |
Value of ratio
Definition at line 140 of file ratio.cpp.
References Util::long_max, and Util::long_min.
| double ratio::Top | ( | void | ) | const |
| double ratio::Bottom | ( | void | ) | const |
1.5.1