Base-class for Stop-object. More...
#include <search.hh>
Public 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. | |
Static Public Member Functions | |
static void * | operator new (size_t s) |
Allocate memory from heap. | |
static void | operator delete (void *p) |
Free memory allocated from heap. |
Gecode::Search::Stop::Stop | ( | void | ) | [inline] |
Gecode::Search::Stop::~Stop | ( | void | ) | [inline, virtual] |
virtual bool Gecode::Search::Stop::stop | ( | const Statistics & | s, |
const Options & | o | ||
) | [pure virtual] |
Stop search, if returns true.
Implemented in Gecode::Search::MetaStop, Gecode::Search::TimeStop, Gecode::Search::FailStop, Gecode::Search::NodeStop, and Gecode::Driver::CombinedStop.
void * Gecode::Search::Stop::operator new | ( | size_t | s | ) | [inline, static] |
void Gecode::Search::Stop::operator delete | ( | void * | p | ) | [inline, static] |