#include <iostream>
#include <stdexcept>
|
template<class intType > |
rationalNumber< intType > | operator- (const rationalNumber< intType > &v) |
|
template<class intType > |
rationalNumber< intType > | operator+ (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
rationalNumber< intType > | operator- (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
rationalNumber< intType > | operator* (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
rationalNumber< intType > | operator/ (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
int | operator< (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
int | operator> (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
int | operator<= (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
int | operator>= (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
int | operator== (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
int | operator!= (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
std::ostream & | operator<< (std::ostream &out, const rationalNumber< intType > &v) |
|
template<class intType > |
std::istream & | operator>> (std::istream &inp, rationalNumber< intType > &v) |
|
template<class intType > |
bool | isDivisible (const rationalNumber< intType > &v1, const rationalNumber< intType > &v2) |
|
template<class intType > |
bool | isZero (const rationalNumber< intType > &v) |
|
◆ isDivisible()
◆ isZero()
◆ operator!=()
◆ operator*()
◆ operator+()
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator/()
◆ operator<()
◆ operator<<()
template<class intType >
std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const rationalNumber< intType > & |
v |
|
) |
| |
◆ operator<=()
◆ operator==()
◆ operator>()
◆ operator>=()
◆ operator>>()
template<class intType >
std::istream & operator>> |
( |
std::istream & |
inp, |
|
|
rationalNumber< intType > & |
v |
|
) |
| |