#include <DaqBlock.h>
Public Types | |
typedef std::vector< unsigned int > | RawData |
Container for DAQ bytes. | |
Public Member Functions | |
DaqBlock () | |
Default Constructor. | |
DaqBlock (const DaqBlock &rh) | |
Copy Constructor. | |
DaqBlock & | operator= (const DaqBlock &rh) |
Assignment operator. | |
virtual | ~DaqBlock () |
destructor | |
unsigned int | size () const |
Returns the number of bytes in this block. | |
std::ostream & | fillStream (std::ostream &s) const |
Print the DAQ Block. | |
const RawData * | bytes () const |
Retrieve const The bytes that are contained in this block of data. | |
RawData * | bytes () |
Retrieve The bytes that are contained in this block of data. | |
void | setBytes (RawData *value) |
Update The bytes that are contained in this block of data. | |
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 | |
RawData * | m_bytes |
The bytes that are contained in this block of data. |
Definition at line 39 of file DaqBlock.h.
typedef std::vector<unsigned int> DayaBay::DaqBlock::RawData |
DayaBay::DaqBlock::DaqBlock | ( | ) | [inline] |
DayaBay::DaqBlock::DaqBlock | ( | const DaqBlock & | rh | ) | [inline] |
Copy Constructor.
Definition at line 130 of file DaqBlock.h.
00130 : 00131 m_bytes( rh.m_bytes ) 00132 {}
DayaBay::DaqBlock::~DaqBlock | ( | ) | [inline, virtual] |
DayaBay::DaqBlock & DayaBay::DaqBlock::operator= | ( | const DaqBlock & | rh | ) | [inline] |
Assignment operator.
Definition at line 134 of file DaqBlock.h.
00134 { 00135 if ( this != &rh ) { 00136 m_bytes = rh.m_bytes; 00137 } 00138 return *this; 00139 }
unsigned int DaqBlock::size | ( | ) | const |
Returns the number of bytes in this block.
Definition at line 14 of file DaqBlock.cc.
00014 { 00015 if (0 == m_bytes) { 00016 return 0; 00017 } else { 00018 return m_bytes->size(); 00019 } 00020 }
std::ostream & DaqBlock::fillStream | ( | std::ostream & | s | ) | const |
const DayaBay::DaqBlock::RawData * DayaBay::DaqBlock::bytes | ( | ) | const [inline] |
Retrieve const The bytes that are contained in this block of data.
Definition at line 147 of file DaqBlock.h.
00148 { 00149 return m_bytes; 00150 }
DayaBay::DaqBlock::RawData * DayaBay::DaqBlock::bytes | ( | ) | [inline] |
Retrieve The bytes that are contained in this block of data.
Definition at line 152 of file DaqBlock.h.
00153 { 00154 return m_bytes; 00155 }
void DayaBay::DaqBlock::setBytes | ( | RawData * | value | ) | [inline] |
Update The bytes that are contained in this block of data.
Definition at line 157 of file DaqBlock.h.
00158 { 00159 m_bytes = value; 00160 }
static void* DayaBay::DaqBlock::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Definition at line 79 of file DaqBlock.h.
00080 { 00081 return ( sizeof(DaqBlock) == size ? 00082 boost::singleton_pool<DaqBlock, sizeof(DaqBlock)>::malloc() : 00083 ::operator new(size) ); 00084 }
static void* DayaBay::DaqBlock::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
Definition at line 89 of file DaqBlock.h.
00090 { 00091 return ::operator new (size,pObj); 00092 }
static void DayaBay::DaqBlock::operator delete | ( | void * | p | ) | [inline, static] |
static void DayaBay::DaqBlock::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Definition at line 104 of file DaqBlock.h.
00105 { 00106 ::operator delete (p, pObj); 00107 }
RawData* DayaBay::DaqBlock::m_bytes [private] |