EvolvingObjects
|
A continue that becomes true periodically. More...
#include <eoPeriodicContinue.h>
Public Member Functions | |
eoPeriodicContinue (unsigned __period, unsigned __init_counter=0) | |
Constructor. | |
bool | operator() (const eoPop< EOT > &) |
It returns 'true' only if the current number of generations modulo the period doen't equal to zero. | |
Private Attributes | |
unsigned | period |
unsigned | counter |
A continue that becomes true periodically.
Definition at line 30 of file eoPeriodicContinue.h.
eoPeriodicContinue< EOT >::eoPeriodicContinue | ( | unsigned | __period, |
unsigned | __init_counter = 0 |
||
) | [inline] |
bool eoPeriodicContinue< EOT >::operator() | ( | const eoPop< EOT > & | ) | [inline, virtual] |
It returns 'true' only if the current number of generations modulo the period doen't equal to zero.
Implements eoUF< const eoPop< EOT > &, bool >.
Definition at line 42 of file eoPeriodicContinue.h.