#include <ElecPulseCollection.h>
Collaboration diagram for DayaBay::ElecPulseCollection:
Public Types | |
| typedef std::vector< DayaBay::ElecPulse * > | PulseContainer |
| The collection type. | |
Public Member Functions | |
| ElecPulseCollection (DayaBay::ElecPulseHeader *header, const DayaBay::Detector &det) | |
| Fully construct. | |
| ElecPulseCollection () | |
| Default Constructor. | |
| ~ElecPulseCollection () | |
| destructor | |
| std::ostream & | fillStream (std::ostream &s) const |
| Print the collection. | |
| const DayaBay::ElecPulseHeader * | header () const |
| Retrieve const The ElecPulseHeader holding this collection. | |
| void | setHeader (DayaBay::ElecPulseHeader *value) |
| Update The ElecPulseHeader holding this collection. | |
| const DayaBay::Detector & | detector () const |
| Retrieve const The detector responsible for these pulses. | |
| void | setDetector (const DayaBay::Detector &value) |
| Update The detector responsible for these pulses. | |
| const PulseContainer & | pulses () const |
| Retrieve const Collection of ElecPulses. | |
| PulseContainer & | pulses () |
| Retrieve Collection of ElecPulses. | |
| void | setPulses (const PulseContainer &value) |
| Update Collection of ElecPulses. | |
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::ElecPulseHeader * | m_header |
| The ElecPulseHeader holding this collection. | |
| DayaBay::Detector | m_detector |
| The detector responsible for these pulses. | |
| PulseContainer | m_pulses |
| Collection of ElecPulses. | |
Definition at line 43 of file ElecPulseCollection.h.
| typedef std::vector<DayaBay::ElecPulse*> DayaBay::ElecPulseCollection::PulseContainer |
| DayaBay::ElecPulseCollection::ElecPulseCollection | ( | DayaBay::ElecPulseHeader * | header, | |
| const DayaBay::Detector & | det | |||
| ) | [inline] |
Fully construct.
Definition at line 51 of file ElecPulseCollection.h.
00052 : m_header(header), 00053 m_detector(det) {}
| DayaBay::ElecPulseCollection::ElecPulseCollection | ( | ) | [inline] |
Default Constructor.
Definition at line 56 of file ElecPulseCollection.h.
00056 : m_header(0), 00057 m_detector(), 00058 m_pulses() {}
| DayaBay::ElecPulseCollection::~ElecPulseCollection | ( | ) | [inline] |
destructor
Definition at line 152 of file ElecPulseCollection.h.
00153 { 00154 00155 DayaBay::ElecPulseCollection::PulseContainer::iterator pcIter = m_pulses.begin(); 00156 for(;pcIter != m_pulses.end(); pcIter++) delete *(pcIter); 00157 00158 }
| std::ostream & DayaBay::ElecPulseCollection::fillStream | ( | std::ostream & | s | ) | const |
Print the collection.
Definition at line 4 of file ElecPulseCollection.cc.
00005 { 00006 size_t siz = m_pulses.size(); 00007 00008 s << "{ " 00009 << siz << " pulses : " << std::endl; 00010 00011 PulseContainer::const_iterator it, done = m_pulses.end(); 00012 for (it=m_pulses.begin(); it != done; ++it) { 00013 s << *(*it) << std::endl; 00014 } 00015 s << "}"; 00016 return s; 00017 }
| const DayaBay::ElecPulseHeader * DayaBay::ElecPulseCollection::header | ( | ) | const [inline] |
Retrieve const The ElecPulseHeader holding this collection.
Definition at line 160 of file ElecPulseCollection.h.
00161 { 00162 return m_header; 00163 }
| void DayaBay::ElecPulseCollection::setHeader | ( | DayaBay::ElecPulseHeader * | value | ) | [inline] |
Update The ElecPulseHeader holding this collection.
Definition at line 165 of file ElecPulseCollection.h.
00166 { 00167 m_header = value; 00168 }
| const DayaBay::Detector & DayaBay::ElecPulseCollection::detector | ( | ) | const [inline] |
Retrieve const The detector responsible for these pulses.
Definition at line 170 of file ElecPulseCollection.h.
00171 { 00172 return m_detector; 00173 }
| void DayaBay::ElecPulseCollection::setDetector | ( | const DayaBay::Detector & | value | ) | [inline] |
Update The detector responsible for these pulses.
Definition at line 175 of file ElecPulseCollection.h.
00176 { 00177 m_detector = value; 00178 }
| const DayaBay::ElecPulseCollection::PulseContainer & DayaBay::ElecPulseCollection::pulses | ( | ) | const [inline] |
Retrieve const Collection of ElecPulses.
Definition at line 180 of file ElecPulseCollection.h.
00181 { 00182 return m_pulses; 00183 }
| DayaBay::ElecPulseCollection::PulseContainer & DayaBay::ElecPulseCollection::pulses | ( | ) | [inline] |
Retrieve Collection of ElecPulses.
Definition at line 185 of file ElecPulseCollection.h.
00186 { 00187 return m_pulses; 00188 }
| void DayaBay::ElecPulseCollection::setPulses | ( | const PulseContainer & | value | ) | [inline] |
Update Collection of ElecPulses.
Definition at line 190 of file ElecPulseCollection.h.
00191 { 00192 m_pulses = value; 00193 }
| static void* DayaBay::ElecPulseCollection::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Definition at line 97 of file ElecPulseCollection.h.
00098 { 00099 return ( sizeof(ElecPulseCollection) == size ? 00100 boost::singleton_pool<ElecPulseCollection, sizeof(ElecPulseCollection)>::malloc() : 00101 ::operator new(size) ); 00102 }
| static void* DayaBay::ElecPulseCollection::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 107 of file ElecPulseCollection.h.
| static void DayaBay::ElecPulseCollection::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Definition at line 113 of file ElecPulseCollection.h.
00114 { 00115 boost::singleton_pool<ElecPulseCollection, sizeof(ElecPulseCollection)>::is_from(p) ? 00116 boost::singleton_pool<ElecPulseCollection, sizeof(ElecPulseCollection)>::free(p) : 00117 ::operator delete(p); 00118 }
| static void DayaBay::ElecPulseCollection::operator delete | ( | void * | p, | |
| void * | pObj | |||
| ) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Definition at line 122 of file ElecPulseCollection.h.
00123 { 00124 ::operator delete (p, pObj); 00125 }
1.4.7