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 55 of file BroadcastMgr.h.

Constructor & Destructor Documentation

◆ TaggedMsg() [1/3]

TaggedMsg::TaggedMsg ( )
inline

Definition at line 57 of file BroadcastMgr.h.

57 {}

◆ TaggedMsg() [2/3]

TaggedMsg::TaggedMsg ( int  t)
inline

Definition at line 58 of file BroadcastMgr.h.

58 : tag(t) {}

◆ TaggedMsg() [3/3]

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

Definition at line 59 of file BroadcastMgr.h.

References msg.

60  : tag(t), counter(c), msgSize(s) { memcpy((void*)msg,m,s); }
char msg[BCASTMSGSIZE]
Definition: BroadcastMgr.h:66

◆ ~TaggedMsg()

TaggedMsg::~TaggedMsg ( )
inline

Definition at line 61 of file BroadcastMgr.h.

61 {}

Member Function Documentation

◆ hash()

int TaggedMsg::hash ( ) const
inline

Definition at line 68 of file BroadcastMgr.h.

References tag.

68 { return tag; }

◆ operator==()

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

Definition at line 69 of file BroadcastMgr.h.

References tag.

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

Member Data Documentation

◆ counter

int TaggedMsg::counter

Definition at line 64 of file BroadcastMgr.h.

Referenced by BroadcastMgr::getbuf().

◆ msg

char TaggedMsg::msg[BCASTMSGSIZE]

Definition at line 66 of file BroadcastMgr.h.

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

◆ msgSize

int TaggedMsg::msgSize

Definition at line 65 of file BroadcastMgr.h.

Referenced by BroadcastMgr::getbuf().

◆ tag

int TaggedMsg::tag

Definition at line 63 of file BroadcastMgr.h.

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


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