00001 #include "EventFilter/ResourceBroker/interface/RecoMsgBuf.h" 00002 #include <iostream> 00003 #include <cstdlib> 00004 00005 using namespace evf; 00006 00007 RecoMsgBuf::RecoMsgBuf(unsigned int size, unsigned int type) : 00008 MsgBuf(size, type), theRecoCell_(0) { 00009 } 00010 00011 RecoMsgBuf::~RecoMsgBuf() { 00012 theRecoCell_->~FUShmRecoCell(); 00013 //delete[] buf_; 00014 } 00015 00016 void RecoMsgBuf::initialise(unsigned int recoCellSize) { 00017 // construct the FUShmRawCell at the buffer address 00018 // the memory is allocated in the super constructor 00019 theRecoCell_ = new (ptr_->mtext) FUShmRecoCell(recoCellSize); 00020 }