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