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

#include <BALL/MATHS/function.h>

List of all members.

Public Member Functions

Constructors and destructor

 MutablePower ()
 MutablePower (const MutablePower &power)
virtual ~MutablePower ()
Assignment

MutablePower< Function,
DataType > & 
operator= (const MutablePower< Function, DataType > &power)
Predicates

bool operator== (const MutablePower< Function, DataType > &power) const
Function realization

BALL_INLINE DataType operator() (const DataType &x) const
Accessors

void setFunction (const Function &function)
const Function & getFunction () const
void setExponent (DataType exp)
DataType getExponent () const

Protected Attributes

Function function_
DataType exponent_

Detailed Description

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

MutablePower class.

Definition at line 973 of file function.h.


Constructor & Destructor Documentation

template<typename Function , typename DataType >
BALL_INLINE BALL::MutablePower< Function, DataType >::MutablePower (  )  [inline]

Default constructor

Definition at line 1436 of file function.h.

template<typename Function , typename DataType >
BALL_INLINE BALL::MutablePower< Function, DataType >::MutablePower ( const MutablePower< Function, DataType > &  power  )  [inline]

Copy constructor

Definition at line 1445 of file function.h.

template<typename Function , typename DataType >
BALL_INLINE BALL::MutablePower< Function, DataType >::~MutablePower (  )  [inline, virtual]

Destructor

Definition at line 1454 of file function.h.


Member Function Documentation

template<typename Function , typename DataType >
BALL_INLINE DataType BALL::MutablePower< Function, DataType >::getExponent (  )  const [inline]

get the exponent of the power function

Returns:
the exponent of this

Definition at line 1480 of file function.h.

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

get the function argument of the power

Returns:
a const reference to the function argument

Definition at line 1050 of file function.h.

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

Evaluation of this subterm

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

Definition at line 1028 of file function.h.

template<typename Function , typename DataType >
BALL_INLINE MutablePower< Function, DataType > & BALL::MutablePower< Function, DataType >::operator= ( const MutablePower< Function, DataType > &  power  )  [inline]

Assignment operator

Definition at line 1461 of file function.h.

template<typename Function , typename DataType >
BALL_INLINE bool BALL::MutablePower< Function, DataType >::operator== ( const MutablePower< Function, DataType > &  power  )  const [inline]

Equality operator

Definition at line 1471 of file function.h.

template<typename Function , typename DataType >
BALL_INLINE void BALL::MutablePower< Function, DataType >::setExponent ( DataType  exp  )  [inline]

set the exponent of the power function

Parameters:
exp the exponent

Definition at line 1488 of file function.h.

template<typename Function, typename DataType = float>
void BALL::MutablePower< Function, DataType >::setFunction ( const Function &  function  )  [inline]

set the function argument of the power

Definition at line 1041 of file function.h.


Member Data Documentation

template<typename Function, typename DataType = float>
DataType BALL::MutablePower< Function, DataType >::exponent_ [protected]

Definition at line 1078 of file function.h.

template<typename Function, typename DataType = float>
Function BALL::MutablePower< Function, DataType >::function_ [protected]

Definition at line 1074 of file function.h.

Generated by  doxygen 1.6.3