PPL Logo

CharmMessageHolder Class Reference
[Charm++ Communication Optimization Framework]

Class managing Charm++ messages in the communication library. More...

#include <ComlibStrategy.h>

Inheritance diagram for CharmMessageHolder:

Inheritance graph
[legend]
Collaboration diagram for CharmMessageHolder:

Collaboration graph
[legend]

Public Member Functions

 CharmMessageHolder (char *msg, int proc, CmhMessageType t)
 CharmMessageHolder (CkMigrateMessage *m)
 Verfiy that the bug_trap array has not been corrupted. Noone should ever write to that array.
 ~CharmMessageHolder ()
char * getCharmMessage ()
void saveCopyOf_sec_id ()
 Store a local copy of the sec_id, so I can use it later.
void freeCopyOf_sec_id ()
virtual void pup (PUP::er &p)
 PUPable_decl (CharmMessageHolder)

Data Fields

CkSectionIDsec_id
 An unused, and probably unnecessary array that was used to avoid a memory corruption that clobbers members in this class. The bug has likely been fixed.
CkSectionIDcopy_of_sec_id
 Saves a copy of the CkSectionID sec_id when enqueing a multicast message.
CkArrayID array_id
CmhMessageType type
 Type of message we are buffering.

Detailed Description

Class managing Charm++ messages in the communication library.

It is aware of envelopes, arrays, etc

Definition at line 32 of file ComlibStrategy.h.


Constructor & Destructor Documentation

CharmMessageHolder::CharmMessageHolder ( char *  msg,
int  proc,
CmhMessageType  t 
) [inline]

Definition at line 51 of file ComlibStrategy.h.

References copy_of_sec_id, sec_id, and type.

CharmMessageHolder::CharmMessageHolder ( CkMigrateMessage m  )  [inline]

Verfiy that the bug_trap array has not been corrupted. Noone should ever write to that array.

Definition at line 77 of file ComlibStrategy.h.

CharmMessageHolder::~CharmMessageHolder (  )  [inline]

Definition at line 88 of file ComlibStrategy.h.


Member Function Documentation

char* CharmMessageHolder::getCharmMessage (  )  [inline]

void CharmMessageHolder::saveCopyOf_sec_id (  )  [inline]

Store a local copy of the sec_id, so I can use it later.

Definition at line 97 of file ComlibStrategy.h.

References CkSectionID::_cookie, CkSectionID::_elems, CkSectionID::_nElems, copy_of_sec_id, CkSectionID::npes, CkSectionID::pelist, and sec_id.

Referenced by ComlibManager::multicast().

void CharmMessageHolder::freeCopyOf_sec_id (  )  [inline]

Definition at line 134 of file ComlibStrategy.h.

CharmMessageHolder::PUPable_decl ( CharmMessageHolder   ) 


Field Documentation

Saves a copy of the CkSectionID sec_id when enqueing a multicast message.

Definition at line 44 of file ComlibStrategy.h.

Referenced by CharmMessageHolder(), ConvComlibManager::enableStrategy(), saveCopyOf_sec_id(), and ComlibManager::sendBufferedMessages().

Type of message we are buffering.

Definition at line 49 of file ComlibStrategy.h.

Referenced by CharmMessageHolder(), and ComlibManager::sendBufferedMessages().


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

Generated on Thu May 24 07:56:49 2012 for Charm++ by  doxygen 1.5.5