Warning, file /include/root/TEntryListArray.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TEntryListArray
0013 #define ROOT_TEntryListArray
0014
0015 #include "TEntryList.h"
0016
0017 class TTree;
0018 class TDirectory;
0019 class TObjArray;
0020 class TString;
0021
0022 class TList;
0023 class TCollection;
0024 class TIter;
0025
0026 class TEntryListArray : public TEntryList {
0027
0028 private:
0029 TEntryListArray& operator=(const TEntryListArray&);
0030
0031 protected:
0032 TList *fSubLists;
0033 Long64_t fEntry;
0034 TEntryListArray *fLastSubListQueried;
0035 TIter *fSubListIter;
0036
0037 void Init();
0038 virtual void AddEntriesAndSubLists(const TEntryList *elist);
0039 virtual void ConvertToTEntryListArray(TEntryList *e);
0040
0041
0042
0043 virtual bool RemoveSubList(TEntryListArray *e, TTree *tree = nullptr);
0044 virtual bool RemoveSubListForEntry(Long64_t entry, TTree *tree = nullptr);
0045 virtual TEntryListArray* SetEntry(Long64_t entry, TTree *tree = nullptr);
0046
0047
0048 public:
0049 TEntryListArray();
0050 TEntryListArray(const char *name, const char *title);
0051 TEntryListArray(const char *name, const char *title, const TTree *tree);
0052 TEntryListArray(const char *name, const char *title, const char *treename, const char *filename);
0053 TEntryListArray(const TTree *tree);
0054 TEntryListArray(const TEntryListArray& elist);
0055 TEntryListArray(const TEntryList& elist);
0056 ~TEntryListArray() override;
0057
0058 void Add(const TEntryList *elist) override;
0059 virtual Int_t Contains(Long64_t entry, TTree *tree, Long64_t subentry);
0060 Int_t Contains(Long64_t entry, TTree *tree = nullptr) override {
0061 return TEntryList::Contains(entry, tree);
0062 };
0063 virtual bool Enter(Long64_t entry, TTree *tree, Long64_t subentry);
0064 virtual bool Enter(Long64_t entry, const char *treename, const char *filename, Long64_t subentry);
0065 bool Enter(Long64_t entry, TTree *tree = nullptr) override {
0066 return Enter(entry, tree, -1);
0067 };
0068 bool Enter(Long64_t entry, const char *treename, const char *filename) override
0069 {
0070 return Enter(entry, treename, filename, -1);
0071 };
0072
0073 virtual TEntryListArray* GetSubListForEntry(Long64_t entry, TTree *tree = nullptr);
0074 void Print(const Option_t* option = "") const override;
0075 virtual bool Remove(Long64_t entry, TTree *tree, Long64_t subentry);
0076 bool Remove(Long64_t entry, TTree *tree = nullptr) override {
0077 return Remove(entry, tree, -1);
0078 };
0079 void Reset() override;
0080
0081 void SetTree(const char *treename, const char *filename) override;
0082 void SetTree(const TTree *tree) override {
0083 TEntryList::SetTree(tree);
0084 }
0085 void Subtract(const TEntryList *elist) override;
0086 virtual TList* GetSubLists() const {
0087 return fSubLists;
0088 };
0089
0090 ClassDefOverride(TEntryListArray, 1);
0091 };
0092 #endif