PPL Logo

mCastEntry Class Reference

Cookie for an array section. More...

Collaboration diagram for mCastEntry:

Collaboration graph
[legend]

Public Member Functions

 mCastEntry (CkArrayID _aid)
 mCastEntry (mCastEntry *)
int hasParent ()
 Check if this tree is only a branch and has a parent.
int isObsolete ()
 Is this tree obsolete?
void setObsolete ()
 Make the current tree obsolete.
int notReady ()
 Check if this (branch of the) tree is ready for use.
void setReady ()
 Mark this (branch of the) tree as ready for use.
void incReduceNo ()
 Increment the reduction number across the whole linked list of cookies.
CkArrayID getAid ()
 Get a handle on the array ID this tree is a member of.
int hasOldtree ()
void print ()

Data Fields

CkArrayID aid
 Array ID.
CkSectionInfo parentGrp
 Spanning tree parent.
sectionIdList children
 List of direct children.
int numChild
 Number of direct children.
arrayIndexList allElem
 List of all tree member array indices (Only useful on the tree root).
ObjKeyList allObjKeys
 Only useful on root for LB.
arrayIndexList localElem
 List of array elements on local PE.
int pe
 Should always be myPE.
CkSectionInfo rootSid
 Section ID of the root.
multicastGrpMsgBuf msgBuf
multicastGrpPacketBuf packetBuf
 Buffer storing the pending packets.
char * asm_msg
 For multicast packetization.
int asm_fill
mCastEntryoldc
 Linked list of entries on the same processor.
mCastEntrynewc
SectionLocation oldtree
 Old spanning tree.
reductionInfo red
char needRebuild

Private Attributes

char flag

Detailed Description

Cookie for an array section.

Definition at line 111 of file ckmulticast.C.


Constructor & Destructor Documentation

mCastEntry::mCastEntry ( CkArrayID  _aid  )  [inline]

Definition at line 149 of file ckmulticast.C.

mCastEntry::mCastEntry ( mCastEntry old  ) 


Member Function Documentation

int mCastEntry::hasParent ( void   )  [inline]

Check if this tree is only a branch and has a parent.

Definition at line 153 of file ckmulticast.C.

References CkSectionInfo::get_val(), and parentGrp.

Referenced by CkMulticastMgr::childrenReady(), CkMulticastMgr::recvRedMsg(), and CkMulticastMgr::reduceFragment().

int mCastEntry::isObsolete (  )  [inline]

Is this tree obsolete?

Definition at line 155 of file ckmulticast.C.

References flag.

Referenced by CkMulticastMgr::rebuild(), and CkMulticastMgr::recvRedMsg().

void mCastEntry::setObsolete (  )  [inline]

Make the current tree obsolete.

Definition at line 157 of file ckmulticast.C.

References flag.

Referenced by CkMulticastMgr::rebuild(), CkMulticastMgr::retire(), and CkMulticastMgr::teardown().

int mCastEntry::notReady (  )  [inline]

Check if this (branch of the) tree is ready for use.

Definition at line 159 of file ckmulticast.C.

References flag.

Referenced by CkMulticastMgr::recvMsg(), CkMulticastMgr::recvPacket(), and CkMulticastMgr::recvRedMsg().

void mCastEntry::setReady ( void   )  [inline]

Mark this (branch of the) tree as ready for use.

Definition at line 161 of file ckmulticast.C.

References flag.

Referenced by CkMulticastMgr::childrenReady().

void mCastEntry::incReduceNo (  )  [inline]

Increment the reduction number across the whole linked list of cookies.

Definition at line 163 of file ckmulticast.C.

References newc, red, and reductionInfo::redNo.

Referenced by CkMulticastMgr::recvRedMsg().

CkArrayID mCastEntry::getAid (  )  [inline]

int mCastEntry::hasOldtree (  )  [inline]

Definition at line 170 of file ckmulticast.C.

References SectionLocation::entry, and oldtree.

Referenced by CkMulticastMgr::reduceFragment().

void mCastEntry::print ( void   )  [inline]

Definition at line 171 of file ckmulticast.C.

References asm_fill, asm_msg, Converse::CkMyPe(), CmiPrintf(), flag, numChild, and pe.


Field Documentation

Array ID.

Definition at line 115 of file ckmulticast.C.

Referenced by getAid(), mCastEntry(), and CkMulticastMgr::setup().

Number of direct children.

Definition at line 121 of file ckmulticast.C.

Referenced by print(), CkMulticastMgr::recvCookie(), and CkMulticastMgr::setup().

List of all tree member array indices (Only useful on the tree root).

Definition at line 123 of file ckmulticast.C.

Referenced by CkMulticastMgr::childrenReady(), CkMulticastMgr::initCookie(), mCastEntry(), CkMulticastMgr::prepareCookie(), CkMulticastMgr::recvRedMsg(), and CkMulticastMgr::setSection().

Only useful on root for LB.

Definition at line 125 of file ckmulticast.C.

Referenced by mCastEntry(), CkMulticastMgr::prepareCookie(), CkMulticastMgr::sendToSection(), and CkMulticastMgr::setSection().

List of array elements on local PE.

Definition at line 127 of file ckmulticast.C.

Referenced by CkMulticastMgr::recvRedMsg(), CkMulticastMgr::sendToLocal(), and CkMulticastMgr::setup().

Should always be myPE.

Definition at line 129 of file ckmulticast.C.

Referenced by mCastEntry(), print(), CkMulticastMgr::rebuild(), and CkMulticastMgr::setup().

Definition at line 132 of file ckmulticast.C.

Referenced by CkMulticastMgr::childrenReady(), and CkMulticastMgr::recvMsg().

Buffer storing the pending packets.

Definition at line 134 of file ckmulticast.C.

Referenced by CkMulticastMgr::childrenReady(), and CkMulticastMgr::recvPacket().

For multicast packetization.

Definition at line 136 of file ckmulticast.C.

Referenced by mCastEntry(), print(), and CkMulticastMgr::recvPacket().

Definition at line 137 of file ckmulticast.C.

Referenced by mCastEntry(), print(), and CkMulticastMgr::recvPacket().

Linked list of entries on the same processor.

Definition at line 139 of file ckmulticast.C.

Referenced by CkMulticastMgr::freeup(), CkMulticastMgr::rebuild(), CkMulticastMgr::reduceFragment(), and CkMulticastMgr::resetCookie().

Old spanning tree.

Definition at line 141 of file ckmulticast.C.

Referenced by hasOldtree(), CkMulticastMgr::reduceFragment(), and CkMulticastMgr::resetSection().

char mCastEntry::flag [private]

Definition at line 147 of file ckmulticast.C.

Referenced by isObsolete(), notReady(), print(), setObsolete(), and setReady().


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

Generated on Fri May 25 08:04:13 2012 for Charm++ by  doxygen 1.5.5