CoxIter  1.3
CoxIter - Computing invariants of hyperbolic Coxeter groups
Public Member Functions | Public Attributes | Private Member Functions | List of all members
MPZ_rational Class Reference

#include <mpz_rational.h>

Inheritance diagram for MPZ_rational:
Inheritance graph
[legend]
Collaboration diagram for MPZ_rational:
Collaboration graph
[legend]

Public Member Functions

 MPZ_rational ()
 
 MPZ_rational (mpz_class a, mpz_class b)
 
 MPZ_rational (mpz_class a)
 
 MPZ_rational (const int &i)
 
 MPZ_rational (string rational)
 
bool isInteger () const
 
bool isCOInteger () const
 
bool operator>= (int const &) const
 
bool operator== (int const &) const
 
bool operator== (MPZ_rational const &) const
 
bool operator== (mpz_class const &) const
 
bool operator!= (MPZ_rational const &) const
 
MPZ_rationaloperator= (long int)
 
MPZ_rational operator+ (MPZ_rational const &n) const
 
MPZ_rationaloperator+= (MPZ_rational const &n)
 
MPZ_rational operator- (MPZ_rational const &n) const
 
void opp (MPZ_rational *&_c) const
 
MPZ_rationaloperator-= (MPZ_rational const &n)
 
MPZ_rational operator* (MPZ_rational const &n) const
 
MPZ_rationaloperator*= (MPZ_rational const &n)
 
MPZ_rational operator/ (MPZ_rational const &n) const
 
MPZ_rationaloperator/= (MPZ_rational const &n)
 
void print (ostream &) const
 
string to_string () const
 
- Public Member Functions inherited from Number_template
virtual bool operator== (Number_template const &) const
 
virtual bool operator!= (Number_template const &) const
 
virtual Number_template operator+ (Number_template const &n) const
 
virtual Number_templateoperator+= (Number_template const &n)
 
virtual Number_template operator- (Number_template const &n) const
 
virtual Number_templateoperator-= (Number_template const &n)
 
virtual Number_template operator* (Number_template const &n) const
 
virtual Number_templateoperator*= (Number_template const &n)
 
virtual Number_template operator/ (Number_template const &n) const
 
virtual Number_templateoperator/= (Number_template const &n)
 

Public Attributes

mpz_class a
 
mpz_class b
 
- Public Attributes inherited from Number_template
bool isZero
 
bool isMinusOne
 
bool isOne
 
bool isInt
 

Private Member Functions

void update ()
 Met à jour les attributs (gcd, isInt, ...) More...
 

Constructor & Destructor Documentation

◆ MPZ_rational() [1/5]

MPZ_rational::MPZ_rational ( )

◆ MPZ_rational() [2/5]

MPZ_rational::MPZ_rational ( mpz_class  a,
mpz_class  b 
)

◆ MPZ_rational() [3/5]

MPZ_rational::MPZ_rational ( mpz_class  a)

◆ MPZ_rational() [4/5]

MPZ_rational::MPZ_rational ( const int &  i)

◆ MPZ_rational() [5/5]

MPZ_rational::MPZ_rational ( string  rational)

Member Function Documentation

◆ isCOInteger()

bool MPZ_rational::isCOInteger ( ) const

◆ isInteger()

bool MPZ_rational::isInteger ( ) const

◆ operator!=()

bool MPZ_rational::operator!= ( MPZ_rational const &  n) const

◆ operator*()

MPZ_rational MPZ_rational::operator* ( MPZ_rational const &  n) const

◆ operator*=()

MPZ_rational & MPZ_rational::operator*= ( MPZ_rational const &  n)

◆ operator+()

MPZ_rational MPZ_rational::operator+ ( MPZ_rational const &  n) const

◆ operator+=()

MPZ_rational & MPZ_rational::operator+= ( MPZ_rational const &  n)

◆ operator-()

MPZ_rational MPZ_rational::operator- ( MPZ_rational const &  n) const

◆ operator-=()

MPZ_rational & MPZ_rational::operator-= ( MPZ_rational const &  n)

◆ operator/()

MPZ_rational MPZ_rational::operator/ ( MPZ_rational const &  n) const

◆ operator/=()

MPZ_rational & MPZ_rational::operator/= ( MPZ_rational const &  n)

◆ operator=()

MPZ_rational & MPZ_rational::operator= ( long int  i)

◆ operator==() [1/3]

bool MPZ_rational::operator== ( int const &  i) const

◆ operator==() [2/3]

bool MPZ_rational::operator== ( mpz_class const &  n) const

◆ operator==() [3/3]

bool MPZ_rational::operator== ( MPZ_rational const &  n) const

◆ operator>=()

bool MPZ_rational::operator>= ( int const &  ni) const

◆ opp()

void MPZ_rational::opp ( MPZ_rational *&  _c) const

◆ print()

void MPZ_rational::print ( ostream &  o) const
virtual

Reimplemented from Number_template.

◆ to_string()

string MPZ_rational::to_string ( ) const

◆ update()

MPZ_rational::update ( )
private

Met à jour les attributs (gcd, isInt, ...)

Member Data Documentation

◆ a

mpz_class MPZ_rational::a

◆ b

mpz_class MPZ_rational::b

The documentation for this class was generated from the following files: