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

#include <BALL/MATHS/function.h>

List of all members.


Public Member Functions

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

Protected Attributes

First first_
Second second_

Detailed Description

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

Addition class.


Constructor & Destructor Documentation

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

Default constructor

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

Copy constructor

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

Destructor


Member Function Documentation

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

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

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

get the first argument of the addition

Returns:
a const reference to the first argument
template<typename First, typename Second, typename DataType = float>
const Second& BALL::Addition< First, Second, DataType >::getSecond (  )  const [inline]

Get the second argument of the addition (const version).

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

get the second argument of the addition

Returns:
a const reference to the second argument
template<typename First, typename Second, typename DataType = float>
BALL_INLINE DataType BALL::Addition< First, Second, DataType >::operator() ( const DataType &  x  )  const [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 Addition< First, Second, DataType > & BALL::Addition< First, Second, DataType >::operator= ( const Addition< First, Second, DataType > &  addition  )  [inline]
template<typename First , typename Second , typename DataType >
BALL_INLINE bool BALL::Addition< First, Second, DataType >::operator== ( const Addition< First, Second, DataType > &  addition  )  const [inline]
template<typename First, typename Second, typename DataType = float>
void BALL::Addition< First, Second, DataType >::setFirst ( const First &  first  )  [inline]

set the first argument of the addition

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

set the second argument of the addition


Member Data Documentation

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