NAMD
|
#include <BroadcastMgr.h>
Public Member Functions | |
BroadcastMgr () | |
~BroadcastMgr (void) | |
int | getbuf (BroadcastClient &b, int tag, void *msg) |
void | send (BroadcastClient &b, int tag, void *buf, size_t) |
void | subscribe (BroadcastClient &bc) |
void | unsubscribe (BroadcastClient &bc) |
void | recvBroadcast (BroadcastMsg *msg) |
Static Public Member Functions | |
static BroadcastMgr * | Object () |
Definition at line 87 of file BroadcastMgr.h.
|
inline |
Definition at line 90 of file BroadcastMgr.h.
BroadcastMgr::~BroadcastMgr | ( | void | ) |
Definition at line 18 of file BroadcastMgr.C.
References UniqueSetIter< Type >::begin(), and UniqueSetIter< Type >::end().
int BroadcastMgr::getbuf | ( | BroadcastClient & | b, |
int | tag, | ||
void * | msg | ||
) |
Definition at line 30 of file BroadcastMgr.C.
References TaggedMsg::counter, UniqueSet< Elem >::find(), BroadcastClient::id, TaggedMsg::msg, TaggedMsg::msgSize, and BOID::taggedMsg.
|
inlinestatic |
Definition at line 96 of file BroadcastMgr.h.
Referenced by BroadcastClient::BroadcastClient(), SimpleBroadcastObject< Tensor >::get(), SimpleBroadcastObject< Tensor >::publish(), and BroadcastClient::~BroadcastClient().
void BroadcastMgr::recvBroadcast | ( | BroadcastMsg * | msg | ) |
Definition at line 86 of file BroadcastMgr.C.
References UniqueSet< Elem >::add(), UniqueSetIter< Type >::begin(), BOID::broadcastSet, UniqueSetIter< Type >::end(), UniqueSet< Elem >::find(), NAMD_bug(), UniqueSet< Elem >::size(), and BOID::taggedMsg.
void BroadcastMgr::send | ( | BroadcastClient & | b, |
int | tag, | ||
void * | buf, | ||
size_t | size | ||
) |
Definition at line 49 of file BroadcastMgr.C.
References BroadcastClient::id.
Referenced by SimpleBroadcastObject< Tensor >::publish().
void BroadcastMgr::subscribe | ( | BroadcastClient & | bc | ) |
Definition at line 60 of file BroadcastMgr.C.
References UniqueSet< Elem >::add(), BOID::broadcastSet, UniqueSet< Elem >::find(), BroadcastClient::id, and BOID::taggedMsg.
Referenced by BroadcastClient::BroadcastClient().
void BroadcastMgr::unsubscribe | ( | BroadcastClient & | bc | ) |
Definition at line 72 of file BroadcastMgr.C.
References BOID::broadcastSet, UniqueSet< Elem >::del(), UniqueSet< Elem >::find(), BroadcastClient::id, UniqueSet< Elem >::size(), and BOID::taggedMsg.
Referenced by BroadcastClient::~BroadcastClient().