30#ifndef G4TDigiCollection_h
31#define G4TDigiCollection_h 1
60#if defined G4DIGI_ALLOC_EXPORT
77 inline void *
operator new(size_t);
78 inline void operator delete(
void* aDC);
94 std::vector<T*>*theDigiCollection
96 theDigiCollection->push_back(aHit);
97 return theDigiCollection->size();
103 std::vector<T*>*theDigiCollection
105 return theDigiCollection->size();
131 std::vector<T*> * theDigiCollection
132 =
new std::vector<T*>;
133 theCollection = (
void*)theDigiCollection;
139 std::vector<T*> * theDigiCollection
140 =
new std::vector<T*>;
146 std::vector<T*> * theDigiCollection
147 = (std::vector<T*>*)theCollection;
149 for(
size_t i=0;i<theDigiCollection->size();i++)
150 {
delete (*theDigiCollection)[i]; }
151 theDigiCollection->clear();
152 delete theDigiCollection;
160 std::vector<T*> * theDigiCollection
161 = (std::vector<T*>*)theCollection;
162 size_t n = theDigiCollection->size();
163 for(
size_t i=0;i<n;i++)
164 { (*theDigiCollection)[i]->Draw(); }
169 std::vector<T*> * theDigiCollection
170 = (std::vector<T*>*)theCollection;
171 size_t n = theDigiCollection->size();
172 for(
size_t i=0;i<n;i++)
173 { (*theDigiCollection)[i]->Print(); }
G4DLLIMPORT G4Allocator< G4DigiCollection > aDCAllocator
G4int operator==(const G4DigiCollection &right) const
virtual ~G4DigiCollection()
virtual size_t GetSize() const
virtual ~G4TDigiCollection()
virtual void PrintAllDigi()
std::vector< T * > * GetVector() const
G4int operator==(const G4TDigiCollection &right) const
T * operator[](size_t i) const
virtual G4VDigi * GetDigi(size_t i) const
virtual void DrawAllDigi()