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

MutablePower< Function, DataType > Class Template Reference

MutablePower class. More...

#include <function.h>

List of all members.

Public Member Functions

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

Protected Attributes

Function function_
DataType exponent_


Detailed Description

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

MutablePower class.


Member Function Documentation

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

get the exponent of the power function

Returns:
the exponent of this

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

get the function argument of the power

Returns:
a const reference to the function argument

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

Evaluation of this subterm.

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

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

set the exponent of the power function

Parameters:
exp the exponent