#include <Wm4TRational.h>
Public Member Functions | |
TRational | Abs () const |
void | ConvertTo (double &rdValue) const |
void | ConvertTo (float &rfValue) const |
const TInteger< N > & | Denom () const |
TInteger< N > & | Denom () |
const TInteger< N > & | Numer () const |
TInteger< N > & | Numer () |
bool | operator!= (const TRational &rkR) const |
TRational | operator* (const TRational &rkR) const |
TRational & | operator*= (const TRational &rkR) |
TRational | operator+ (const TRational &rkR) const |
TRational & | operator+= (const TRational &rkR) |
TRational | operator- () const |
TRational | operator- (const TRational &rkR) const |
TRational & | operator-= (const TRational &rkR) |
TRational | operator/ (const TRational &rkR) const |
TRational & | operator/= (const TRational &rkR) |
bool | operator< (const TRational &rkR) const |
bool | operator<= (const TRational &rkR) const |
TRational & | operator= (const TRational &rkR) |
bool | operator== (const TRational &rkR) const |
bool | operator> (const TRational &rkR) const |
bool | operator>= (const TRational &rkR) const |
TRational (double dValue) | |
TRational (float fValue) | |
TRational (int iNumer, int iDenom) | |
TRational (int iNumer) | |
TRational (const TInteger< N > &rkNumer, const TInteger< N > &rkDenom) | |
TRational (const TInteger< N > &rkNumer) | |
TRational (const TRational &rkR) | |
TRational () |
Definition at line 28 of file Wm4TRational.h.
Wm4::TRational< N >::TRational | ( | ) | [inline] |
Definition at line 21 of file Wm4TRational.inl.
Wm4::TRational< N >::TRational | ( | const TRational< N > & | rkR | ) | [inline] |
Definition at line 30 of file Wm4TRational.inl.
Wm4::TRational< N >::TRational | ( | const TInteger< N > & | rkNumer | ) | [inline] |
Definition at line 38 of file Wm4TRational.inl.
Wm4::TRational< N >::TRational | ( | const TInteger< N > & | rkNumer, | |
const TInteger< N > & | rkDenom | |||
) | [inline] |
Definition at line 46 of file Wm4TRational.inl.
Wm4::TRational< N >::TRational | ( | int | iNumer | ) | [inline] |
Definition at line 55 of file Wm4TRational.inl.
Wm4::TRational< N >::TRational | ( | int | iNumer, | |
int | iDenom | |||
) | [inline] |
Definition at line 63 of file Wm4TRational.inl.
Wm4::TRational< N >::TRational | ( | float | fValue | ) | [inline] |
Definition at line 331 of file Wm4TRational.inl.
References SketcherExample::f, and Py::value().
Wm4::TRational< N >::TRational | ( | double | dValue | ) | [inline] |
Definition at line 602 of file Wm4TRational.inl.
References Py::value().
TRational< N > Wm4::TRational< N >::Abs | ( | ) | const [inline] |
Definition at line 292 of file Wm4TRational.inl.
void Wm4::TRational< N >::ConvertTo | ( | double & | rdValue | ) | const [inline] |
Definition at line 699 of file Wm4TRational.inl.
void Wm4::TRational< N >::ConvertTo | ( | float & | rfValue | ) | const [inline] |
Definition at line 415 of file Wm4TRational.inl.
const TInteger< N > & Wm4::TRational< N >::Denom | ( | ) | const [inline] |
Definition at line 89 of file Wm4TRational.inl.
TInteger< N > & Wm4::TRational< N >::Denom | ( | ) | [inline] |
Definition at line 77 of file Wm4TRational.inl.
Referenced by Wm4::operator*(), Wm4::operator+(), Wm4::operator-(), and Wm4::operator/().
const TInteger< N > & Wm4::TRational< N >::Numer | ( | ) | const [inline] |
Definition at line 83 of file Wm4TRational.inl.
TInteger< N > & Wm4::TRational< N >::Numer | ( | ) | [inline] |
Definition at line 71 of file Wm4TRational.inl.
Referenced by Wm4::operator*(), Wm4::operator+(), Wm4::operator-(), and Wm4::operator/().
bool Wm4::TRational< N >::operator!= | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 109 of file Wm4TRational.inl.
TRational< N > Wm4::TRational< N >::operator* | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 195 of file Wm4TRational.inl.
TRational< N > & Wm4::TRational< N >::operator*= | ( | const TRational< N > & | rkR | ) | [inline] |
Definition at line 276 of file Wm4TRational.inl.
TRational< N > Wm4::TRational< N >::operator+ | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 175 of file Wm4TRational.inl.
TRational< N > & Wm4::TRational< N >::operator+= | ( | const TRational< N > & | rkR | ) | [inline] |
Definition at line 260 of file Wm4TRational.inl.
TRational< N > Wm4::TRational< N >::operator- | ( | void | ) | const [inline] |
Definition at line 215 of file Wm4TRational.inl.
TRational< N > Wm4::TRational< N >::operator- | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 185 of file Wm4TRational.inl.
TRational< N > & Wm4::TRational< N >::operator-= | ( | const TRational< N > & | rkR | ) | [inline] |
Definition at line 268 of file Wm4TRational.inl.
TRational< N > Wm4::TRational< N >::operator/ | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 205 of file Wm4TRational.inl.
TRational< N > & Wm4::TRational< N >::operator/= | ( | const TRational< N > & | rkR | ) | [inline] |
Definition at line 284 of file Wm4TRational.inl.
bool Wm4::TRational< N >::operator< | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 130 of file Wm4TRational.inl.
bool Wm4::TRational< N >::operator<= | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 115 of file Wm4TRational.inl.
TRational< N > & Wm4::TRational< N >::operator= | ( | const TRational< N > & | rkR | ) | [inline] |
Definition at line 95 of file Wm4TRational.inl.
bool Wm4::TRational< N >::operator== | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 103 of file Wm4TRational.inl.
bool Wm4::TRational< N >::operator> | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 160 of file Wm4TRational.inl.
bool Wm4::TRational< N >::operator>= | ( | const TRational< N > & | rkR | ) | const [inline] |
Definition at line 145 of file Wm4TRational.inl.