#include <MsgBuf.h>
Public Member Functions | |
MsgBuf () | |
MsgBuf (unsigned int size, unsigned int type) | |
size_t | msize () |
msgbuf * | operator-> () |
virtual | ~MsgBuf () |
Private Attributes | |
unsigned char * | buf |
size_t | msize_ |
struct msgbuf * | ptr_ |
Friends | |
class | MasterQueue |
class | SlaveQueue |
evf::MsgBuf::MsgBuf | ( | ) | [inline] |
Definition at line 11 of file MsgBuf.h.
References buf, MAX_MSG_SIZE, MSQM_MESSAGE_TYPE_NOP, and ptr_.
: msize_(MAX_MSG_SIZE+sizeof(struct msgbuf)+1) { buf = new unsigned char[MAX_MSG_SIZE+sizeof(struct msgbuf)+1]; ptr_ = (msgbuf*)buf; ptr_->mtype = MSQM_MESSAGE_TYPE_NOP; }
evf::MsgBuf::MsgBuf | ( | unsigned int | size, |
unsigned int | type | ||
) | [inline] |
virtual evf::MsgBuf::~MsgBuf | ( | ) | [inline, virtual] |
size_t evf::MsgBuf::msize | ( | ) | [inline] |
Definition at line 24 of file MsgBuf.h.
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-> | ( | ) | [inline] |
friend class MasterQueue [friend] |
friend class SlaveQueue [friend] |
unsigned char* evf::MsgBuf::buf [private] |
size_t evf::MsgBuf::msize_ [private] |
struct msgbuf* evf::MsgBuf::ptr_ [private] |
Definition at line 28 of file MsgBuf.h.
Referenced by evf::MasterQueue::drain(), MsgBuf(), operator->(), evf::MasterQueue::post(), evf::SlaveQueue::post(), evf::MasterQueue::rcv(), evf::SlaveQueue::rcv(), evf::SlaveQueue::rcvNonBlocking(), evf::MasterQueue::rcvNonBlocking(), and evf::SlaveQueue::rcvNonBlockingAny().