CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
evf::DQMMsgBuf Class Reference

#include <DQMMsgBuf.h>

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

Public Member Functions

FUShmDqmCelldqmCell ()
 
 DQMMsgBuf (unsigned int size, unsigned int type)
 
void initialise (unsigned int dqmCellSize)
 
virtual ~DQMMsgBuf ()
 
- Public Member Functions inherited from evf::MsgBuf
 MsgBuf ()
 
 MsgBuf (unsigned int size, unsigned int type)
 
 MsgBuf (const MsgBuf &b)
 
size_t msize ()
 
msgbuf * operator-> ()
 
MsgBufoperator= (const MsgBuf &)
 
virtual ~MsgBuf ()
 

Private Attributes

FUShmDqmCelltheDqmCell_
 

Friends

class MasterQueue
 

Additional Inherited Members

- Protected Attributes inherited from evf::MsgBuf
unsigned char * buf_
 
size_t msize_
 
struct msgbuf * ptr_
 

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.

14  :
15  MsgBuf(size, type), theDqmCell_(0) {
16 }
type
Definition: HCALResponse.h:22
FUShmDqmCell * theDqmCell_
Definition: DQMMsgBuf.h:42
MsgBuf()
Definition: MsgBuf.cc:5
tuple size
Write out results.
DQMMsgBuf::~DQMMsgBuf ( )
virtual

Definition at line 18 of file DQMMsgBuf.cc.

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

18  {
20  //delete[] buf_;
21 }
FUShmDqmCell * theDqmCell_
Definition: DQMMsgBuf.h:42

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().

37  {
38  return (FUShmDqmCell*) ptr_->mtext;
39  }
struct msgbuf * ptr_
Definition: MsgBuf.h:24
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_.

23  {
24  // construct the FUShmDqmCell at the buffer address
25  // the memory is allocated in the super constructor
26  theDqmCell_ = new (ptr_->mtext) FUShmDqmCell(dqmCellSize);
27 }
struct msgbuf * ptr_
Definition: MsgBuf.h:24
FUShmDqmCell * theDqmCell_
Definition: DQMMsgBuf.h:42

Friends And Related Function Documentation

friend class MasterQueue
friend

Definition at line 43 of file DQMMsgBuf.h.

Member Data Documentation

FUShmDqmCell* evf::DQMMsgBuf::theDqmCell_
private

Definition at line 42 of file DQMMsgBuf.h.

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