Function object expressing a termination criteria. More...
#include <termination-criteria.hh>
Public Member Functions | |
virtual bool | operator() (const feasible_solution &fs) |
Alternate function that decides if we shoud terminate the search process. | |
termination_criteria_chain & | operator= (const termination_criteria_chain &) |
virtual void | reset () |
Reset the criterion to its initial state. | |
termination_criteria_chain (termination_criteria_chain *next=0) | |
Constructor. | |
termination_criteria_chain (const termination_criteria_chain &) | |
purposely not implemented (see Effective C++) | |
virtual | ~termination_criteria_chain () |
Virtual destructor. | |
Protected Attributes | |
termination_criteria_chain * | next_m |
Function object expressing a termination criteria.
The search loop ends when the termination criteria is met.
Definition at line 45 of file termination-criteria.hh.
mets::termination_criteria_chain::termination_criteria_chain | ( | termination_criteria_chain * | next = 0 | ) | [inline, explicit] |
Constructor.
next | Optional next criterium in the chain. |
Definition at line 52 of file termination-criteria.hh.
purposely not implemented (see Effective C++)
virtual mets::termination_criteria_chain::~termination_criteria_chain | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 61 of file termination-criteria.hh.
bool mets::termination_criteria_chain::operator() | ( | const feasible_solution & | fs | ) | [inline, virtual] |
Alternate function that decides if we shoud terminate the search process.
(chain of responsibility)
fs | The current working solution. |
Reimplemented in mets::forever, mets::threshold_termination_criteria, mets::noimprove_termination_criteria, and mets::iteration_termination_criteria.
Definition at line 247 of file termination-criteria.hh.
termination_criteria_chain& mets::termination_criteria_chain::operator= | ( | const termination_criteria_chain & | ) |
void mets::termination_criteria_chain::reset | ( | ) | [inline, virtual] |
Reset the criterion to its initial state.
(chain of responsibility)
Reimplemented in mets::forever, mets::threshold_termination_criteria, mets::noimprove_termination_criteria, and mets::iteration_termination_criteria.
Definition at line 257 of file termination-criteria.hh.
Definition at line 81 of file termination-criteria.hh.