
Base-class for Stop-object. More...
#include <search.hh>
Constructors and member functions | |
| Stop (void) | |
| Default constructor. | |
| virtual bool | stop (const Statistics &s, const Options &o)=0 |
| Stop search, if returns true. | |
| virtual | ~Stop (void) |
| Destructor. | |
Predefined stop objects | |
| static Stop * | node (unsigned long int l) |
| Stop if node limit l has been exceeded. | |
| static Stop * | fail (unsigned long int l) |
| Stop if failure limit l has been exceeded. | |
| static Stop * | time (unsigned long int l) |
| Stop if time limit l (in milliseconds) has been exceeded. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::HeapAllocated | |
| static void * | operator new (size_t s) |
| Memory management. | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. | |
|
inline |
|
inlinevirtual |
|
pure virtual |
Stop search, if returns true.
Implemented in FailTimeStop, Gecode::Driver::CombinedStop, Gecode::Search::NodeStop, Gecode::Search::FailStop, Gecode::Search::TimeStop, Gecode::Search::Par::PortfolioStop, Gecode::Search::Seq::PortfolioStop, and Gecode::Search::Seq::RestartStop.
|
static |
|
static |
|
static |