KaliVeda
Toolkit for HIC analysis
KVUnownedList.h
1 #ifndef KVUNOWNEDLIST_H
2 #define KVUNOWNEDLIST_H
3 
4 #include "KVSeqCollection.h"
5 
21 
22  void SetOwner(Bool_t o = kTRUE) override
23  {
24  if (o) {
25  Warning("SetOwner", "Attempt to change non-owner status of KVUnownedList");
26  }
27  }
28 
29 public:
30 
32  {
35  set_ownership(false);
36  }
37  void Sort(Bool_t order = kSortAscending)
38  {
39  ((TList*)fCollection)->Sort(order);
40  }
41 
43 };
44 
45 #endif // KVUNOWNEDLIST_H
bool Bool_t
#define ClassDefOverride(name, id)
KaliVeda extensions to ROOT collection classes.
TSeqCollection * fCollection
Pointer to embedded ROOT collection.
void set_ownership(Bool_t enable)
Extended TList class which does not own its objects by default.
Definition: KVUnownedList.h:20
void Sort(Bool_t order=kSortAscending)
Definition: KVUnownedList.h:37
void SetOwner(Bool_t o=kTRUE) override
Definition: KVUnownedList.h:22
virtual void Warning(const char *method, const char *msgfmt,...) const