highprecisionpso::PairReduceOperation Class Referenceabstract

This class is an abstract class. It supplies the interface for reducing two mpf_t values to a single value. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::PairReduceOperation:

Public Member Functions

virtual ~PairReduceOperation ()
 The destructor. More...
 
virtual mpf_t * Evaluate (mpf_t *value1, mpf_t *value2)=0
 Reduces two values to a single value. More...
 
virtual std::string GetName ()=0
 Returns a string representation of this object. More...
 

Detailed Description

This class is an abstract class. It supplies the interface for reducing two mpf_t values to a single value.

Constructor & Destructor Documentation

virtual highprecisionpso::PairReduceOperation::~PairReduceOperation ( )
inlinevirtual

The destructor.

Member Function Documentation

virtual mpf_t* highprecisionpso::PairReduceOperation::Evaluate ( mpf_t *  value1,
mpf_t *  value2 
)
pure virtual

Reduces two values to a single value.

Parameters
value1The first value which should be reduced.
value2The second value which should be reduced.
Returns
The reduced value.

Implemented in highprecisionpso::MaxOperation, highprecisionpso::MinOperation, highprecisionpso::DivideOperation, highprecisionpso::MultiplyOperation, highprecisionpso::SubtractOperation, and highprecisionpso::AddOperation.

virtual std::string highprecisionpso::PairReduceOperation::GetName ( )
pure virtual

The documentation for this class was generated from the following file: