oILAB
|
#include <Rational.h>
Public Member Functions | |
Rational () | |
Rational (const IntScalarType &n_in) | |
Rational (const IntScalarType &n_in, const IntScalarType &d_in) | |
double | asDouble () const |
bool | operator== (const IntScalarType &other) const |
bool | operator!= (const IntScalarType &other) const |
Rational | operator* (const Rational &r2) const |
Rational | operator/ (const Rational &r2) const |
Rational | operator+ (const Rational &r2) const |
Rational | operator- (const Rational &r2) const |
Rational | operator* (const IntScalarType &i) const |
Rational | operator/ (const IntScalarType &i) const |
Rational | operator+ (const IntScalarType &i) const |
Rational | operator- (const IntScalarType &i) const |
Data Fields | |
IntScalarType | n |
IntScalarType | d |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Rational &r) |
Definition at line 16 of file Rational.h.
|
inline |
Definition at line 22 of file Rational.h.
|
inline |
Definition at line 30 of file Rational.h.
|
inline |
Definition at line 38 of file Rational.h.
|
inline |
Definition at line 46 of file Rational.h.
|
inline |
Definition at line 69 of file Rational.h.
|
inline |
Definition at line 94 of file Rational.h.
|
inline |
Definition at line 74 of file Rational.h.
|
inline |
Definition at line 104 of file Rational.h.
|
inline |
Definition at line 84 of file Rational.h.
|
inline |
Definition at line 109 of file Rational.h.
|
inline |
Definition at line 89 of file Rational.h.
|
inline |
Definition at line 99 of file Rational.h.
|
inline |
Definition at line 79 of file Rational.h.
|
inline |
Definition at line 51 of file Rational.h.
|
friend |
Definition at line 114 of file Rational.h.
IntScalarType gbLAB::Rational< IntScalarType >::d |
Definition at line 20 of file Rational.h.
IntScalarType gbLAB::Rational< IntScalarType >::n |
Definition at line 19 of file Rational.h.