BALL::Product< First, Second, DataType > Class Template Reference

Multiplication class. More...

#include <function.h>

List of all members.


Public Member Functions

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

Protected Attributes

First first_
Second second_

Detailed Description

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

Multiplication class.

Member Function Documentation

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

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& BALL::Product< First, Second, DataType >::getFirst ( )

get the first argument of the product

Returns:
a const reference to the first argument

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

get the second argument of the product

Returns:
a const reference to the second argument

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

Evaluation of this subterm.

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

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

set the second argument of the product

Parameters:
second the second argument

Generated on Thu Aug 6 18:30:34 2009 for BALL by doxygen 1.5.8