Generated on Sat May 25 2013 18:00:50 for Gecode by doxygen 1.8.3.1
Gecode::Search::WorkerToEngine< Worker > Class Template Reference

Virtualize a worker to an engine. More...

#include <support.hh>

Public Member Functions

 WorkerToEngine (Space *s, size_t sz, const Options &o)
 Initialization. More...
 
virtual Spacenext (void)
 Return next solution (NULL, if none exists or search has been stopped) More...
 
virtual Search::Statistics statistics (void) const
 Return statistics. More...
 
virtual bool stopped (void) const
 Check whether engine has been stopped. More...
 
virtual void reset (Space *s)
 Reset engine to restart at space s. More...
 
- Public Member Functions inherited from Gecode::Search::Engine
virtual ~Engine (void)
 Destructor. More...
 

Protected Attributes

Worker w
 

Detailed Description

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

Virtualize a worker to an engine.

Definition at line 61 of file support.hh.

Constructor & Destructor Documentation

template<class Worker >
Gecode::Search::WorkerToEngine< Worker >::WorkerToEngine ( Space s,
size_t  sz,
const Options o 
)

Initialization.

Definition at line 92 of file support.hh.

Member Function Documentation

template<class Worker >
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 97 of file support.hh.

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

Return statistics.

Implements Gecode::Search::Engine.

Definition at line 102 of file support.hh.

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

Check whether engine has been stopped.

Implements Gecode::Search::Engine.

Definition at line 107 of file support.hh.

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

Reset engine to restart at space s.

Implements Gecode::Search::Engine.

Definition at line 112 of file support.hh.

Member Data Documentation

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

Definition at line 63 of file support.hh.


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