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);
101 std::vector<T*>*theDigiCollection
103 theDigiCollection->push_back(aHit);
104 return theDigiCollection->size();
111 std::vector<T*>*theDigiCollection
113 return theDigiCollection->size();
150 std::vector<T*> * theDigiCollection =
new std::vector<T*>;
151 theCollection = (
void*)theDigiCollection;
159 std::vector<T*> * theDigiCollection =
new std::vector<T*>;
166 std::vector<T*> * theDigiCollection = (std::vector<T*>*)theCollection;
168 for(
size_t i=0;i<theDigiCollection->size();i++)
169 {
delete (*theDigiCollection)[i]; }
170 theDigiCollection->clear();
171 delete theDigiCollection;
183 std::vector<T*> * theDigiCollection = (std::vector<T*>*)theCollection;
184 size_t n = theDigiCollection->size();
185 for(
size_t i=0;i<
n;i++)
186 { (*theDigiCollection)[i]->Draw(); }
192 std::vector<T*> * theDigiCollection = (std::vector<T*>*)theCollection;
193 size_t n = theDigiCollection->size();
194 for(
size_t i=0;i<
n;i++)
195 { (*theDigiCollection)[i]->Print(); }
void FreeSingle(Type *anElement)
G4DLLIMPORT G4Allocator< G4DigiCollection > *& aDCAllocator_G4MT_TLS_()
virtual void DrawAllDigi()
G4int operator==(const G4TDigiCollection &right) const
virtual void PrintAllDigi()
std::vector< T * > * GetVector() const
T * operator[](size_t i) const
virtual ~G4DigiCollection()
G4int operator==(const G4DigiCollection &right) const
virtual ~G4TDigiCollection()
virtual G4VDigi * GetDigi(size_t i) const
virtual size_t GetSize() const