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

SquareFunction< Function, DataType > Class Template Reference

SquareFunction class. More...

#include <function.h>

List of all members.

Public Member Functions

Constructors and destructor
 SquareFunction () throw ()
 Default constructor.
 SquareFunction (const SquareFunction &square) throw ()
 Copy constructor.
virtual ~SquareFunction () throw ()
 Destructor.
Assignment
SquareFunction< Function,
DataType > & 
operator= (const SquareFunction< Function, DataType > &square) throw ()
 Assignment operator.
Predicates
bool operator== (const SquareFunction< Function, DataType > &square) 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 square
const Function & getFunction () const throw ()
 get the function argument of the square

Protected Attributes

Function function_


Detailed Description

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

SquareFunction class.


Member Function Documentation

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

get the function argument of the square

Returns:
a const reference to the function argument

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

Evaluation of this subterm.

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