#include <RawRomLtb.h>
Inheritance diagram for DayaBay::RawRomLtb:
Public Member Functions | |
RawRomLtb () | |
Default Constructor. | |
~RawRomLtb () | |
destructor | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const std::vector< DayaBay::RawLtbFrame * > & | frames () const |
Retrieve const Ltb frames. | |
void | setFrames (const std::vector< DayaBay::RawLtbFrame * > &value) |
Update Ltb frames. | |
const DayaBay::RawEventHeader * | header () const |
Retrieve const pointer to RawEventHeader. | |
void | setHeader (DayaBay::RawEventHeader *value) |
Update pointer to RawEventHeader. | |
int | size () const |
Retrieve const Total size of bytes including header. | |
void | setSize (int value) |
Update Total size of bytes including header. | |
int | slot () const |
Retrieve const Slot number. | |
void | setSlot (int value) |
Update Slot number. | |
int | type () const |
Retrieve const Module type. | |
void | setType (int value) |
Update Module type. | |
int | cbltGA () const |
Retrieve const VME module Geographic Address. | |
void | setCbltGA (int value) |
Update VME module Geographic Address. | |
int | cbltModuleType () const |
Retrieve const cble module type. | |
void | setCbltModuleType (int value) |
Update cble module type. | |
int | cbltDataLength () const |
Retrieve const bytes from CBLT head to foot. | |
void | setCbltDataLength (int value) |
Update bytes from CBLT head to foot. | |
Static Public Member Functions | |
static void * | operator new (size_t size) |
operator new | |
static void * | operator new (size_t size, void *pObj) |
placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
static void | operator delete (void *p) |
operator delete | |
static void | operator delete (void *p, void *pObj) |
placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
std::vector< DayaBay::RawLtbFrame * > | m_frames |
Ltb frames. |
Definition at line 43 of file RawRomLtb.h.
DayaBay::RawRomLtb::RawRomLtb | ( | ) | [inline] |
DayaBay::RawRomLtb::~RawRomLtb | ( | ) | [inline] |
destructor
Definition at line 120 of file RawRomLtb.h.
00121 { 00122 00123 for(unsigned int i=0; i<m_frames.size(); i++) { 00124 delete m_frames[i]; 00125 } 00126 m_frames.clear(); 00127 00128 }
std::ostream & DayaBay::RawRomLtb::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::RawRom.
Definition at line 130 of file RawRomLtb.h.
00131 { 00132 RawRom::fillStream(s); 00133 s << "{ " << "frames : " << m_frames << std::endl << " }"; 00134 return s; 00135 }
const std::vector< DayaBay::RawLtbFrame * > & DayaBay::RawRomLtb::frames | ( | ) | const [inline] |
Retrieve const Ltb frames.
Definition at line 138 of file RawRomLtb.h.
00139 { 00140 return m_frames; 00141 }
void DayaBay::RawRomLtb::setFrames | ( | const std::vector< DayaBay::RawLtbFrame * > & | value | ) | [inline] |
Update Ltb frames.
Definition at line 143 of file RawRomLtb.h.
00144 { 00145 m_frames = value; 00146 }
static void* DayaBay::RawRomLtb::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::RawRom.
Definition at line 67 of file RawRomLtb.h.
00068 { 00069 return ( sizeof(RawRomLtb) == size ? 00070 boost::singleton_pool<RawRomLtb, sizeof(RawRomLtb)>::malloc() : 00071 ::operator new(size) ); 00072 }
static void* DayaBay::RawRomLtb::operator new | ( | size_t | size, | |
void * | pObj | |||
) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Reimplemented from DayaBay::RawRom.
Definition at line 77 of file RawRomLtb.h.
00078 { 00079 return ::operator new (size,pObj); 00080 }
static void DayaBay::RawRomLtb::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::RawRom.
Definition at line 83 of file RawRomLtb.h.
00084 { 00085 boost::singleton_pool<RawRomLtb, sizeof(RawRomLtb)>::is_from(p) ? 00086 boost::singleton_pool<RawRomLtb, sizeof(RawRomLtb)>::free(p) : 00087 ::operator delete(p); 00088 }
static void DayaBay::RawRomLtb::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::RawRom.
Definition at line 92 of file RawRomLtb.h.
00093 { 00094 ::operator delete (p, pObj); 00095 }
const DayaBay::RawEventHeader * DayaBay::RawRom::header | ( | ) | const [inline, inherited] |
Retrieve const pointer to RawEventHeader.
Definition at line 190 of file RawRom.h.
00191 { 00192 return m_header; 00193 }
void DayaBay::RawRom::setHeader | ( | DayaBay::RawEventHeader * | value | ) | [inline, inherited] |
Update pointer to RawEventHeader.
Definition at line 195 of file RawRom.h.
00196 { 00197 m_header = value; 00198 }
int DayaBay::RawRom::size | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setSize | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::slot | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setSlot | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::type | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setType | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::cbltGA | ( | ) | const [inline, inherited] |
void DayaBay::RawRom::setCbltGA | ( | int | value | ) | [inline, inherited] |
int DayaBay::RawRom::cbltModuleType | ( | ) | const [inline, inherited] |
Retrieve const cble module type.
Definition at line 240 of file RawRom.h.
00241 { 00242 return m_cbltModuleType; 00243 }
void DayaBay::RawRom::setCbltModuleType | ( | int | value | ) | [inline, inherited] |
Update cble module type.
Definition at line 245 of file RawRom.h.
00246 { 00247 m_cbltModuleType = value; 00248 }
int DayaBay::RawRom::cbltDataLength | ( | ) | const [inline, inherited] |
Retrieve const bytes from CBLT head to foot.
Definition at line 250 of file RawRom.h.
00251 { 00252 return m_cbltDataLength; 00253 }
void DayaBay::RawRom::setCbltDataLength | ( | int | value | ) | [inline, inherited] |
Update bytes from CBLT head to foot.
Definition at line 255 of file RawRom.h.
00256 { 00257 m_cbltDataLength = value; 00258 }
std::vector<DayaBay::RawLtbFrame*> DayaBay::RawRomLtb::m_frames [private] |