EvolvingObjects
|
Generational continuator: continues until a number of generations is reached. More...
#include <eoGenContinue.h>
Public Member Functions | |
eoGenContinue (unsigned long _totalGens) | |
Ctor for setting a. | |
eoGenContinue (unsigned long _totalGens, unsigned long &_currentGen) | |
Ctor for enabling the save/load the no. of generations counted. | |
virtual bool | operator() (const eoPop< EOT > &_vEO) |
Returns false when a certain number of generations is reached. | |
virtual void | totalGenerations (unsigned long _tg) |
Sets the number of generations to reach and sets the current generation to 0 (the begin) | |
virtual unsigned long | totalGenerations () |
Returns the number of generations to reach. | |
virtual std::string | className (void) const |
void | readFrom (std::istream &__is) |
Read from a stream. | |
void | printOn (std::ostream &__os) const |
Print on a stream. | |
Private Attributes | |
unsigned long | repTotalGenerations |
unsigned long | thisGenerationPlaceHolder |
unsigned long & | thisGeneration |
Generational continuator: continues until a number of generations is reached.
Definition at line 38 of file eoGenContinue.h.
virtual void eoGenContinue< EOT >::totalGenerations | ( | unsigned long | _tg | ) | [inline, virtual] |
Sets the number of generations to reach and sets the current generation to 0 (the begin)
Definition at line 78 of file eoGenContinue.h.
void eoGenContinue< EOT >::readFrom | ( | std::istream & | __is | ) | [inline, virtual] |
Read from a stream.
__is | the istream to read from |
Reimplemented from eoContinue< EOT >.
Definition at line 95 of file eoGenContinue.h.
void eoGenContinue< EOT >::printOn | ( | std::ostream & | __os | ) | const [inline, virtual] |
Print on a stream.
__os | the ostream to print on |
Reimplemented from eoContinue< EOT >.
Definition at line 103 of file eoGenContinue.h.