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 | reset (Space *s) |
Reset engine to restart at space s. | |
virtual NoGoods & | nogoods (void) |
Return no-goods. | |
Protected Attributes | |
Worker | w |
The worker to wrap into an engine. |
Virtualize a worker to an engine.
Definition at line 51 of file support.hh.
Gecode::Search::WorkerToEngine< Worker >::WorkerToEngine | ( | Space * | s, |
const Options & | o | ||
) |
Initialization.
Definition at line 79 of file support.hh.
Space * Gecode::Search::WorkerToEngine< Worker >::next | ( | void | ) | [virtual] |
Return next solution (NULL, if none exists or search has been stopped)
Implements Gecode::Search::Engine.
Definition at line 83 of file support.hh.
Search::Statistics Gecode::Search::WorkerToEngine< Worker >::statistics | ( | void | ) | const [virtual] |
bool Gecode::Search::WorkerToEngine< Worker >::stopped | ( | void | ) | const [virtual] |
Check whether engine has been stopped.
Implements Gecode::Search::Engine.
Definition at line 93 of file support.hh.
void Gecode::Search::WorkerToEngine< Worker >::reset | ( | Space * | s | ) | [virtual] |
Reset engine to restart at space s.
Implements Gecode::Search::Engine.
Definition at line 98 of file support.hh.
NoGoods & Gecode::Search::WorkerToEngine< Worker >::nogoods | ( | void | ) | [virtual] |
Worker Gecode::Search::WorkerToEngine< Worker >::w [protected] |
The worker to wrap into an engine.
Definition at line 54 of file support.hh.