Generated on Tue May 22 09:41:40 2018 for Gecode by doxygen 1.6.3

Gecode::Search::Par::Engine< Tracer >::Worker Class Reference

Parallel depth-first search worker More...

#include <engine.hh>

List of all members.

Public Member Functions

 Worker (Space *s, Engine &e)
 Initialize for space s with engine e.
Spacesteal (unsigned long int &d, Tracer &myt, Tracer &ot)
 Hand over some work (NULL if no work available).
Statistics statistics (void)
 Return statistics.
Engineengine (void) const
 Provide access to engine.
NoGoodsnogoods (void)
 Return no-goods.
virtual ~Worker (void)
 Destructor.
virtual Support::Terminatorterminator (void) const
 Terminator (engine).

Public Attributes

Tracer tracer
 Search tracer.

Protected Attributes

Engine_engine
 Reference to engine.
Support::Mutex m
 Mutex for access to worker.
Path< Tracerpath
 Current path ins search tree.
Spacecur
 Current space being explored.
unsigned int d
 Distance until next clone.
bool idle
 Whether the worker is idle.

Detailed Description

template<class Tracer>
class Gecode::Search::Par::Engine< Tracer >::Worker

Parallel depth-first search worker

Definition at line 49 of file engine.hh.


Constructor & Destructor Documentation

template<class Tracer >
Gecode::Search::Par::Engine< Tracer >::Worker::Worker ( Space s,
Engine e 
) [inline]

Initialize for space s with engine e.

Definition at line 95 of file engine.hpp.

template<class Tracer >
Gecode::Search::Par::Engine< Tracer >::Worker::~Worker ( void   )  [inline, virtual]

Destructor.

Reimplemented in Gecode::Search::Par::BAB< Tracer >::Worker.

Definition at line 358 of file engine.hpp.


Member Function Documentation

template<class Tracer >
Space * Gecode::Search::Par::Engine< Tracer >::Worker::steal ( unsigned long int &  d,
Tracer myt,
Tracer ot 
) [inline]

Hand over some work (NULL if no work available).

Definition at line 265 of file engine.hpp.

template<class Tracer >
Statistics Gecode::Search::Par::Engine< Tracer >::Worker::statistics ( void   )  [inline]

Return statistics.

Definition at line 134 of file engine.hpp.

template<class Tracer >
Engine< Tracer > & Gecode::Search::Par::Engine< Tracer >::Worker::engine ( void   )  const [inline]

Provide access to engine.

Reimplemented in Gecode::Search::Par::BAB< Tracer >::Worker, and Gecode::Search::Par::DFS< Tracer >::Worker.

Definition at line 42 of file engine.hpp.

template<class Tracer >
NoGoods & Gecode::Search::Par::Engine< Tracer >::Worker::nogoods ( void   )  [inline]

Return no-goods.

Definition at line 289 of file engine.hpp.

template<class Tracer >
Support::Terminator * Gecode::Search::Par::Engine< Tracer >::Worker::terminator ( void   )  const [inline, virtual]

Terminator (engine).

Reimplemented from Gecode::Support::Runnable.

Definition at line 350 of file engine.hpp.


Member Data Documentation

Search tracer.

Definition at line 52 of file engine.hh.

template<class Tracer >
Engine& Gecode::Search::Par::Engine< Tracer >::Worker::_engine [protected]

Reference to engine.

Definition at line 55 of file engine.hh.

template<class Tracer >
Support::Mutex Gecode::Search::Par::Engine< Tracer >::Worker::m [protected]

Mutex for access to worker.

Definition at line 57 of file engine.hh.

template<class Tracer >
Path<Tracer> Gecode::Search::Par::Engine< Tracer >::Worker::path [protected]

Current path ins search tree.

Definition at line 59 of file engine.hh.

template<class Tracer >
Space* Gecode::Search::Par::Engine< Tracer >::Worker::cur [protected]

Current space being explored.

Definition at line 61 of file engine.hh.

template<class Tracer >
unsigned int Gecode::Search::Par::Engine< Tracer >::Worker::d [protected]

Distance until next clone.

Reimplemented from Gecode::Support::Runnable.

Definition at line 63 of file engine.hh.

template<class Tracer >
bool Gecode::Search::Par::Engine< Tracer >::Worker::idle [protected]

Whether the worker is idle.

Definition at line 65 of file engine.hh.


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