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

#include <BALL/MATHS/function.h>

List of all members.


Public Member Functions

Constructors and destructor
 CubicFunction ()
 CubicFunction (const CubicFunction &cubic)
virtual ~CubicFunction ()
Assignment
CubicFunction< Function,
DataType > & 
operator= (const CubicFunction< Function, DataType > &cubic)
Predicates
bool operator== (const CubicFunction< Function, DataType > &cubic) const
Function realization
BALL_INLINE DataType operator() (const DataType &x) const
Accessors
void setFunction (const Function &function)
const Function & getFunction () const

Protected Attributes

Function function_

Detailed Description

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

CubicFunction class.


Constructor & Destructor Documentation

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

Default constructor

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

Copy constructor

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

Destructor


Member Function Documentation

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

get the function argument of the cubic

Returns:
a const reference to the function argument
template<typename Function, typename DataType = float>
BALL_INLINE DataType BALL::CubicFunction< Function, DataType >::operator() ( const DataType &  x  )  const [inline]

Evaluation of this subterm

Parameters:
x the point where to evaluate
Returns:
the function value
template<typename Function , typename DataType >
BALL_INLINE CubicFunction< Function, DataType > & BALL::CubicFunction< Function, DataType >::operator= ( const CubicFunction< Function, DataType > &  cubic  )  [inline]
template<typename Function , typename DataType >
BALL_INLINE bool BALL::CubicFunction< Function, DataType >::operator== ( const CubicFunction< Function, DataType > &  cubic  )  const [inline]
template<typename Function, typename DataType = float>
void BALL::CubicFunction< Function, DataType >::setFunction ( const Function &  function  )  [inline]

set the function argument of the cubic


Member Data Documentation

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