BALL::MutableConstant< DataType > Class Template Reference

Constant function class. More...

#include <function.h>

List of all members.


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_

Detailed Description

template<typename DataType = float>
class BALL::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& BALL::MutableConstant< DataType >::getConstant ( ) const

Get the constant argument of the constant.

Returns:
a const reference to the constant argument

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

Evaluation of this subterm.

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

Generated on Thu Aug 6 18:30:34 2009 for BALL by doxygen 1.5.8