Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TVirtualIndex.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/tree:$Id$
0002 // Author: Rene Brun   05/07/2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TVirtualIndex
0013 #define ROOT_TVirtualIndex
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TVirtualIndex                                                        //
0019 //                                                                      //
0020 // Abstract interface for Tree Index                                    //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 
0025 #include "TNamed.h"
0026 
0027 class TTree;
0028 class TTreeFormula;
0029 
0030 class TVirtualIndex : public TNamed {
0031 
0032 protected:
0033    TTree         *fTree;          //! pointer to Tree
0034 
0035 public:
0036    TVirtualIndex();
0037                  ~TVirtualIndex() override;
0038    virtual void           Append(const TVirtualIndex *,bool delaySort = false) = 0;
0039    virtual Long64_t       GetEntryNumberFriend(const TTree * /*parent*/) = 0;
0040    virtual Long64_t       GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const = 0;
0041    virtual Long64_t       GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const = 0;
0042    virtual const char    *GetMajorName()    const = 0;
0043    virtual const char    *GetMinorName()    const = 0;
0044    virtual bool           IsValidFor(const TTree *parent) = 0;
0045    virtual Long64_t       GetN()            const = 0;
0046    virtual TTree         *GetTree()         const {return fTree;}
0047    virtual void           UpdateFormulaLeaves(const TTree *parent) = 0;
0048    virtual void           SetTree(TTree *T) = 0;
0049 
0050    ClassDefOverride(TVirtualIndex,1);  //Abstract interface for Tree Index
0051 };
0052 
0053 #endif
0054