Gecode::Search::Par::Slave< Collect > Class Template Reference
Runnable slave of a portfolio master. More...
#include <gecode/search/par/pbs.hh>
Classes | |
| class | Completion |
| Completion event for the current run. More... | |
Public Member Functions | |
| Slave (PBS< Collect > *m, Engine *s, Stop *so) | |
| Initialize with master m, slave s, and its stop object so. | |
| Statistics | statistics (void) const |
| Return statistics of slave. | |
| bool | stopped (void) const |
| Check whether slave has been stopped. | |
| bool | limited (void) const |
| Check whether slave stopped at a local limit. | |
| virtual Support::Terminator * | terminator (void) const |
| Return the completion terminator. | |
| void | wait (void) |
| Wait for the slave to complete its current run. | |
| void | wake (void) |
| Wake a paused slave so that it can observe the portfolio stop. | |
| void | constrain (const Space &b) |
| Constrain with better solution b. | |
| virtual void | run (void) |
| Perform one run. | |
| virtual | ~Slave (void) |
| Delete slave. | |
| Public Member Functions inherited from Gecode::Support::Runnable | |
| Runnable (bool d=true) | |
| Initialize, d defines whether object is deleted when terminated. | |
| void | todelete (bool d) |
| Set whether to delete upon termination. | |
| bool | todelete (void) const |
| Return whether to be deleted upon termination. | |
| virtual | ~Runnable (void) |
| Destructor. | |
Protected Attributes | |
| Gecode::Search::Par::Slave::Completion | completion |
| PBS< Collect > * | master |
| The master engine. | |
| Engine * | slave |
| The slave engine. | |
| Stop * | stop |
| Stop object. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Gecode::Support::Runnable | |
| static void * | operator new (size_t s) |
| Allocate memory from heap. | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. | |
Detailed Description
template<class Collect>
class Gecode::Search::Par::Slave< Collect >
class Gecode::Search::Par::Slave< Collect >
Runnable slave of a portfolio master.
Constructor & Destructor Documentation
◆ Slave()
template<class Collect>
|
inline |
◆ ~Slave()
template<class Collect>
|
virtual |
Member Function Documentation
◆ statistics()
template<class Collect>
|
inline |
◆ stopped()
template<class Collect>
|
inline |
◆ limited()
template<class Collect>
|
inline |
◆ terminator()
template<class Collect>
|
inlinevirtual |
Return the completion terminator.
Reimplemented from Gecode::Support::Runnable.
◆ wait()
template<class Collect>
|
inline |
◆ wake()
template<class Collect>
|
inline |
◆ constrain()
template<class Collect>
|
inline |
◆ run()
template<class Collect>
|
virtual |
Member Data Documentation
◆ completion
template<class Collect>
|
protected |
◆ master
template<class Collect>
|
protected |
◆ slave
template<class Collect>
|
protected |
◆ stop
template<class Collect>
|
protected |
The documentation for this class was generated from the following files:
