EvolvingObjects
eoPeriodicContinue< EOT > Class Template Reference

A continue that becomes true periodically. More...

#include <eoPeriodicContinue.h>

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

List of all members.

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

Detailed Description

template<class EOT>
class eoPeriodicContinue< EOT >

A continue that becomes true periodically.

Definition at line 30 of file eoPeriodicContinue.h.


Constructor & Destructor Documentation

template<class EOT >
eoPeriodicContinue< EOT >::eoPeriodicContinue ( unsigned  __period,
unsigned  __init_counter = 0 
) [inline]

Constructor.

The period is given in parameter.

Definition at line 35 of file eoPeriodicContinue.h.


Member Function Documentation

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


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