xoreos  0.0.5
Namespaces | Functions
rational.cpp File Reference

Rational number implementation. More...

#include "src/common/algorithm.h"
#include "src/common/error.h"
#include "src/common/rational.h"
Include dependency graph for rational.cpp:

Go to the source code of this file.

Namespaces

 Common
 

Functions

const Rational Common::operator+ (int left, const Rational &right)
 
const Rational Common::operator- (int left, const Rational &right)
 
const Rational Common::operator* (int left, const Rational &right)
 
const Rational Common::operator/ (int left, const Rational &right)
 
bool Common::operator== (int left, const Rational &right)
 
bool Common::operator!= (int left, const Rational &right)
 
bool Common::operator> (int left, const Rational &right)
 
bool Common::operator< (int left, const Rational &right)
 
bool Common::operator>= (int left, const Rational &right)
 
bool Common::operator<= (int left, const Rational &right)
 

Detailed Description

Rational number implementation.

Definition in file rational.cpp.