#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 object. | |
void | printOn (std::ostream &__os) const |
Write object. | |
Public Attributes | |
bool | verbose |
Private Attributes | |
unsigned long | repTotalGenerations |
unsigned long | thisGenerationPlaceHolder |
unsigned long & | thisGeneration |
Definition at line 34 of file eoGenContinue.h.
void eoGenContinue< EOT >::readFrom | ( | std::istream & | _is | ) | [inline, virtual] |
Read object.
_is | A std::istream. |
runtime_std::exception | If a valid object can't be read. |
Reimplemented from eoContinue< EOT >.
Definition at line 83 of file eoGenContinue.h.
void eoGenContinue< EOT >::printOn | ( | std::ostream & | _os | ) | const [inline, virtual] |
Write object.
It's called printOn since it prints the object on a stream.
_os | A std::ostream. |
Reimplemented from eoContinue< EOT >.
Definition at line 88 of file eoGenContinue.h.