TaggedMsg Class Reference

#include <BroadcastMgr.h>

List of all members.

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.

00058 {}

TaggedMsg::TaggedMsg ( int  t  )  [inline]

Definition at line 59 of file BroadcastMgr.h.

00059 : tag(t) {}

TaggedMsg::TaggedMsg ( int  t,
int  s,
int  c,
void *  m 
) [inline]

Definition at line 60 of file BroadcastMgr.h.

References msg.

00061     : tag(t), counter(c), msgSize(s) { memcpy((void*)msg,m,s); }

TaggedMsg::~TaggedMsg (  )  [inline]

Definition at line 62 of file BroadcastMgr.h.

00062 {}


Member Function Documentation

int TaggedMsg::hash (  )  const [inline]

Definition at line 69 of file BroadcastMgr.h.

References tag.

00069 { return tag; }

int TaggedMsg::operator== ( const TaggedMsg tm  )  const [inline]

Definition at line 70 of file BroadcastMgr.h.

References tag.

00070 { 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:
Generated on Thu Nov 23 01:17:20 2017 for NAMD by  doxygen 1.4.7