CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

evf::DQMMsgBuf Class Reference

#include <DQMMsgBuf.h>

Inheritance diagram for evf::DQMMsgBuf:
evf::MsgBuf

List of all members.

Public Member Functions

FUShmDqmCelldqmCell ()
 DQMMsgBuf (unsigned int size, unsigned int type)
void initialise (unsigned int dqmCellSize)
virtual ~DQMMsgBuf ()

Private Attributes

FUShmDqmCelltheDqmCell_

Friends

class MasterQueue

Detailed Description

Message buffer containing a DQM Cell.

Author:
aspataru

Definition at line 23 of file DQMMsgBuf.h.


Constructor & Destructor Documentation

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

Definition at line 14 of file DQMMsgBuf.cc.

                                                         :
        MsgBuf(size, type), theDqmCell_(0) {
}
DQMMsgBuf::~DQMMsgBuf ( ) [virtual]

Definition at line 18 of file DQMMsgBuf.cc.

References theDqmCell_, and evf::FUShmDqmCell::~FUShmDqmCell().

                      {
        theDqmCell_->~FUShmDqmCell();
        //delete[] buf_;
}

Member Function Documentation

FUShmDqmCell* evf::DQMMsgBuf::dqmCell ( ) [inline]

Returns a pointer to the DQM cell contained in the message buffer

Definition at line 37 of file DQMMsgBuf.h.

References evf::MsgBuf::ptr_.

Referenced by evf::FUResourceQueue::sendDqm(), and evf::FUResourceQueue::sendDqmWhileHalting().

                                {
                return (FUShmDqmCell*) ptr_->mtext;
        }
void DQMMsgBuf::initialise ( unsigned int  dqmCellSize)

Construct the DQM cell object in-place in the message buffer

Definition at line 23 of file DQMMsgBuf.cc.

References evf::MsgBuf::ptr_, and theDqmCell_.

                                                   {
        // construct the FUShmDqmCell at the buffer address
        // the memory is allocated in the super constructor
        theDqmCell_ = new (ptr_->mtext) FUShmDqmCell(dqmCellSize);
}

Friends And Related Function Documentation

friend class MasterQueue [friend]

Reimplemented from evf::MsgBuf.

Definition at line 43 of file DQMMsgBuf.h.


Member Data Documentation

Definition at line 42 of file DQMMsgBuf.h.

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