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

#include <BALL/MATHS/function.h>

List of all members.


Public Member Functions

Constructors and destructor
 Subtraction ()
 Subtraction (const Subtraction &subtraction)
virtual ~Subtraction ()
Assignment
Subtraction< First, Second,
DataType > & 
operator= (const Subtraction< First, Second, DataType > &subtraction)
Predicates
bool operator== (const Subtraction< First, Second, DataType > &subtraction) const
Function realization
BALL_INLINE DataType operator() (const DataType &x) const
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::Subtraction< First, Second, DataType >

Subtraction class.


Constructor & Destructor Documentation

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

Default constructor

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

Copy constructor

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

Destructor


Member Function Documentation

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

get the first argument of the subtraction

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

get the second argument of the subtraction

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

set the first argument of the subtraction

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

set the second argument of the subtraction


Member Data Documentation

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