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

Division< First, Second, DataType > Class Template Reference

Division class. More...

#include <function.h>

List of all members.

Public Member Functions

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

Protected Attributes

First first_
Second second_


Detailed Description

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

Division class.


Member Function Documentation

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

get the first argument of the division

Returns:
a const reference to the first argument

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

get the second argument of the division

Returns:
a const reference to the second argument

template<typename First, typename Second, typename DataType = float>
DataType 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