Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ReductionSubmitMsg Class Reference

List of all members.

Static Public Member Functions

void * alloc (int msgnum, int size, int *array, int priobits)
void * pack (ReductionSubmitMsg *in)
ReductionSubmitMsgunpack (void *in)

Public Attributes

int reductionSetID
int sourceNode
int sequenceNumber
int dataSize
BigReal data [1]

Member Function Documentation

void* ReductionSubmitMsg::alloc int  msgnum,
int  size,
int *  array,
int  priobits
[inline, static]
 

Definition at line 56 of file ReductionMgr.C.

00056                                                                      {
00057     int totalsize = size + array[0]*sizeof(BigReal);
00058     ReductionSubmitMsg *newMsg = (ReductionSubmitMsg*)
00059                                 CkAllocMsg(msgnum,totalsize,priobits);
00060     // newMsg->data = (BigReal*) ((char*)newMsg + size);
00061     return (void*)newMsg;
00062   }

void* ReductionSubmitMsg::pack ReductionSubmitMsg in  )  [inline, static]
 

Definition at line 64 of file ReductionMgr.C.

00064                                             {
00065     // in->data = (BigReal*) ((char*)in->data - (char*)&(in->data));
00066     return (void*)in;
00067   }

ReductionSubmitMsg* ReductionSubmitMsg::unpack void *  in  )  [inline, static]
 

Definition at line 69 of file ReductionMgr.C.

00069                                               {
00070     ReductionSubmitMsg *me = (ReductionSubmitMsg*)in;
00071     // me->data = (BigReal*) ((char*)&(me->data) + (size_t)(me->data));
00072     return me;
00073   }


Member Data Documentation

BigReal ReductionSubmitMsg::data[1]
 

Definition at line 54 of file ReductionMgr.C.

Referenced by ReductionMgr::remoteSubmit().

int ReductionSubmitMsg::dataSize
 

Definition at line 53 of file ReductionMgr.C.

Referenced by ReductionMgr::remoteSubmit().

int ReductionSubmitMsg::reductionSetID
 

Definition at line 50 of file ReductionMgr.C.

Referenced by ReductionMgr::remoteSubmit().

int ReductionSubmitMsg::sequenceNumber
 

Definition at line 52 of file ReductionMgr.C.

Referenced by ReductionMgr::remoteSubmit().

int ReductionSubmitMsg::sourceNode
 

Definition at line 51 of file ReductionMgr.C.

Referenced by ReductionMgr::remoteSubmit().


The documentation for this class was generated from the following file:
Generated on Fri May 25 04:07:24 2012 for NAMD by  doxygen 1.3.9.1