The Conley-Morse Graphs Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Worker Class Reference

The worker class that processes single chunks of data which contain the definition of a selected rectangular area in the set of parameters to process. More...

#include <worker.h>

Inheritance diagram for Worker:

Public Member Functions

 Worker (bool _local=false)
 The default constructor. More...
 
 ~Worker ()
 Destructor part for the worker specialization. More...
 

Private Member Functions

int Initialize (chomp::multiwork::mwData &data)
 A function for the initialization of a worker. More...
 
int Process (chomp::multiwork::mwData &data)
 A function for processing a piece of data by a worker. More...
 
 Worker (const Worker &)
 The copy constructor is not allowed. More...
 
Workeroperator= (const Worker &)
 The assignment operator is not allowed. More...
 

Private Attributes

bool local
 Is the work being done locally? That is, in the same process as the coordinator? If so, then the global variables are not reset, such as pointbase, because this might affect the coordinator's data. More...
 
chomp::homology::timeused waitingTime
 Waiting time measurement between consecutive pieces. More...
 
bool waiting
 Is the worker waiting for anything? More...
 

Detailed Description

The worker class that processes single chunks of data which contain the definition of a selected rectangular area in the set of parameters to process.

Definition at line 72 of file worker.h.

Constructor & Destructor Documentation

◆ Worker() [1/2]

Worker::Worker ( bool  _local = false)
inline

The default constructor.

Definition at line 111 of file worker.h.

References waitingTime.

◆ ~Worker()

Worker::~Worker ( )
inline

Destructor part for the worker specialization.

Definition at line 119 of file worker.h.

References local, waiting, and waitingTime.

◆ Worker() [2/2]

Worker::Worker ( const Worker )
inlineprivate

The copy constructor is not allowed.

Definition at line 89 of file worker.h.

Member Function Documentation

◆ Initialize()

int Worker::Initialize ( chomp::multiwork::mwData &  data)
inlineprivate

A function for the initialization of a worker.

Definition at line 134 of file worker.h.

◆ operator=()

Worker & Worker::operator= ( const Worker )
inlineprivate

The assignment operator is not allowed.

Definition at line 92 of file worker.h.

◆ Process()

int Worker::Process ( chomp::multiwork::mwData &  data)
inlineprivate

Member Data Documentation

◆ local

bool Worker::local
private

Is the work being done locally? That is, in the same process as the coordinator? If so, then the global variables are not reset, such as pointbase, because this might affect the coordinator's data.

Definition at line 99 of file worker.h.

Referenced by Process(), and ~Worker().

◆ waiting

bool Worker::waiting
private

Is the worker waiting for anything?

Definition at line 105 of file worker.h.

Referenced by Process(), and ~Worker().

◆ waitingTime

chomp::homology::timeused Worker::waitingTime
private

Waiting time measurement between consecutive pieces.

Definition at line 102 of file worker.h.

Referenced by Process(), Worker(), and ~Worker().


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