![]() |
KaliVeda
Toolkit for HIC analysis
|
Extended TList class which does not own its objects by default.
This is an extended version of the ROOT TList class, with all of the extensions defined in KVSeqCollection. Unlike KVList, it does not own its objects by default: they will not be deleted when this list goes out of scope, Clear() is called, etc.
As TList::Sort() is defined, we implemented a KVUnownedList::Sort() method which takes exactly the same argument as TList::Sort().
Definition at line 20 of file KVUnownedList.h.
#include <KVUnownedList.h>

Public Member Functions | |
| KVUnownedList () | |
| void | Sort (Bool_t order=kSortAscending) |
Public Member Functions inherited from KVSeqCollection | |
| KVSeqCollection () | |
| KVSeqCollection (const KVSeqCollection &) | |
| KVSeqCollection (const TString &collection_classname) | |
| KVSeqCollection (KVSeqCollection &&) | |
| virtual | ~KVSeqCollection () |
| void | Add (TObject *obj) override |
| void | AddAfter (const TObject *after, TObject *obj) override |
| void | AddAt (TObject *obj, Int_t idx) override |
| void | AddBefore (const TObject *before, TObject *obj) override |
| void | AddFirst (TObject *obj) override |
| void | AddLast (TObject *obj) override |
| TObject * | After (const TObject *obj) const override |
| TObject * | At (Int_t idx) const override |
| TObject * | Before (const TObject *obj) const override |
| void | Clear (Option_t *option="") override |
| TString | CollectionClassName () const |
| void | Copy (TObject &obj) const override |
| void | Delete (Option_t *option="") override |
| void | Execute (const char *method, const char *params, Int_t *error=0) override |
| void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) override |
| TObject * | FindObject (const char *name) const override |
| TObject * | FindObject (const TObject *obj) const override |
| virtual TObject * | FindObjectAny (const Char_t *att, const Char_t *keys, Bool_t contains_all=kFALSE, Bool_t case_sensitive=kTRUE) const |
| TObject * | FindObjectByClass (const Char_t *) const |
| Return (first) object in embedded list with given class. More... | |
| TObject * | FindObjectByClass (const TClass *) const |
| Return (first) object in embedded list with given class. More... | |
| virtual TObject * | FindObjectByLabel (const Char_t *) const |
| virtual TObject * | FindObjectByName (const Char_t *name) const |
| virtual TObject * | FindObjectByNumber (UInt_t num) const |
| virtual TObject * | FindObjectByTitle (const Char_t *) const |
| Will return object with given title (value of TObject::GetTitle() method). More... | |
| virtual TObject * | FindObjectByType (const Char_t *) const |
| virtual TObject * | FindObjectWithMethod (const Char_t *retvalue, const Char_t *method) const |
| virtual TObject * | FindObjectWithNameAndType (const Char_t *name, const Char_t *type) const |
| TObject * | First () const override |
| template<typename T > | |
| T * | get_object (const TString &name) const |
| TSeqCollection * | GetCollection () const |
| TObject ** | GetObjectRef (const TObject *obj) const override |
| Return reference to object. More... | |
| Int_t | GetSize () const override |
| KVSeqCollection * | GetSubListWithClass (const Char_t *class_name) const |
| KVSeqCollection * | GetSubListWithClass (const TClass *_class) const |
| KVSeqCollection * | GetSubListWithLabel (const Char_t *retvalue) const |
| KVSeqCollection * | GetSubListWithMethod (const Char_t *retvalue, const Char_t *method) const |
| KVSeqCollection * | GetSubListWithName (const Char_t *retvalue) const |
| KVSeqCollection * | GetSubListWithType (const Char_t *retvalue) const |
| template<typename ObjectType , typename ValueType > | |
| ValueType | GetSumOverCollection (std::function< ValueType(const ObjectType *)> Function) const |
| Bool_t | IsCleanup () const |
| virtual Bool_t | IsSendingModifiedSignals () const |
| Bool_t | IsSortable () const override |
| Bool_t | IsSorted () const override |
| TObject * | Last () const override |
| TIterator * | MakeIterator (Bool_t dir=kIterForward) const override |
| Make and return iterator for the list. More... | |
| virtual void | Modified () |
| Bool_t | operator! () const |
| KVSeqCollection & | operator= (const KVSeqCollection &) |
| Info("operator=","copy ass");. More... | |
| KVSeqCollection & | operator= (KVSeqCollection &&) |
| void | RecursiveRemove (TObject *obj) override |
| TObject * | Remove (TObject *obj) override |
| Remove object from list. More... | |
| virtual void | SendModifiedSignals (Bool_t yes=kTRUE) |
| virtual void | SetCleanup (Bool_t enable=kTRUE) |
| void | SetOwner (Bool_t enable=kTRUE) override |
Additional Inherited Members | |
Static Public Member Functions inherited from KVSeqCollection | |
| static KVSeqCollection * | MakeListFromFile (TFile *file) |
| static KVSeqCollection * | MakeListFromFileWithClass (TFile *file, const Char_t *class_name) |
| static KVSeqCollection * | MakeListFromFileWithClass (TFile *file, const TClass *_class) |
| static KVSeqCollection * | MakeListFromFileWithMethod (TFile *file, const Char_t *retvalue, const Char_t *method) |
| static void | RehashCleanupList () |
|
inline |
Default ctor. By default, the list does not own its objects
Definition at line 31 of file KVUnownedList.h.
|
inline |
Definition at line 37 of file KVUnownedList.h.