#include <function.h>
Public Member Functions |
|
|
Constructors and destructor
|
|
| MutableConstant () | |
| Default constructor. |
|
| MutableConstant (const MutableConstant< DataType > &constant) | |
| Copy constructor. |
|
| MutableConstant (DataType constant) | |
| Detailed constructor. |
|
| virtual | ~MutableConstant () |
| Destructor. |
|
|
Assignment
|
|
| MutableConstant< DataType > & | operator= (const MutableConstant< DataType > &constant) |
| Assignment operator. |
|
|
Predicates
|
|
| bool | operator== (const MutableConstant< DataType > &constant) const |
| Equality operator. |
|
|
Function realization
|
|
| DataType | operator() (const DataType &) const |
| Evaluation of this subterm. |
|
|
Accessors
|
|
| void | setConstant (DataType constant) |
| Set the constant argument of the
constant. |
|
| const DataType & | getConstant () const |
| Get the constant argument of the
constant. |
|
Protected Attributes |
|
| DataType | constant_ |
This class represents constants that are not known at compile time but must be set at running time.
| const DataType& BALL::MutableConstant< DataType >::getConstant | ( | ) | const |
Get the constant argument of the constant.
| DataType BALL::MutableConstant< DataType >::operator() | ( | const DataType & | ) | const |
Evaluation of this subterm.
| x | the point where to evaluate |
1.5.8