Generated on Fri Mar 20 15:57:08 2015 for Gecode by doxygen 1.6.3

Gecode::Search::WorkerToEngine< Worker > Class Template Reference

Virtualize a worker to an engine. More...

#include <support.hh>

List of all members.

Public Member Functions

 WorkerToEngine (Space *s, const Options &o)
 Initialization.
virtual Spacenext (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 NoGoodsnogoods (void)
 Return no-goods.

Protected Attributes

Worker w
 The worker to wrap into an engine.

Detailed Description

template<class Worker>
class Gecode::Search::WorkerToEngine< Worker >

Virtualize a worker to an engine.

Definition at line 51 of file support.hh.


Constructor & Destructor Documentation

template<class Worker >
Gecode::Search::WorkerToEngine< Worker >::WorkerToEngine ( Space s,
const Options o 
) [inline]

Initialization.

Definition at line 79 of file support.hh.


Member Function Documentation

template<class Worker >
Space * Gecode::Search::WorkerToEngine< Worker >::next ( void   )  [inline, 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.

template<class Worker >
Search::Statistics Gecode::Search::WorkerToEngine< Worker >::statistics ( void   )  const [inline, virtual]

Return statistics.

Implements Gecode::Search::Engine.

Definition at line 88 of file support.hh.

template<class Worker >
bool Gecode::Search::WorkerToEngine< Worker >::stopped ( void   )  const [inline, virtual]

Check whether engine has been stopped.

Implements Gecode::Search::Engine.

Definition at line 93 of file support.hh.

template<class Worker >
void Gecode::Search::WorkerToEngine< Worker >::reset ( Space s  )  [inline, virtual]

Reset engine to restart at space s.

Reimplemented from Gecode::Search::Engine.

Definition at line 98 of file support.hh.

template<class Worker >
NoGoods & Gecode::Search::WorkerToEngine< Worker >::nogoods ( void   )  [inline, virtual]

Return no-goods.

Reimplemented from Gecode::Search::Engine.

Definition at line 104 of file support.hh.


Member Data Documentation

template<class Worker >
Worker Gecode::Search::WorkerToEngine< Worker >::w [protected]

The worker to wrap into an engine.

Definition at line 54 of file support.hh.


The documentation for this class was generated from the following file: