Warning, file /include/root/TTreeTableInterface.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 #ifndef ROOT_TTreeTableInterface
0012 #define ROOT_TTreeTableInterface
0013
0014 #include "TVirtualTableInterface.h"
0015
0016 class TTree;
0017 class TObjArray;
0018 class TTreeFormula;
0019 class TTreeFormulaManager;
0020 class TSelectorDraw;
0021 class TEntryList;
0022 class TList;
0023
0024
0025 class TTreeTableInterface : public TVirtualTableInterface {
0026
0027 private:
0028 TTree *fTree;
0029 TList *fFormulas;
0030 Long64_t fEntry;
0031 Long64_t fNEntries;
0032 Long64_t fFirstEntry;
0033 TTreeFormulaManager *fManager;
0034 TTreeFormula *fSelect;
0035 TSelectorDraw *fSelector;
0036 TList *fInput;
0037 bool fForceDim;
0038 TEntryList *fEntries;
0039 UInt_t fNRows;
0040 UInt_t fNColumns;
0041
0042 void SetVariablesExpression(const char *varexp);
0043 void SyncFormulas();
0044 void InitEntries();
0045
0046 protected:
0047
0048 public:
0049 TTreeTableInterface(TTree *tree = nullptr, const char *varexp = nullptr,
0050 const char *selection = nullptr, Option_t *option = nullptr,
0051 Long64_t nentries = 0, Long64_t firstentry = 0);
0052 ~TTreeTableInterface() override;
0053
0054 Double_t GetValue(UInt_t row, UInt_t column) override;
0055 const char *GetValueAsString(UInt_t row, UInt_t column) override;
0056 const char *GetRowHeader(UInt_t row) override;
0057 const char *GetColumnHeader(UInt_t column) override;
0058 UInt_t GetNRows() override;
0059 UInt_t GetNColumns() override;
0060 virtual TEntryList *GetEntryList() { return fEntries; }
0061
0062 virtual void AddColumn(const char *expression, UInt_t position);
0063 virtual void AddColumn(TTreeFormula *formula, UInt_t position);
0064 virtual void RemoveColumn(UInt_t position);
0065 virtual void SetFormula(TTreeFormula *formula, UInt_t position);
0066 virtual void SetSelection(const char *selection);
0067 virtual void SetEntryList(TEntryList *entrylist = nullptr);
0068
0069 ClassDefOverride(TTreeTableInterface, 0)
0070 };
0071
0072 #endif