#include <MsgBuf.h>
Public Member Functions | |
MsgBuf () | |
MsgBuf (unsigned int size, unsigned int type) | |
MsgBuf (const MsgBuf &b) | |
size_t | msize () |
msgbuf * | operator-> () |
MsgBuf & | operator= (const MsgBuf &) |
virtual | ~MsgBuf () |
Protected Attributes | |
unsigned char * | buf_ |
size_t | msize_ |
struct msgbuf * | ptr_ |
Friends | |
class | MasterQueue |
class | SlaveQueue |
evf::MsgBuf::MsgBuf | ( | ) |
Definition at line 5 of file MsgBuf.cc.
References buf_, msize_, MSQM_MESSAGE_TYPE_NOP, and ptr_.
: msize_(MAX_MSG_SIZE) { buf_ = new unsigned char[msize_ + sizeof(long int)]; ptr_ = (msgbuf*) buf_; ptr_->mtype = MSQM_MESSAGE_TYPE_NOP; }
evf::MsgBuf::MsgBuf | ( | unsigned int | size, |
unsigned int | type | ||
) |
evf::MsgBuf::MsgBuf | ( | const MsgBuf & | b | ) |
evf::MsgBuf::~MsgBuf | ( | ) | [virtual] |
size_t evf::MsgBuf::msize | ( | ) |
Definition at line 33 of file MsgBuf.cc.
References msize_.
Referenced by evf::MasterQueue::drain(), evf::MasterQueue::post(), evf::SlaveQueue::post(), evf::MasterQueue::rcv(), evf::SlaveQueue::rcv(), evf::SlaveQueue::rcvNonBlocking(), evf::MasterQueue::rcvNonBlocking(), evf::SlaveQueue::rcvNonBlockingAny(), evf::MasterQueue::rcvQuiet(), and evf::SlaveQueue::rcvQuiet().
{ return msize_; }
msgbuf * evf::MsgBuf::operator-> | ( | ) |
friend class MasterQueue [friend] |
Reimplemented in evf::DQMMsgBuf, evf::RawMsgBuf, evf::RecoMsgBuf, and evf::SimpleMsgBuf.
friend class SlaveQueue [friend] |
unsigned char* evf::MsgBuf::buf_ [protected] |
Definition at line 23 of file MsgBuf.h.
Referenced by MsgBuf(), operator=(), and ~MsgBuf().
size_t evf::MsgBuf::msize_ [protected] |
Definition at line 22 of file MsgBuf.h.
Referenced by MsgBuf(), msize(), and operator=().
struct msgbuf* evf::MsgBuf::ptr_ [protected] |
Definition at line 24 of file MsgBuf.h.
Referenced by evf::DQMMsgBuf::dqmCell(), evf::MasterQueue::drain(), evf::DQMMsgBuf::initialise(), evf::RawMsgBuf::initialise(), evf::RecoMsgBuf::initialise(), MsgBuf(), operator->(), operator=(), evf::MasterQueue::post(), evf::SlaveQueue::post(), evf::MasterQueue::postLength(), evf::RawMsgBuf::rawCell(), evf::MasterQueue::rcv(), evf::SlaveQueue::rcv(), evf::SlaveQueue::rcvNonBlocking(), evf::MasterQueue::rcvNonBlocking(), evf::SlaveQueue::rcvNonBlockingAny(), evf::MasterQueue::rcvQuiet(), evf::SlaveQueue::rcvQuiet(), evf::RecoMsgBuf::recoCell(), and evf::SimpleMsgBuf::setBufferPointers().