src/tools/tPolynomialWithBase.h File Reference

#include "tPolynomial.h"

Include dependency graph for tPolynomialWithBase.h:

Go to the source code of this file.

Classes

class  tPolynomialWithBase< T >
 mathematical function (to be moved into tools sometime, and currently limited to linear functions) More...

Defines

#define DELTA   1e-10

Functions

T & operator<< (T &m, tPolynomialWithBase< T > const &f)
template<typename T>
T & operator>> (T &m, tPolynomialWithBase< T > &f)
 function network message writing operator
template<typename T>
bool operator== (const tPolynomialWithBase< T > &left, const tPolynomial< T > &right)
 function network message reading operator
template<typename T>
bool operator== (const tPolynomialWithBase< T > &left, const tPolynomialWithBase< T > &right)


Define Documentation

#define DELTA   1e-10

Definition at line 125 of file tPolynomialWithBase.h.


Function Documentation

T& operator<< ( T &  m,
tPolynomialWithBase< T > const &  f 
)

template<typename T>
bool operator== ( const tPolynomialWithBase< T > &  left,
const tPolynomialWithBase< T > &  right 
) [inline]

Definition at line 128 of file tPolynomialWithBase.h.

References DELTA, and tPolynomialWithBase< T >::unadjustableOffset.

00129 {
00130     bool res = static_cast<tPolynomial<T> >(left) == static_cast<tPolynomial<T> >(right);
00131 
00132     if(true == res) {
00133       // float/double equality doesnt exist. Accept small difference as equal.
00134       res = ( fabs(left.unadjustableOffset - right.unadjustableOffset) < DELTA);
00135     }
00136     
00137     return res;
00138 }

template<typename T>
bool operator== ( const tPolynomialWithBase< T > &  left,
const tPolynomial< T > &  right 
) [inline]

function network message reading operator

template<typename T>
T& operator>> ( T &  m,
tPolynomialWithBase< T > &  f 
) [inline]

function network message writing operator


Generated on Sat Mar 15 23:12:13 2008 for Armagetron Advanced by  doxygen 1.5.4