Gecode::Support::RunJobs< Jobs, RetType >::Worker Class Reference
The actual worker using a thread to run a job. More...
#include <run-jobs.hpp>
Public Member Functions | |
Worker (Job< RetType > *j, Master *m, int i) | |
Initialize worker. | |
virtual void | run (void) |
Run jobs. | |
virtual | ~Worker (void) |
Nothing to delete (done in run). | |
Protected Attributes | |
Job< RetType > * | job |
The job to run. | |
Master * | master |
The master to communicate with. | |
int | idx |
Original iterator index of job. |
Detailed Description
template<class Jobs, class RetType>
class Gecode::Support::RunJobs< Jobs, RetType >::Worker
The actual worker using a thread to run a job.
Definition at line 80 of file run-jobs.hpp.
Constructor & Destructor Documentation
template<class Jobs , class RetType >
Gecode::Support::RunJobs< Jobs, RetType >::Worker::Worker | ( | Job< RetType > * | j, | |
Master * | m, | |||
int | i | |||
) | [inline] |
Initialize worker.
Definition at line 176 of file run-jobs.hpp.
template<class Jobs , class RetType >
Gecode::Support::RunJobs< Jobs, RetType >::Worker::~Worker | ( | void | ) | [inline, virtual] |
Nothing to delete (done in run).
Definition at line 182 of file run-jobs.hpp.
Member Function Documentation
template<class Jobs , class RetType >
void Gecode::Support::RunJobs< Jobs, RetType >::Worker::run | ( | void | ) | [inline, virtual] |
Member Data Documentation
template<class Jobs , class RetType >
Job<RetType>* Gecode::Support::RunJobs< Jobs, RetType >::Worker::job [protected] |
The job to run.
Definition at line 83 of file run-jobs.hpp.
template<class Jobs , class RetType >
Master* Gecode::Support::RunJobs< Jobs, RetType >::Worker::master [protected] |
The master to communicate with.
Definition at line 85 of file run-jobs.hpp.
template<class Jobs , class RetType >
int Gecode::Support::RunJobs< Jobs, RetType >::Worker::idx [protected] |
Original iterator index of job.
Definition at line 87 of file run-jobs.hpp.
The documentation for this class was generated from the following file:
- gecode/support/run-jobs.hpp