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

#include <BALL/MATHS/function.h>

List of all members.


Public Member Functions

Constructors and destructor
 Division ()
 Division (const Division &division)
virtual ~Division ()
Assignment
Division< First, Second,
DataType > & 
operator= (const Division< First, Second, DataType > &division)
Predicates
bool operator== (const Division< First, Second, DataType > &division) const
Function realization
BALL_INLINE DataType operator() (const DataType &x) const throw (Exception::DivisionByZero)
Accessors
void setFirst (const First &first)
First & getFirst ()
void setSecond (const Second &second)
Second & getSecond ()

Protected Attributes

First first_
Second second_

Detailed Description

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

Division class.


Constructor & Destructor Documentation

template<typename First , typename Second , typename DataType >
BALL_INLINE BALL::Division< First, Second, DataType >::Division (  )  [inline]

Default constructor

template<typename First , typename Second , typename DataType >
BALL_INLINE BALL::Division< First, Second, DataType >::Division ( const Division< First, Second, DataType > &  division  )  [inline]

Copy constructor

template<typename First , typename Second , typename DataType >
BALL_INLINE BALL::Division< First, Second, DataType >::~Division (  )  [inline, virtual]

Destructor


Member Function Documentation

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

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 (  )  [inline]

get the second argument of the division

Returns:
a const reference to the second argument
template<typename First, typename Second, typename DataType = float>
BALL_INLINE DataType BALL::Division< First, Second, DataType >::operator() ( const DataType &  x  )  const throw (Exception::DivisionByZero) [inline]

Evaluation of this subterm

Parameters:
x the point where to evaluate
Returns:
the function value
template<typename First , typename Second , typename DataType >
BALL_INLINE Division< First, Second, DataType > & BALL::Division< First, Second, DataType >::operator= ( const Division< First, Second, DataType > &  division  )  [inline]
template<typename First , typename Second , typename DataType >
BALL_INLINE bool BALL::Division< First, Second, DataType >::operator== ( const Division< First, Second, DataType > &  division  )  const [inline]
template<typename First, typename Second, typename DataType = float>
void BALL::Division< First, Second, DataType >::setFirst ( const First &  first  )  [inline]

set the first argument of the division

template<typename First, typename Second, typename DataType = float>
void BALL::Division< First, Second, DataType >::setSecond ( const Second &  second  )  [inline]

set the second argument of the division


Member Data Documentation

template<typename First, typename Second, typename DataType = float>
First BALL::Division< First, Second, DataType >::first_ [protected]
template<typename First, typename Second, typename DataType = float>
Second BALL::Division< First, Second, DataType >::second_ [protected]