Virtualize a worker to an engine. More...
#include <support.hh>
Public Member Functions | |
WorkerToEngine (Space *s, const Options &o) | |
Initialization. | |
virtual Space * | next (void) |
Return next solution (NULL, if none exists or search has been stopped) | |
virtual Search::Statistics | statistics (void) const |
Return statistics. | |
virtual bool | stopped (void) const |
Check whether engine has been stopped. | |
virtual void | constrain (const Space &b) |
Constrain future solutions to be better than b. | |
virtual void | reset (Space *s) |
Reset engine to restart at space s. | |
virtual NoGoods & | nogoods (void) |
Return no-goods. | |
![]() | |
virtual | ~Engine (void) |
Destructor. | |
Protected Attributes | |
Worker | w |
The worker to wrap into an engine. | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t s) |
Memory management. | |
static void | operator delete (void *p) |
Free memory allocated from heap. | |
Virtualize a worker to an engine.
Definition at line 47 of file support.hh.
Gecode::Search::WorkerToEngine< Worker >::WorkerToEngine | ( | Space * | s, |
const Options & | o ) |
Initialization.
Definition at line 77 of file support.hh.
|
virtual |
Return next solution (NULL, if none exists or search has been stopped)
Implements Gecode::Search::Engine.
Definition at line 81 of file support.hh.
|
virtual |
|
virtual |
Check whether engine has been stopped.
Implements Gecode::Search::Engine.
Definition at line 91 of file support.hh.
|
virtual |
Constrain future solutions to be better than b.
Reimplemented from Gecode::Search::Engine.
Definition at line 101 of file support.hh.
|
virtual |
Reset engine to restart at space s.
Reimplemented from Gecode::Search::Engine.
Definition at line 96 of file support.hh.
|
virtual |
Return no-goods.
Reimplemented from Gecode::Search::Engine.
Definition at line 106 of file support.hh.
|
protected |
The worker to wrap into an engine.
Definition at line 50 of file support.hh.