#include <qd.h>
Public Member Functions | |
QdState () | |
void | propagate (QdMsg *msg) |
int | getParent (void) |
QdCallback * | deq (void) |
void | enq (QdCallback *c) |
void | create (int n=1) |
void | sendCount (bool isCreated, int count) |
void | process (int n=1) |
CmiInt8 | getCreated (void) |
CmiInt8 | getProcessed (void) |
CmiInt8 | getCCreated (void) |
CmiInt8 | getCProcessed (void) |
void | subtreeCreate (CmiInt8 c) |
void | subtreeProcess (CmiInt8 p) |
int | getStage (void) |
void | setStage (int p) |
void | reported (void) |
int | allReported (void) |
void | reset (void) |
void | markProcessed (void) |
int | isDirty (void) |
void | subtreeSetDirty (char d) |
void | flushStates () |
Data Fields | |
CmiInt8 | oldCount |
Private Attributes | |
int | stage |
char | cDirty |
CmiInt8 | oProcessed |
CmiInt8 | mCreated |
CmiInt8 | mProcessed |
CmiInt8 | cCreated |
CmiInt8 | cProcessed |
int | nReported |
PtrQ * | callbacks |
int | nChildren |
int | parent |
std::vector< int > | children |
Definition at line 11 of file qd.h.
QdState::QdState | ( | ) | [inline] |
Definition at line 26 of file qd.h.
References callbacks, cCreated, cDirty, children, CmiMyPe(), CmiNumSpanTreeChildren(), CmiSpanTreeChildren(), CmiSpanTreeParent(), cProcessed, nChildren, oldCount, oProcessed, and parent.
void QdState::propagate | ( | QdMsg * | msg | ) | [inline] |
Definition at line 41 of file qd.h.
References _qdHandlerIdx, children, Converse::CmiSyncSend(), CmiSyncSendFn(), envelope::getTotalsize(), nChildren, and UsrToEnv().
Referenced by _bcastQD1(), and _bcastQD2().
int QdState::getParent | ( | void | ) | [inline] |
Definition at line 52 of file qd.h.
References parent.
Referenced by _handlePhase1(), and _handlePhase2().
QdCallback* QdState::deq | ( | void | ) | [inline] |
Definition at line 53 of file qd.h.
References callbacks, and CkQ< T >::deq().
Referenced by _handlePhase2().
void QdState::enq | ( | QdCallback * | c | ) | [inline] |
Definition at line 54 of file qd.h.
References callbacks, and CkQ< T >::enq().
Referenced by _handlePhase0().
void QdState::create | ( | int | n = 1 |
) | [inline] |
Definition at line 55 of file qd.h.
References mCreated, n, and sendCount().
Referenced by CkCoreState::create().
Definition at line 259 of file qd.C.
References _dummy_dq, _qdCommHandlerIdx, CkAllocMsg(), CmiFreeSendFn(), CmiMyRank(), CmiNodeFirst(), QdCommMsg::count, envelope::getTotalsize(), QdCommMsg::isCreated, msg, and UsrToEnv().
Referenced by create(), and process().
void QdState::process | ( | int | n = 1 |
) | [inline] |
Definition at line 62 of file qd.h.
References mProcessed, n, and sendCount().
Referenced by CkCoreState::process().
CmiInt8 QdState::getCreated | ( | void | ) | [inline] |
Definition at line 68 of file qd.h.
References mCreated.
Referenced by _bcastQD1().
CmiInt8 QdState::getProcessed | ( | void | ) | [inline] |
Definition at line 69 of file qd.h.
References mProcessed.
Referenced by _bcastQD1().
CmiInt8 QdState::getCCreated | ( | void | ) | [inline] |
Definition at line 70 of file qd.h.
References cCreated.
Referenced by _handlePhase1().
CmiInt8 QdState::getCProcessed | ( | void | ) | [inline] |
Definition at line 71 of file qd.h.
References cProcessed.
Referenced by _handlePhase1().
void QdState::subtreeCreate | ( | CmiInt8 | c | ) | [inline] |
Definition at line 72 of file qd.h.
References cCreated.
Referenced by _handlePhase1().
void QdState::subtreeProcess | ( | CmiInt8 | p | ) | [inline] |
Definition at line 73 of file qd.h.
References cProcessed.
Referenced by _handlePhase1().
int QdState::getStage | ( | void | ) | [inline] |
Definition at line 74 of file qd.h.
References stage.
Referenced by _bcastQD1(), _bcastQD2(), _handlePhase0(), _handlePhase1(), and _handlePhase2().
void QdState::setStage | ( | int | p | ) | [inline] |
Definition at line 75 of file qd.h.
References stage.
Referenced by _bcastQD1(), _bcastQD2(), _handlePhase1(), and _handlePhase2().
void QdState::reported | ( | void | ) | [inline] |
Definition at line 76 of file qd.h.
References nReported.
Referenced by _handlePhase1(), and _handlePhase2().
int QdState::allReported | ( | void | ) | [inline] |
Definition at line 77 of file qd.h.
References nChildren, and nReported.
Referenced by _handlePhase1(), and _handlePhase2().
void QdState::reset | ( | void | ) | [inline] |
Definition at line 78 of file qd.h.
References cCreated, cDirty, cProcessed, and nReported.
Referenced by _bcastQD1(), _bcastQD2(), _handlePhase1(), and _handlePhase2().
void QdState::markProcessed | ( | void | ) | [inline] |
Definition at line 79 of file qd.h.
References mProcessed, and oProcessed.
Referenced by _bcastQD1().
int QdState::isDirty | ( | void | ) | [inline] |
Definition at line 80 of file qd.h.
References cDirty, mProcessed, and oProcessed.
Referenced by _bcastQD2(), and _handlePhase2().
void QdState::subtreeSetDirty | ( | char | d | ) | [inline] |
Definition at line 81 of file qd.h.
References cDirty.
Referenced by _handlePhase2().
void QdState::flushStates | ( | ) | [inline] |
Definition at line 82 of file qd.h.
References cCreated, cDirty, cProcessed, mCreated, mProcessed, nReported, oProcessed, and stage.
int QdState::stage [private] |
char QdState::cDirty [private] |
Definition at line 14 of file qd.h.
Referenced by flushStates(), isDirty(), QdState(), reset(), and subtreeSetDirty().
CmiInt8 QdState::oProcessed [private] |
Definition at line 15 of file qd.h.
Referenced by flushStates(), isDirty(), markProcessed(), and QdState().
CmiInt8 QdState::mCreated [private] |
CmiInt8 QdState::mProcessed [private] |
Definition at line 16 of file qd.h.
Referenced by flushStates(), getProcessed(), isDirty(), markProcessed(), and process().
CmiInt8 QdState::cCreated [private] |
Definition at line 17 of file qd.h.
Referenced by flushStates(), getCCreated(), QdState(), reset(), and subtreeCreate().
CmiInt8 QdState::cProcessed [private] |
Definition at line 17 of file qd.h.
Referenced by flushStates(), getCProcessed(), QdState(), reset(), and subtreeProcess().
int QdState::nReported [private] |
Definition at line 18 of file qd.h.
Referenced by allReported(), flushStates(), reported(), and reset().
PtrQ* QdState::callbacks [private] |
int QdState::nChildren [private] |
int QdState::parent [private] |
std::vector<int> QdState::children [private] |