#include <RecoMsgBuf.h>
Public Member Functions | |
void | initialise (unsigned int recoCellSize) |
FUShmRecoCell * | recoCell () |
RecoMsgBuf (unsigned int size, unsigned int type) | |
virtual | ~RecoMsgBuf () |
Private Attributes | |
FUShmRecoCell * | theRecoCell_ |
Friends | |
class | MasterQueue |
Message Buffer for Message Queue, holds an entire FUShmRecoCell to transport.
Definition at line 23 of file RecoMsgBuf.h.
RecoMsgBuf::RecoMsgBuf | ( | unsigned int | size, |
unsigned int | type | ||
) |
Definition at line 7 of file RecoMsgBuf.cc.
: MsgBuf(size, type), theRecoCell_(0) { }
RecoMsgBuf::~RecoMsgBuf | ( | ) | [virtual] |
Definition at line 11 of file RecoMsgBuf.cc.
References theRecoCell_, and evf::FUShmRecoCell::~FUShmRecoCell().
{ theRecoCell_->~FUShmRecoCell(); //delete[] buf_; }
void RecoMsgBuf::initialise | ( | unsigned int | recoCellSize | ) |
Construct the Reco cell object in-place in the message buffer
Definition at line 16 of file RecoMsgBuf.cc.
References evf::MsgBuf::ptr_, and theRecoCell_.
{ // construct the FUShmRawCell at the buffer address // the memory is allocated in the super constructor theRecoCell_ = new (ptr_->mtext) FUShmRecoCell(recoCellSize); }
FUShmRecoCell* evf::RecoMsgBuf::recoCell | ( | ) | [inline] |
Returns a pointer to the Raw cell contained in the message buffer
Definition at line 35 of file RecoMsgBuf.h.
References evf::MsgBuf::ptr_.
Referenced by evf::FUResourceQueue::sendData(), and evf::FUResourceQueue::sendDataWhileHalting().
{ return (FUShmRecoCell*) ptr_->mtext; }
friend class MasterQueue [friend] |
Reimplemented from evf::MsgBuf.
Definition at line 42 of file RecoMsgBuf.h.
FUShmRecoCell* evf::RecoMsgBuf::theRecoCell_ [private] |
Definition at line 40 of file RecoMsgBuf.h.
Referenced by initialise(), and ~RecoMsgBuf().