![]() |
#include <GMPrat.h>
Data Structures | |
struct | rep |
Public Member Functions | |
Rational () | |
Rational (int) | |
Rational (const Rational &) | |
Rational (const Rational &, const Rational &) | |
Rational (int, int) | |
~Rational () | |
Rational & | operator= (int) |
Rational & | operator= (char *s) |
Rational & | operator= (const Rational &) |
unsigned int | length () const |
Rational | get_num () |
Rational | get_den () |
int | get_num_si () |
int | get_den_si () |
operator int () | |
Rational | operator- () |
Rational | operator~ () |
Rational & | operator+= (const Rational &) |
Rational & | operator-= (const Rational &) |
Rational & | operator*= (const Rational &) |
Rational & | operator/= (const Rational &) |
Rational & | operator++ () |
Rational | operator++ (int) |
Rational & | operator-- () |
Rational | operator-- (int) |
double | complexity () const |
Private Member Functions | |
void | disconnect () |
Private Attributes | |
rep * | p |
Friends | |
Rational | operator- (const Rational &) |
bool | operator< (const Rational &, const Rational &) |
bool | operator<= (const Rational &, const Rational &) |
bool | operator> (const Rational &, const Rational &) |
bool | operator>= (const Rational &, const Rational &) |
bool | operator== (const Rational &, const Rational &) |
bool | operator!= (const Rational &, const Rational &) |
int | sgn (const Rational &) |
Rational | abs (const Rational &) |
Rational | pow (const Rational &, int) |
Rational | gcd (const Rational &, const Rational &) |
Rational | lcm (const Rational &, const Rational &) |
Rational | gcd (Rational *, int) |
Rational | lcm (Rational *, int) |
Rational Rational::get_den | ( | ) |
Definition at line 143 of file GMPrat.cc.
Rational Rational::get_num | ( | ) |
Definition at line 129 of file GMPrat.cc.
Rational Rational::operator++ | ( | int | ) |
Definition at line 257 of file GMPrat.cc.
Rational Rational::operator- | ( | ) |
Definition at line 179 of file GMPrat.cc.
Rational Rational::operator-- | ( | int | ) |
Definition at line 275 of file GMPrat.cc.
Rational& Rational::operator= | ( | char * | s | ) |
Rational Rational::operator~ | ( | ) |
Definition at line 200 of file GMPrat.cc.
Definition at line 436 of file GMPrat.cc.
Definition at line 448 of file GMPrat.cc.
Definition at line 478 of file GMPrat.cc.
Definition at line 509 of file GMPrat.cc.
Definition at line 187 of file GMPrat.cc.
Definition at line 411 of file GMPrat.cc.