#include <BALL/MATHS/function.h>
Public Member Functions | |
Constructors and destructor | |
| MutablePower () | |
| MutablePower (const MutablePower &power) | |
| virtual | ~MutablePower () |
Assignment | |
| MutablePower< Function, DataType > & | operator= (const MutablePower< Function, DataType > &power) |
Predicates | |
| bool | operator== (const MutablePower< Function, DataType > &power) const |
Function realization | |
| BALL_INLINE DataType | operator() (const DataType &x) const |
Accessors | |
| void | setFunction (const Function &function) |
| const Function & | getFunction () const |
| void | setExponent (DataType exp) |
| DataType | getExponent () const |
Protected Attributes | |
| Function | function_ |
| DataType | exponent_ |
MutablePower class.
| BALL_INLINE BALL::MutablePower< Function, DataType >::MutablePower | ( | ) | [inline] |
Default constructor
| BALL_INLINE BALL::MutablePower< Function, DataType >::MutablePower | ( | const MutablePower< Function, DataType > & | power | ) | [inline] |
Copy constructor
| BALL_INLINE BALL::MutablePower< Function, DataType >::~MutablePower | ( | ) | [inline, virtual] |
Destructor
| BALL_INLINE DataType BALL::MutablePower< Function, DataType >::getExponent | ( | ) | const [inline] |
get the exponent of the power function
References BALL::MutablePower< Function, DataType >::exponent_.
| const Function& BALL::MutablePower< Function, DataType >::getFunction | ( | ) | const [inline] |
get the function argument of the power
| BALL_INLINE DataType BALL::MutablePower< Function, DataType >::operator() | ( | const DataType & | x | ) | const [inline] |
Evaluation of this subterm
| x | the point where to evaluate |
| BALL_INLINE MutablePower< Function, DataType > & BALL::MutablePower< Function, DataType >::operator= | ( | const MutablePower< Function, DataType > & | power | ) | [inline] |
Assignment operator
References BALL::MutablePower< Function, DataType >::exponent_, and BALL::MutablePower< Function, DataType >::function_.
| BALL_INLINE bool BALL::MutablePower< Function, DataType >::operator== | ( | const MutablePower< Function, DataType > & | power | ) | const [inline] |
Equality operator
References BALL::MutablePower< Function, DataType >::exponent_, and BALL::MutablePower< Function, DataType >::function_.
| BALL_INLINE void BALL::MutablePower< Function, DataType >::setExponent | ( | DataType | exp | ) | [inline] |
set the exponent of the power function
| exp | the exponent |
References BALL::MutablePower< Function, DataType >::exponent_.
| void BALL::MutablePower< Function, DataType >::setFunction | ( | const Function & | function | ) | [inline] |
set the function argument of the power
DataType BALL::MutablePower< Function, DataType >::exponent_ [protected] |
Function BALL::MutablePower< Function, DataType >::function_ [protected] |