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

Division class. More...

#include <function.h>

List of all members.


Public Member Functions

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

Protected Attributes

First first_
Second second_

Detailed Description

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

Division class.

Member Function Documentation

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

get the first argument of the division

Returns:
a const reference to the first argument

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

get the second argument of the division

Returns:
a const reference to the second argument

template<typename First, typename Second, typename DataType = float>
DataType BALL::Division< First, Second, DataType >::operator() ( const DataType & x ) const throw (Exception::DivisionByZero)

Evaluation of this subterm.

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

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