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

Product< First, Second, DataType > Class Template Reference

Multiplication class. More...

#include <function.h>

List of all members.

Public Member Functions

Constructors and destructor
 Product () throw ()
 Default constructor.
 Product (const Product &product) throw ()
 Copy constructor.
virtual ~Product () throw ()
 Destructor.
Assignment
Product< First, Second, DataType > & operator= (const Product< First, Second, DataType > &product) throw ()
 Assignment operator.
Predicates
bool operator== (const Product< First, Second, DataType > &product) 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 product
First & getFirst () throw ()
 get the first argument of the product
const First & getFirst () const throw ()
 Get the first argument of the product (const version).
void setSecond (const Second &second) throw ()
 set the second argument of the product
Second & getSecond () throw ()
 get the second argument of the product

Protected Attributes

First first_
Second second_


Detailed Description

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

Multiplication class.


Member Function Documentation

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

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

Returns:
a const reference to the first argument

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

get the first argument of the product

Returns:
a const reference to the first argument

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

get the second argument of the product

Returns:
a const reference to the second argument

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

Evaluation of this subterm.

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

template<typename First, typename Second, typename DataType = float>
void Product< First, Second, DataType >::setSecond const Second &  second  )  throw ()
 

set the second argument of the product

Parameters:
second the second argument