NAMD
Public Member Functions | Public Attributes | List of all members
TaggedMsg Class Reference

#include <BroadcastMgr.h>

Public Member Functions

 TaggedMsg ()
 
 TaggedMsg (int t)
 
 TaggedMsg (int t, int s, int c, void *m)
 
 ~TaggedMsg ()
 
int hash () const
 
int operator== (const TaggedMsg &tm) const
 

Public Attributes

int tag
 
int counter
 
int msgSize
 
char msg [BCASTMSGSIZE]
 

Detailed Description

Definition at line 56 of file BroadcastMgr.h.

Constructor & Destructor Documentation

TaggedMsg::TaggedMsg ( )
inline

Definition at line 58 of file BroadcastMgr.h.

58 {}
TaggedMsg::TaggedMsg ( int  t)
inline

Definition at line 59 of file BroadcastMgr.h.

59 : tag(t) {}
TaggedMsg::TaggedMsg ( int  t,
int  s,
int  c,
void m 
)
inline

Definition at line 60 of file BroadcastMgr.h.

References msg.

61  : tag(t), counter(c), msgSize(s) { memcpy((void*)msg,m,s); }
char msg[BCASTMSGSIZE]
Definition: BroadcastMgr.h:67
TaggedMsg::~TaggedMsg ( )
inline

Definition at line 62 of file BroadcastMgr.h.

62 {}

Member Function Documentation

int TaggedMsg::hash ( ) const
inline

Definition at line 69 of file BroadcastMgr.h.

References tag.

69 { return tag; }
int TaggedMsg::operator== ( const TaggedMsg tm) const
inline

Definition at line 70 of file BroadcastMgr.h.

References tag.

70 { return(tag == tm.tag); }

Member Data Documentation

int TaggedMsg::counter

Definition at line 65 of file BroadcastMgr.h.

Referenced by BroadcastMgr::getbuf().

char TaggedMsg::msg[BCASTMSGSIZE]

Definition at line 67 of file BroadcastMgr.h.

Referenced by BroadcastMgr::getbuf(), and TaggedMsg().

int TaggedMsg::msgSize

Definition at line 66 of file BroadcastMgr.h.

Referenced by BroadcastMgr::getbuf().

int TaggedMsg::tag

Definition at line 64 of file BroadcastMgr.h.

Referenced by hash(), and operator==().


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