30 |
|
ArrayElement *At(UInt_t idx); |
31 |
|
const ArrayElement *At(UInt_t idx) const; |
32 |
|
void Clear(Option_t */*opt*/="") { fArray.~TClonesArray(); } |
33 |
+ |
void Delete(); |
34 |
|
UInt_t Entries() const { return fNumEntries; } |
35 |
|
UInt_t GetEntries() const { return fNumEntries; } |
36 |
|
const char *GetName() const { return fArray.GetName(); } |
210 |
|
|
211 |
|
fNumEntries = 0; |
212 |
|
} |
213 |
+ |
|
214 |
+ |
//-------------------------------------------------------------------------------------------------- |
215 |
+ |
template<class ArrayElement> |
216 |
+ |
inline void mithep::Array<ArrayElement>::Delete() |
217 |
+ |
{ |
218 |
+ |
// ROOT implementation for clearing the array, deleting all objects inside |
219 |
+ |
|
220 |
+ |
fArray.Delete(); //will call destructor for every element |
221 |
+ |
|
222 |
+ |
fNumEntries = 0; |
223 |
+ |
} |
224 |
|
|
225 |
|
//-------------------------------------------------------------------------------------------------- |
226 |
|
template<class ArrayElement> |