#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 () |
Private 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 34 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(), and evf::SlaveQueue::rcvNonBlockingAny().
{return msize_;}
msgbuf * evf::MsgBuf::operator-> | ( | ) |
friend class MasterQueue [friend] |
friend class SlaveQueue [friend] |
unsigned char* evf::MsgBuf::buf_ [private] |
Definition at line 21 of file MsgBuf.h.
Referenced by MsgBuf(), operator=(), and ~MsgBuf().
size_t evf::MsgBuf::msize_ [private] |
Definition at line 20 of file MsgBuf.h.
Referenced by MsgBuf(), msize(), and operator=().
struct msgbuf* evf::MsgBuf::ptr_ [private] |
Definition at line 22 of file MsgBuf.h.
Referenced by evf::MasterQueue::drain(), MsgBuf(), operator->(), operator=(), evf::MasterQueue::post(), evf::SlaveQueue::post(), evf::MasterQueue::rcv(), evf::SlaveQueue::rcv(), evf::SlaveQueue::rcvNonBlocking(), evf::MasterQueue::rcvNonBlocking(), and evf::SlaveQueue::rcvNonBlockingAny().