Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

MutableConstant< DataType > Class Template Reference

Constant function class. More...

#include <function.h>

List of all members.

Public Member Functions

Constructors and destructor
 MutableConstant () throw ()
 Default constructor.
 MutableConstant (const MutableConstant< DataType > &constant) throw ()
 Copy constructor.
 MutableConstant (DataType constant) throw ()
 Detailed constructor.
virtual ~MutableConstant () throw ()
 Destructor.
Assignment
MutableConstant< DataType > & operator= (const MutableConstant< DataType > &constant) throw ()
 Assignment operator.
Predicates
bool operator== (const MutableConstant< DataType > &constant) const throw ()
 Equality operator.
Function realization
DataType operator() (const DataType &) const throw ()
 Evaluation of this subterm.
Accessors
void setConstant (DataType constant) throw ()
 Set the constant argument of the constant.
const DataType & getConstant () const throw ()
 Get the constant argument of the constant.

Protected Attributes

DataType constant_


Detailed Description

template<typename DataType = float>
class MutableConstant< DataType >

Constant function class.

This class represents constants that are not known at compile time but must be set at running time.


Member Function Documentation

template<typename DataType = float>
const DataType& MutableConstant< DataType >::getConstant  )  const throw ()
 

Get the constant argument of the constant.

Returns:
a const reference to the constant argument

template<typename DataType = float>
DataType MutableConstant< DataType >::operator() const DataType &   )  const throw ()
 

Evaluation of this subterm.

Parameters:
x the point where to evaluate
Returns:
the function value