A helper class for storing data on a single worker.
More...
#include <mwcoord.h>
List of all members.
Public Member Functions |
| mwWorkerData () |
| The default constructor.
|
| ~mwWorkerData () |
| The destructor.
|
Public Attributes |
mwData | data |
| The data which was sent do the worker and is being processed.
|
int | fd |
| The file descriptor number of the socket for the communication with the given worker.
|
std::string | name |
| The computer name of the worker.
|
int | port |
| The port number at which the worker is going to listen next time.
|
int | status |
| The status of the worker: 0 = ok, -1 = failed, 1 = data acquired from a working one or data sent to a waiting one.
|
Private Member Functions |
| mwWorkerData (const mwWorkerData &) |
| The copy constructor is not allowed.
|
mwWorkerData & | operator= (const mwWorkerData &) |
| The assignment operator is not allowed.
|
Friends |
void | swap (mwWorkerData &data1, mwWorkerData &data2) |
| Swaps data between two objects of this type.
|
Detailed Description
A helper class for storing data on a single worker.
This data structure is used internally by the coordinator.
Definition at line 59 of file mwcoord.h.
Constructor & Destructor Documentation
chomp::multiwork::mwWorkerData::mwWorkerData |
( |
|
) |
[inline] |
The default constructor.
Definition at line 98 of file mwcoord.h.
chomp::multiwork::mwWorkerData::~mwWorkerData |
( |
|
) |
[inline] |
chomp::multiwork::mwWorkerData::mwWorkerData |
( |
const mwWorkerData & |
|
) |
[inline, private] |
The copy constructor is not allowed.
Definition at line 91 of file mwcoord.h.
Member Function Documentation
The assignment operator is not allowed.
Definition at line 94 of file mwcoord.h.
Friends And Related Function Documentation
Swaps data between two objects of this type.
Definition at line 109 of file mwcoord.h.
Member Data Documentation
The data which was sent do the worker and is being processed.
Definition at line 69 of file mwcoord.h.
The file descriptor number of the socket for the communication with the given worker.
Negative if the worker is not connected.
Definition at line 74 of file mwcoord.h.
The computer name of the worker.
Definition at line 77 of file mwcoord.h.
The port number at which the worker is going to listen next time.
Definition at line 80 of file mwcoord.h.
The status of the worker: 0 = ok, -1 = failed, 1 = data acquired from a working one or data sent to a waiting one.
Definition at line 84 of file mwcoord.h.
The documentation for this class was generated from the following file: