#include <ElecCrate.h>
Inheritance diagram for DayaBay::ElecCrate:
Public Member Functions | |
ElecCrate (const DayaBay::Detector &detector, DayaBay::ElecCrateHeader *header) | |
standard constructor | |
ElecCrate (const Site::Site_t &site, const DetectorId::DetectorId_t &detectorId, DayaBay::ElecCrateHeader *header) | |
standard constructor | |
ElecCrate () | |
Default Constructor. | |
virtual | ~ElecCrate () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const DayaBay::Detector & | detector () const |
Retrieve const The detector associated with this electronics crate. | |
void | setDetector (const DayaBay::Detector &value) |
Update The detector associated with this electronics crate. | |
const DayaBay::ElecCrateHeader * | header () const |
Retrieve const The crate header for this electronics crate. | |
void | setHeader (DayaBay::ElecCrateHeader *value) |
Update The crate header for this electronics crate. | |
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 | |
DayaBay::Detector | m_detector |
The detector associated with this electronics crate. | |
DayaBay::ElecCrateHeader * | m_header |
The crate header for this electronics crate. |
Definition at line 43 of file ElecCrate.h.
DayaBay::ElecCrate::ElecCrate | ( | const DayaBay::Detector & | detector, | |
DayaBay::ElecCrateHeader * | header | |||
) | [inline] |
standard constructor
Definition at line 139 of file ElecCrate.h.
00141 { 00142 00143 setDetector(detector); 00144 setHeader(header); 00145 00146 }
DayaBay::ElecCrate::ElecCrate | ( | const Site::Site_t & | site, | |
const DetectorId::DetectorId_t & | detectorId, | |||
DayaBay::ElecCrateHeader * | header | |||
) | [inline] |
standard constructor
Definition at line 148 of file ElecCrate.h.
00151 { 00152 00153 setDetector(DayaBay::Detector(site, 00154 detectorId)); 00155 setHeader(header); 00156 00157 }
DayaBay::ElecCrate::ElecCrate | ( | ) | [inline] |
Default Constructor.
Definition at line 57 of file ElecCrate.h.
00057 : m_detector(0), 00058 m_header(0) {}
virtual DayaBay::ElecCrate::~ElecCrate | ( | ) | [inline, virtual] |
std::ostream & DayaBay::ElecCrate::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.
Definition at line 159 of file ElecCrate.h.
00160 { 00161 s << "{ " << "detector : " << m_detector << std::endl 00162 << "header : " << m_header << std::endl << " }"; 00163 return s; 00164 }
const DayaBay::Detector & DayaBay::ElecCrate::detector | ( | ) | const [inline] |
Retrieve const The detector associated with this electronics crate.
Definition at line 167 of file ElecCrate.h.
00168 { 00169 return m_detector; 00170 }
void DayaBay::ElecCrate::setDetector | ( | const DayaBay::Detector & | value | ) | [inline] |
Update The detector associated with this electronics crate.
Definition at line 172 of file ElecCrate.h.
00173 { 00174 m_detector = value; 00175 }
const DayaBay::ElecCrateHeader * DayaBay::ElecCrate::header | ( | ) | const [inline] |
Retrieve const The crate header for this electronics crate.
Definition at line 177 of file ElecCrate.h.
00178 { 00179 return m_header; 00180 }
void DayaBay::ElecCrate::setHeader | ( | DayaBay::ElecCrateHeader * | value | ) | [inline] |
Update The crate header for this electronics crate.
Definition at line 182 of file ElecCrate.h.
00183 { 00184 m_header = value; 00185 }
static void* DayaBay::ElecCrate::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.
Definition at line 85 of file ElecCrate.h.
00086 { 00087 return ( sizeof(ElecCrate) == size ? 00088 boost::singleton_pool<ElecCrate, sizeof(ElecCrate)>::malloc() : 00089 ::operator new(size) ); 00090 }
static void* DayaBay::ElecCrate::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 in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.
Definition at line 95 of file ElecCrate.h.
static void DayaBay::ElecCrate::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.
Definition at line 101 of file ElecCrate.h.
00102 { 00103 boost::singleton_pool<ElecCrate, sizeof(ElecCrate)>::is_from(p) ? 00104 boost::singleton_pool<ElecCrate, sizeof(ElecCrate)>::free(p) : 00105 ::operator delete(p); 00106 }
static void DayaBay::ElecCrate::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented in DayaBay::ElecFecCrate, and DayaBay::ElecFeeCrate.
Definition at line 110 of file ElecCrate.h.
00111 { 00112 ::operator delete (p, pObj); 00113 }