CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

evf::RecoMsgBuf Class Reference

#include <RecoMsgBuf.h>

Inheritance diagram for evf::RecoMsgBuf:
evf::MsgBuf

List of all members.

Public Member Functions

void initialise (unsigned int recoCellSize)
FUShmRecoCellrecoCell ()
 RecoMsgBuf (unsigned int size, unsigned int type)
virtual ~RecoMsgBuf ()

Private Attributes

FUShmRecoCelltheRecoCell_

Friends

class MasterQueue

Detailed Description

Message Buffer for Message Queue, holds an entire FUShmRecoCell to transport.

Author:
aspataru

Definition at line 23 of file RecoMsgBuf.h.


Constructor & Destructor Documentation

RecoMsgBuf::RecoMsgBuf ( unsigned int  size,
unsigned int  type 
)

Definition at line 7 of file RecoMsgBuf.cc.

RecoMsgBuf::~RecoMsgBuf ( ) [virtual]

Definition at line 11 of file RecoMsgBuf.cc.

References theRecoCell_, and evf::FUShmRecoCell::~FUShmRecoCell().

                        {
        theRecoCell_->~FUShmRecoCell();
        //delete[] buf_;
}

Member Function Documentation

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;
        }

Friends And Related Function Documentation

friend class MasterQueue [friend]

Reimplemented from evf::MsgBuf.

Definition at line 42 of file RecoMsgBuf.h.


Member Data Documentation

Definition at line 40 of file RecoMsgBuf.h.

Referenced by initialise(), and ~RecoMsgBuf().