#include <BALL/MATHS/function.h>
Public Member Functions | |
Constructors and destructor | |
MutableConstant () | |
MutableConstant (const MutableConstant< DataType > &constant) | |
MutableConstant (DataType constant) | |
virtual | ~MutableConstant () |
Assignment | |
MutableConstant< DataType > & | operator= (const MutableConstant< DataType > &constant) |
Predicates | |
bool | operator== (const MutableConstant< DataType > &constant) const |
Function realization | |
BALL_INLINE DataType | operator() (const DataType &) const |
Accessors | |
void | setConstant (DataType constant) |
const DataType & | getConstant () const |
Protected Attributes | |
DataType | constant_ |
Constant function class. This class represents constants that are not known at compile time but must be set at running time.
Definition at line 55 of file function.h.
BALL_INLINE BALL::MutableConstant< DataType >::MutableConstant | ( | ) | [inline] |
Default constructor
Definition at line 1085 of file function.h.
BALL_INLINE BALL::MutableConstant< DataType >::MutableConstant | ( | const MutableConstant< DataType > & | constant | ) | [inline] |
Copy constructor
Definition at line 1094 of file function.h.
BALL_INLINE BALL::MutableConstant< DataType >::MutableConstant | ( | DataType | constant | ) | [inline] |
Detailed constructor
Definition at line 1102 of file function.h.
BALL_INLINE BALL::MutableConstant< DataType >::~MutableConstant | ( | ) | [inline, virtual] |
Destructor
Definition at line 1110 of file function.h.
const DataType& BALL::MutableConstant< DataType >::getConstant | ( | ) | const [inline] |
Get the constant argument of the constant
Definition at line 137 of file function.h.
BALL_INLINE DataType BALL::MutableConstant< DataType >::operator() | ( | const DataType & | ) | const [inline] |
Evaluation of this subterm
x | the point where to evaluate |
Definition at line 115 of file function.h.
BALL_INLINE MutableConstant< DataType > & BALL::MutableConstant< DataType >::operator= | ( | const MutableConstant< DataType > & | constant | ) | [inline] |
Assignment operator
Definition at line 1118 of file function.h.
BALL_INLINE bool BALL::MutableConstant< DataType >::operator== | ( | const MutableConstant< DataType > & | constant | ) | const [inline] |
Equality operator
Definition at line 1128 of file function.h.
void BALL::MutableConstant< DataType >::setConstant | ( | DataType | constant | ) | [inline] |
Set the constant argument of the constant
Definition at line 128 of file function.h.
DataType BALL::MutableConstant< DataType >::constant_ [protected] |
Definition at line 149 of file function.h.