EvolvingObjects
eoFitContinue< EOT > Class Template Reference

Continues until the optimum fitness level is reached. More...

#include <eoFitContinue.h>

Inheritance diagram for eoFitContinue< EOT >:
eoContinue< EOT > eoUF< const eoPop< EOT > &, bool > eoPersistent eoFunctorBase unary_function eoPrintable

List of all members.

Public Types

typedef EOT::Fitness FitnessType
 Define Fitness.

Public Member Functions

 eoFitContinue (const FitnessType _optimum)
 Ctor.
virtual bool operator() (const eoPop< EOT > &_pop)
 Returns false when a fitness criterium is reached.
virtual std::string className (void) const

Private Attributes

FitnessType optimum

Detailed Description

template<class EOT>
class eoFitContinue< EOT >

Continues until the optimum fitness level is reached.

All types which derive from eoScalarFitness is able to compare well via the operator override ( <, >, <=, ...)

Definition at line 39 of file eoFitContinue.h.


Member Function Documentation

template<class EOT>
virtual bool eoFitContinue< EOT >::operator() ( const eoPop< EOT > &  _pop) [inline, virtual]

Returns false when a fitness criterium is reached.

Assumes pop is not sorted!

Implements eoUF< const eoPop< EOT > &, bool >.

Definition at line 50 of file eoFitContinue.h.

References eoPop< EOT >::best_element().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends