#include <GLFitnessSingleObjective.h>
Public Member Functions | |
GLFitnessSingleObjective (const TFitness &value) | |
GLFitnessSingleObjective (const GLFitness< TFitness > &source) | |
virtual | ~GLFitnessSingleObjective () |
virtual void | assignTo (GLBaseFitness &result) const |
virtual GLBaseFitness * | copy () const |
virtual std::ostream & | toStream (std::ostream &out) const |
virtual std::ostream & | toStreamDebug (std::ostream &out) const |
Definition at line 17 of file GLFitnessSingleObjective.h.
GLFitnessSingleObjective< TFitness >::GLFitnessSingleObjective | ( | const TFitness & | value | ) | [inline] |
Constructor to store the value of the fitness function.
value | fitness value. |
Definition at line 24 of file GLFitnessSingleObjective.h.
GLFitnessSingleObjective< TFitness >::GLFitnessSingleObjective | ( | const GLFitness< TFitness > & | source | ) | [inline] |
Copying constructor.
source | sourse of the fitness value. |
Definition at line 32 of file GLFitnessSingleObjective.h.
GLFitnessSingleObjective< TFitness >::~GLFitnessSingleObjective | ( | ) | [inline, virtual] |
Simple destructor.
Definition at line 8 of file GLFitnessSingleObjective.cpp.
void GLFitnessSingleObjective< TFitness >::assignTo | ( | GLBaseFitness & | result | ) | const [inline, virtual] |
Assigns the value of fitness function GLFitnessSingleObjective<double>. Note, that it means, that template parameter TFitness must support transformation to double.
result | should be compatible with type GLFitnessSingleObjective<double>. E.g. this function may be used to transform GLFitness<int> to GLFitnessSingleObjective<double>. |
Reimplemented from GLBaseFitness.
Definition at line 21 of file GLFitnessSingleObjective.cpp.
virtual GLBaseFitness* GLFitnessSingleObjective< TFitness >::copy | ( | ) | const [inline, virtual] |
Returns the copy of the fittness class.
Reimplemented from GLFitness< TFitness >.
Definition at line 55 of file GLFitnessSingleObjective.h.
virtual std::ostream& GLFitnessSingleObjective< TFitness >::toStream | ( | std::ostream & | out | ) | const [inline, virtual] |
Outputs the content of the organism to output stream.
out | output stream. |
Definition at line 62 of file GLFitnessSingleObjective.h.
virtual std::ostream& GLFitnessSingleObjective< TFitness >::toStreamDebug | ( | std::ostream & | out | ) | const [inline, virtual] |
Outputs the content of the organism to output stream in debug mode.
out | output stream. |
Definition at line 70 of file GLFitnessSingleObjective.h.