Compounds |
class | EkRational |
| The EkRational class provides a templated implementation of the rational number. More...
|
Defines |
#define | EK_RATIONAL_H |
Typedefs |
typedef EkSmartPtr< EkRational<
long > > | EkRationalLongPtr |
typedef EkConstSmartPtr< EkRational<
long > > | EkConstRationalLongPtr |
typedef EkSmartPtr< EkRational<
unsigned long > > | EkRationalULongPtr |
typedef EkConstSmartPtr< EkRational<
unsigned long > > | EkConstRationalULongPtr |
Functions |
template<class Type> const EkRational< Type > | operator+ (const EkRational< Type > &lhs, const EkRational< Type > &rhs) |
template<class Type> const EkRational< Type > | operator- (const EkRational< Type > &lhs, const EkRational< Type > &rhs) |
template<class Type> const EkRational< Type > | operator * (const EkRational< Type > &lhs, const EkRational< Type > &rhs) |
template<class Type> const EkRational< Type > | operator/ (const EkRational< Type > &lhs, const EkRational< Type > &rhs) |
template<class Type> istream & | operator>> (istream &is, EkRational< Type > &rat) |
template<class Type> ostream & | operator<< (ostream &os, const EkRational< Type > &rat) |