#include <tPolynomialWithBase.h>
Public Member Functions | |
tPolynomialWithBase () | |
constructor | |
tPolynomialWithBase (REAL value) | |
constructor | |
tPolynomialWithBase (REAL coefs_[]) | |
constructor | |
tPolynomialWithBase (const tPolynomialWithBase< T > &tf) | |
constructor | |
tPolynomialWithBase (const tPolynomial< T > &tf) | |
constructor | |
virtual | ~tPolynomialWithBase () |
virtual REAL | evaluate (REAL argument) const |
evaluates the function | |
REAL | operator() (REAL argument) const |
evaluation operator | |
void | setUnadjustableOffset (REAL x) |
REAL | getUnadjustableOffset () |
virtual T & | ReadSync (T &m) |
virtual T & | WriteSync (T &m) const |
Protected Attributes | |
REAL | unadjustableOffset |
offset value that is not modified by an adjustSlope | |
Friends | |
template<typename D> | |
bool | operator== (const tPolynomialWithBase< D > &left, const tPolynomialWithBase< D > &right) |
Definition at line 35 of file tPolynomialWithBase.h.
tPolynomialWithBase< T >::tPolynomialWithBase | ( | ) | [inline] |
constructor
Definition at line 82 of file tPolynomialWithBase.h.
00083 : tPolynomial<T>(), 00084 unadjustableOffset(0.0) 00085 { 00086 // Empty 00087 }
tPolynomialWithBase< T >::tPolynomialWithBase | ( | REAL | value | ) | [inline] |
constructor
value | constructor |
Definition at line 90 of file tPolynomialWithBase.h.
00091 : tPolynomial<T>(value), 00092 unadjustableOffset(0.0) 00093 { 00094 // Empty 00095 }
tPolynomialWithBase< T >::tPolynomialWithBase | ( | REAL | coefs_[] | ) | [inline] |
constructor
coefs_ | constructor |
Definition at line 99 of file tPolynomialWithBase.h.
00100 : tPolynomial<T>(coefs_), 00101 unadjustableOffset(0.0) 00102 { 00103 // Empty 00104 }
tPolynomialWithBase< T >::tPolynomialWithBase | ( | const tPolynomialWithBase< T > & | tf | ) | [inline] |
constructor
tf | constructor |
Definition at line 107 of file tPolynomialWithBase.h.
00108 : tPolynomial<T>(tf), 00109 unadjustableOffset(tf.unadjustableOffset) 00110 { 00111 // Empty 00112 }
tPolynomialWithBase< T >::tPolynomialWithBase | ( | const tPolynomial< T > & | tf | ) | [inline] |
constructor
tf | constructor |
Definition at line 115 of file tPolynomialWithBase.h.
00116 : tPolynomial<T>(tf), 00117 unadjustableOffset(0.0) 00118 { 00119 // Empty 00120 }
virtual tPolynomialWithBase< T >::~tPolynomialWithBase | ( | ) | [inline, virtual] |
REAL tPolynomialWithBase< T >::evaluate | ( | REAL | argument | ) | const [inline, virtual] |
evaluates the function
Definition at line 141 of file tPolynomialWithBase.h.
References tPolynomial< T >::evaluate(), REAL, and tPolynomialWithBase< T >::unadjustableOffset.
00142 { 00143 REAL res = tPolynomial<T>::evaluate( argument ); 00144 00145 res += unadjustableOffset; 00146 return res; 00147 }
REAL tPolynomialWithBase< T >::operator() | ( | REAL | argument | ) | const [inline] |
evaluation operator
void tPolynomialWithBase< T >::setUnadjustableOffset | ( | REAL | x | ) |
REAL tPolynomialWithBase< T >::getUnadjustableOffset | ( | ) |
T & tPolynomialWithBase< T >::ReadSync | ( | T & | m | ) | [inline, virtual] |
Definition at line 161 of file tPolynomialWithBase.h.
References tPolynomial< T >::ReadSync(), and tPolynomialWithBase< T >::unadjustableOffset.
00162 { 00163 tPolynomial<T>::ReadSync( m ); 00164 00165 // read unadjustableOffset 00166 m >> unadjustableOffset; 00167 00168 return m; 00169 }
T & tPolynomialWithBase< T >::WriteSync | ( | T & | m | ) | const [inline, virtual] |
Definition at line 150 of file tPolynomialWithBase.h.
References tPolynomialWithBase< T >::unadjustableOffset, and tPolynomial< T >::WriteSync().
00151 { 00152 tPolynomial<T>::WriteSync( m ); 00153 00154 // write unadjustableOffset 00155 m << unadjustableOffset; 00156 00157 return m; 00158 }
bool operator== | ( | const tPolynomialWithBase< D > & | left, | |
const tPolynomialWithBase< D > & | right | |||
) | [friend] |
REAL tPolynomialWithBase< T >::unadjustableOffset [protected] |
offset value that is not modified by an adjustSlope
Definition at line 62 of file tPolynomialWithBase.h.
Referenced by tPolynomialWithBase< T >::evaluate(), operator==(), tPolynomialWithBase< T >::ReadSync(), and tPolynomialWithBase< T >::WriteSync().