highprecisionpso::DoubleConstantEvaluation Class Reference

This constant evaluation can calculate a predefined mpf_t value from a double value. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::DoubleConstantEvaluation:

Public Member Functions

 DoubleConstantEvaluation (double value)
 The constructor, where the mpf_t value, which should be generated, can be specified by a double value. More...
 
mpf_t * Evaluate ()
 Returns the converted double value. More...
 
std::string GetName ()
 Returns a string representation of this object. More...
 
- Public Member Functions inherited from highprecisionpso::ConstantEvaluation
virtual ~ConstantEvaluation ()
 The destructor. More...
 

Detailed Description

This constant evaluation can calculate a predefined mpf_t value from a double value.

Constructor & Destructor Documentation

highprecisionpso::DoubleConstantEvaluation::DoubleConstantEvaluation ( double  value)

The constructor, where the mpf_t value, which should be generated, can be specified by a double value.

Parameters
valueThe value which will be transformed to an mpf_t.

Member Function Documentation

mpf_t* highprecisionpso::DoubleConstantEvaluation::Evaluate ( )
virtual

Returns the converted double value.

Returns
The constant value.

Implements highprecisionpso::ConstantEvaluation.

std::string highprecisionpso::DoubleConstantEvaluation::GetName ( )
virtual

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::ConstantEvaluation.


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