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

Addition< First, Second, DataType > Class Template Reference

Addition class. More...

#include <function.h>

List of all members.

Public Member Functions

Constructors and destructor
 Addition () throw ()
 Default constructor.
 Addition (const Addition< First, Second, DataType > &addition) throw ()
 Copy constructor.
virtual ~Addition () throw ()
 Destructor.
Assignment
Addition< First, Second, DataType > & operator= (const Addition< First, Second, DataType > &addition) throw ()
 Assignment operator.
Predicates
bool operator== (const Addition< First, Second, DataType > &addition) const throw ()
 Equality operator.
Function realization
DataType operator() (const DataType &x) const throw ()
 Evaluation of this subterm.
Accessors
void setFirst (const First &first) throw ()
 set the first argument of the addition
First & getFirst () throw ()
 get the first argument of the addition
const First & getFirst () const throw ()
 Get the first argument of the addition (const version).
void setSecond (const Second &second) throw ()
 set the second argument of the addition
Second & getSecond () throw ()
 get the second argument of the addition
const Second & getSecond () const throw ()
 Get the second argument of the addition (const version).

Protected Attributes

First first_
Second second_


Detailed Description

template<typename First, typename Second, typename DataType = float>
class Addition< First, Second, DataType >

Addition class.


Member Function Documentation

template<typename First, typename Second, typename DataType = float>
const First& Addition< First, Second, DataType >::getFirst  )  const throw ()
 

Get the first argument of the addition (const version).

template<typename First, typename Second, typename DataType = float>
First& Addition< First, Second, DataType >::getFirst  )  throw ()
 

get the first argument of the addition

Returns:
a const reference to the first argument

template<typename First, typename Second, typename DataType = float>
const Second& Addition< First, Second, DataType >::getSecond  )  const throw ()
 

Get the second argument of the addition (const version).

template<typename First, typename Second, typename DataType = float>
Second& Addition< First, Second, DataType >::getSecond  )  throw ()
 

get the second argument of the addition

Returns:
a const reference to the second argument

template<typename First, typename Second, typename DataType = float>
DataType Addition< First, Second, DataType >::operator() const DataType &  x  )  const throw ()
 

Evaluation of this subterm.

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