SourceForge.net Logo
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

EkRational.h File Reference

#include <cmath>
#include <typeinfo>
#include "EkCompiler.h"
#include "EkLocking.h"
#include "EkRefCount.h"
#include "EkSmartPtr.h"
#include "EkTemplate.h"

Include dependency graph for EkRational.h:

This graph shows which files directly or indirectly include this file:

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)


Define Documentation

#define EK_RATIONAL_H
 


Typedef Documentation

typedef EkConstSmartPtr<EkRational<long> > EkConstRationalLongPtr
 

typedef EkConstSmartPtr<EkRational<unsigned long> > EkConstRationalULongPtr
 

typedef EkSmartPtr<EkRational<long> > EkRationalLongPtr
 

typedef EkSmartPtr<EkRational<unsigned long> > EkRationalULongPtr
 


Function Documentation

template<class Type>
const EkRational<Type> operator * const EkRational< Type > &    lhs,
const EkRational< Type > &    rhs
[inline]
 

template<class Type>
const EkRational<Type> operator+ const EkRational< Type > &    lhs,
const EkRational< Type > &    rhs
[inline]
 

template<class Type>
const EkRational<Type> operator- const EkRational< Type > &    lhs,
const EkRational< Type > &    rhs
[inline]
 

template<class Type>
const EkRational<Type> operator/ const EkRational< Type > &    lhs,
const EkRational< Type > &    rhs
[inline]
 

template<class Type>
ostream& operator<< ostream &    os,
const EkRational< Type > &    rat
[inline]
 

template<class Type>
istream& operator>> istream &    is,
EkRational< Type > &    rat
[inline]
 

Last Updated: March 12, 2003 (rlr)
Copyright © 2003 Eastman Kodak Company All Rights Reserved.