#include <eventID.h>
Public Member Functions | |
eventID () | |
Basic Constructor. | |
void | init () |
Init to default unused values. | |
void | incEventID () |
Get next value for eventID. | |
eventID & | operator= (const eventID &e) |
Assignment operator. | |
int | getPE () |
get source PE | |
int | getControl () |
get source control | |
void | setControl (int ctrl) |
set source control | |
int | operator== (const eventID &o) |
Equality comparison operator. | |
int | operator<= (const eventID &o) |
Less than/equality comparison operator. | |
int | operator< (const eventID &o) |
Less than comparison operator. | |
int | operator>= (const eventID &o) |
Greater than/equality comparison operator. | |
int | operator> (const eventID &o) |
Greater than comparison operator. | |
void | dump () |
Dump all data fields. | |
char * | sdump (char *s) |
char * | sndump (char *s, size_t n) |
void | pup (class PUP::er &p) |
Pack/unpack/sizing operator. | |
void | sanitize () |
Data Fields | |
unsigned int | id |
Large number for identifier unique on creation PE. | |
Private Attributes | |
int | pe |
PE identifier field ensures uniqueness across PEs. | |
int | control |
Control field for ordering events with same timestamp. |
Definition at line 14 of file eventID.h.
void eventID::init | ( | void | ) | [inline] |
Init to default unused values.
Definition at line 27 of file eventID.h.
Referenced by eventMsg::eventMsg().
void eventID::incEventID | ( | ) | [inline] |
Get next value for eventID.
increments id field for this eventID
Definition at line 30 of file eventID.h.
Referenced by GetEventID().
int eventID::getPE | ( | ) | [inline] |
get source PE
Definition at line 40 of file eventID.h.
References pe.
Referenced by eventQueue::CommitEvents(), HeapNode::dumpString(), eventMsg::sanitize(), and eventMsg::Timestamp().
int eventID::getControl | ( | ) | [inline] |
void eventID::setControl | ( | int | ctrl | ) | [inline] |
set source control
Definition at line 44 of file eventID.h.
References control.
Referenced by eventMsg::SetSequenceNumber().
void eventID::dump | ( | ) | [inline] |
Dump all data fields.
Definition at line 71 of file eventID.h.
References Converse::CkNumPes(), and pe.
Referenced by eventQueue::CommitEvents(), HeapNode::dump(), and CancelNode::dump().
char* eventID::sndump | ( | char * | s, | |
size_t | n | |||
) | [inline] |
Definition at line 76 of file eventID.h.
References pe, and snprintf().
void eventID::pup | ( | class PUP::er & | p | ) | [inline] |
Pack/unpack/sizing operator.
Definition at line 78 of file eventID.h.
Referenced by SpawnedEvent::pup(), Event::pup(), and CancelNode::pup().
void eventID::sanitize | ( | ) | [inline] |
Definition at line 79 of file eventID.h.
References Converse::CkNumPes(), and pe.
Referenced by Event::sanitize().
int eventID::pe [private] |
PE identifier field ensures uniqueness across PEs.
Definition at line 17 of file eventID.h.
Referenced by dump(), getPE(), init(), operator=(), operator==(), pup(), sanitize(), sdump(), and sndump().
int eventID::control [private] |
Control field for ordering events with same timestamp.
Definition at line 19 of file eventID.h.
Referenced by getControl(), init(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and setControl().
unsigned int eventID::id |
Large number for identifier unique on creation PE.
Definition at line 22 of file eventID.h.
Referenced by eventQueue::CommitEvents(), HeapNode::dumpString(), operator=(), and operator==().