29 #ifndef G4TDigiCollection_h
30 #define G4TDigiCollection_h 1
59 #if defined G4DIGI_ALLOC_EXPORT
76 inline void *
operator new(size_t);
77 inline void operator delete(
void* aDC);
100 std::vector<T*>*theDigiCollection
102 theDigiCollection->push_back(aHit);
103 return theDigiCollection->size();
110 std::vector<T*>*theDigiCollection
112 return theDigiCollection->size();
149 std::vector<T*> * theDigiCollection =
new std::vector<T*>;
150 theCollection = (
void*)theDigiCollection;
158 std::vector<T*> * theDigiCollection =
new std::vector<T*>;
165 std::vector<T*> * theDigiCollection = (std::vector<T*>*)theCollection;
167 for(
size_t i=0;i<theDigiCollection->size();i++)
168 {
delete (*theDigiCollection)[i]; }
169 theDigiCollection->clear();
170 delete theDigiCollection;
182 std::vector<T*> * theDigiCollection = (std::vector<T*>*)theCollection;
183 size_t n = theDigiCollection->size();
184 for(
size_t i=0;i<
n;i++)
185 { (*theDigiCollection)[i]->Draw(); }
191 std::vector<T*> * theDigiCollection = (std::vector<T*>*)theCollection;
192 size_t n = theDigiCollection->size();
193 for(
size_t i=0;i<
n;i++)
194 { (*theDigiCollection)[i]->Print(); }