feat: add a dummy continue, always returning true.
Useful in do_make* when no continue may be instanciated.
This commit is contained in:
parent
e389294cbb
commit
40fb64a5aa
1 changed files with 11 additions and 0 deletions
|
|
@ -67,6 +67,17 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** A continue that always return true.
|
||||||
|
*
|
||||||
|
* @ingroup Continuators
|
||||||
|
*/
|
||||||
|
template< class EOT >
|
||||||
|
class eoDummyContinue : public eoContinue< EOT >
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
bool operator()(const eoPop<EOT>&) {return true;}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Termination condition with a count condition (totalGenerations). This continuator contains
|
* Termination condition with a count condition (totalGenerations). This continuator contains
|
||||||
* a count of cycles, which can be retrieved or set.
|
* a count of cycles, which can be retrieved or set.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue