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::RecoMsgBuf Class Reference

#include <RecoMsgBuf.h>

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

Public Member Functions

void initialise (unsigned int recoCellSize)
 
FUShmRecoCellrecoCell ()
 
 RecoMsgBuf (unsigned int size, unsigned int type)
 
virtual ~RecoMsgBuf ()
 
- 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

FUShmRecoCelltheRecoCell_
 

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

7  :
9 }
type
Definition: HCALResponse.h:22
MsgBuf()
Definition: MsgBuf.cc:5
FUShmRecoCell * theRecoCell_
Definition: RecoMsgBuf.h:40
tuple size
Write out results.
RecoMsgBuf::~RecoMsgBuf ( )
virtual

Definition at line 11 of file RecoMsgBuf.cc.

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

11  {
13  //delete[] buf_;
14 }
FUShmRecoCell * theRecoCell_
Definition: RecoMsgBuf.h:40

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_.

16  {
17  // construct the FUShmRawCell at the buffer address
18  // the memory is allocated in the super constructor
19  theRecoCell_ = new (ptr_->mtext) FUShmRecoCell(recoCellSize);
20 }
struct msgbuf * ptr_
Definition: MsgBuf.h:24
FUShmRecoCell * theRecoCell_
Definition: RecoMsgBuf.h:40
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().

35  {
36  return (FUShmRecoCell*) ptr_->mtext;
37  }
struct msgbuf * ptr_
Definition: MsgBuf.h:24

Friends And Related Function Documentation

friend class MasterQueue
friend

Definition at line 42 of file RecoMsgBuf.h.

Member Data Documentation

FUShmRecoCell* evf::RecoMsgBuf::theRecoCell_
private

Definition at line 40 of file RecoMsgBuf.h.

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