EvolvingObjects
eoGenContinue< EOT > Class Template Reference

Generational continuator: continues until a number of generations is reached. More...

#include <eoGenContinue.h>

Inheritance diagram for eoGenContinue< EOT >:
eoContinue< EOT > eoValueParam< unsigned > eoUF< const eoPop< EOT > &, bool > eoPersistent eoParam eoFunctorBase unary_function eoPrintable

List of all members.

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

Detailed Description

template<class EOT>
class eoGenContinue< EOT >

Generational continuator: continues until a number of generations is reached.

Examples:
t-eoEasyPSO.cpp, t-eoSSGA.cpp, t-eoSymreg.cpp, and t-eoSyncEasyPSO.cpp.

Definition at line 38 of file eoGenContinue.h.


Member Function Documentation

template<class EOT>
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)

Todo:
replace this by an "init" method

Definition at line 78 of file eoGenContinue.h.

template<class EOT>
void eoGenContinue< EOT >::readFrom ( std::istream &  __is) [inline, virtual]

Read from a stream.

Parameters:
__isthe istream to read from

Reimplemented from eoContinue< EOT >.

Definition at line 95 of file eoGenContinue.h.

template<class EOT>
void eoGenContinue< EOT >::printOn ( std::ostream &  __os) const [inline, virtual]

Print on a stream.

Parameters:
__osthe ostream to print on

Reimplemented from eoContinue< EOT >.

Definition at line 103 of file eoGenContinue.h.


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