|
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) |
| int | boidSize () |
| int | boidBroadcastSize () |
| int | boidTaggedMsgSize () |
Static Public Member Functions | |
| static BroadcastMgr * | Object () |
Definition at line 86 of file BroadcastMgr.h.
|
inline |
Definition at line 89 of file BroadcastMgr.h.
| BroadcastMgr::~BroadcastMgr | ( | void | ) |
Definition at line 18 of file BroadcastMgr.C.
References UniqueSetIter< T >::begin(), BOID::broadcastSet, UniqueSetIter< T >::end(), and BOID::taggedMsg.
| int BroadcastMgr::boidBroadcastSize | ( | ) |
Definition at line 28 of file BroadcastMgr.C.
References UniqueSetIter< T >::begin(), BOID::broadcastSet, UniqueSetIter< T >::end(), and UniqueSet< Elem >::size().
Referenced by SimpleBroadcastObject< Tensor >::getBcastSize().
|
inline |
Definition at line 104 of file BroadcastMgr.h.
References UniqueSet< Elem >::size().
Referenced by SimpleBroadcastObject< Tensor >::getSize().
| int BroadcastMgr::boidTaggedMsgSize | ( | ) |
Definition at line 38 of file BroadcastMgr.C.
References UniqueSetIter< T >::begin(), UniqueSetIter< T >::end(), UniqueSet< Elem >::size(), and BOID::taggedMsg.
Referenced by SimpleBroadcastObject< Tensor >::getTaggedSize().
| int BroadcastMgr::getbuf | ( | BroadcastClient & | b, |
| int | tag, | ||
| void * | msg | ||
| ) |
Definition at line 50 of file BroadcastMgr.C.
References TaggedMsg::counter, UniqueSet< Elem >::find(), BroadcastClient::id, TaggedMsg::msg, TaggedMsg::msgSize, and BOID::taggedMsg.
|
inlinestatic |
Definition at line 95 of file BroadcastMgr.h.
Referenced by BroadcastClient::BroadcastClient(), SimpleBroadcastObject< Tensor >::get(), SimpleBroadcastObject< Tensor >::getBcastSize(), SimpleBroadcastObject< Tensor >::getSize(), SimpleBroadcastObject< Tensor >::getTaggedSize(), SimpleBroadcastObject< Tensor >::publish(), and BroadcastClient::~BroadcastClient().
| void BroadcastMgr::recvBroadcast | ( | BroadcastMsg * | msg | ) |
Definition at line 106 of file BroadcastMgr.C.
References UniqueSet< Elem >::add(), BroadcastClient::awaken(), UniqueSetIter< T >::begin(), BroadcastClientElem::broadcastClient, BOID::broadcastSet, UniqueSetIter< T >::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 69 of file BroadcastMgr.C.
References BroadcastClient::id.
Referenced by SimpleBroadcastObject< Tensor >::publish().
| void BroadcastMgr::subscribe | ( | BroadcastClient & | bc | ) |
Definition at line 80 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 92 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().
1.8.14