![]() |
My Project
|
#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 | ( | ) |
| Rational::Rational | ( | int | a | ) |
| Rational::~Rational | ( | ) |
|
private |
| Rational Rational::get_den | ( | ) |
| int Rational::get_den_si | ( | ) |
| int Rational::get_num_si | ( | ) |
| Rational & Rational::operator++ | ( | ) |
| Rational Rational::operator- | ( | ) |
| Rational & Rational::operator-- | ( | ) |
| Rational Rational::operator~ | ( | ) |