[mareframe] Annotation of /trunk/gadget/netdata.h
Annotation of /trunk/gadget/netdata.h
Parent Directory
| Revision Log
Revision 1 -
(view)
(download)
1 : |
agomez |
1 |
#ifndef netdata_h
|
2 : |
|
|
#define netdata_h
|
3 : |
|
|
|
4 : |
|
|
/**
|
5 : |
|
|
* \class NetDataVariables
|
6 : |
|
|
* \brief this class is used to keep a vector of relevant data to be sent/received using PVM communication
|
7 : |
|
|
*/
|
8 : |
|
|
class NetDataVariables {
|
9 : |
|
|
public:
|
10 : |
|
|
int tag;
|
11 : |
|
|
int x_id;
|
12 : |
|
|
/**
|
13 : |
|
|
* \brief this is the vector used to store the variables to be sent/received
|
14 : |
|
|
*/
|
15 : |
|
|
double* x;
|
16 : |
|
|
/**
|
17 : |
|
|
* \brief this is the default NetDataVariables constructor
|
18 : |
|
|
* \param numVar is the number of variables to be stored
|
19 : |
|
|
*/
|
20 : |
|
|
NetDataVariables(int numVar);
|
21 : |
|
|
/**
|
22 : |
|
|
* \brief this is the default NetDataVariables destructor
|
23 : |
|
|
*/
|
24 : |
|
|
~NetDataVariables();
|
25 : |
|
|
};
|
26 : |
|
|
|
27 : |
|
|
/**
|
28 : |
|
|
* \class NetDataResult
|
29 : |
|
|
* \brief this class is used to keep relevant data to be sent/received using PVM communication
|
30 : |
|
|
*/
|
31 : |
|
|
class NetDataResult {
|
32 : |
|
|
public:
|
33 : |
|
|
int tag;
|
34 : |
|
|
int x_id;
|
35 : |
|
|
/**
|
36 : |
|
|
* \brief this is the variable to be sent/received
|
37 : |
|
|
*/
|
38 : |
|
|
double result;
|
39 : |
|
|
/**
|
40 : |
|
|
* \brief is the identifier of the process that is sending the data
|
41 : |
|
|
*/
|
42 : |
|
|
int who;
|
43 : |
|
|
/**
|
44 : |
|
|
* \brief this is the default NetDataResult constructor
|
45 : |
|
|
*/
|
46 : |
|
|
NetDataResult();
|
47 : |
|
|
/**
|
48 : |
|
|
* \brief this is the default NetDataResult destructor
|
49 : |
|
|
*/
|
50 : |
|
|
~NetDataResult();
|
51 : |
|
|
};
|
52 : |
|
|
|
53 : |
|
|
#endif
|
|