BALL::MutablePower< Function, DataType > Class Template Reference

MutablePower class. More...

#include <function.h>

List of all members.


Public Member Functions

Constructors and destructor
MutablePower ()
Default constructor.
MutablePower (const MutablePower &power)
Copy constructor.
virtual ~MutablePower ()
Destructor.
Assignment
MutablePower< Function,
DataType > &
operator= (const MutablePower< Function, DataType > &power)
Assignment operator.
Predicates
bool operator== (const MutablePower< Function, DataType > &power) const
Equality operator.
Function realization
DataType operator() (const DataType &x) const
Evaluation of this subterm.
Accessors
void setFunction (const Function &function)
set the function argument of the power
const Function & getFunction () const
get the function argument of the power
void setExponent (DataType exp)
set the exponent of the power function
DataType getExponent () const
get the exponent of the power function

Protected Attributes

Function function_
DataType exponent_

Detailed Description

template<typename Function, typename DataType = float>
class BALL::MutablePower< Function, DataType >

MutablePower class.

Member Function Documentation

template<typename Function , typename DataType >
DataType BALL::MutablePower< Function, DataType >::getExponent ( ) const

get the exponent of the power function

Returns:
the exponent of this

template<typename Function, typename DataType = float>
const Function& BALL::MutablePower< Function, DataType >::getFunction ( ) const

get the function argument of the power

Returns:
a const reference to the function argument

template<typename Function, typename DataType = float>
DataType BALL::MutablePower< Function, DataType >::operator() ( const DataType & x ) const

Evaluation of this subterm.

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

template<typename Function , typename DataType >
void BALL::MutablePower< Function, DataType >::setExponent ( DataType exp )

set the exponent of the power function

Parameters:
exp the exponent

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