Logo ROOT   6.08/07
Reference Guide
TVirtualIndex.h
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Rene Brun 05/07/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TVirtualIndex
13 #define ROOT_TVirtualIndex
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TVirtualIndex //
19 // //
20 // Abstract interface for Tree Index //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 
25 #ifndef ROOT_TNamed
26 #include "TNamed.h"
27 #endif
28 
29 class TTree;
30 
31 class TVirtualIndex : public TNamed {
32 
33 protected:
34  TTree *fTree; //! pointer to Tree
35 
36 public:
37  TVirtualIndex();
38  virtual ~TVirtualIndex();
39  virtual void Append(const TVirtualIndex *,Bool_t delaySort = kFALSE) = 0;
40  virtual Long64_t GetEntryNumberFriend(const TTree * /*parent*/) = 0;
41  virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const = 0;
42  virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const = 0;
43  virtual const char *GetMajorName() const = 0;
44  virtual const char *GetMinorName() const = 0;
45  virtual Long64_t GetN() const = 0;
46  virtual TTree *GetTree() const {return fTree;}
47  virtual void UpdateFormulaLeaves(const TTree *parent) = 0;
48  virtual void SetTree(const TTree *T) = 0;
49 
50  ClassDef(TVirtualIndex,1); //Abstract interface for Tree Index
51 };
52 
53 #endif
54 
virtual void Append(const TVirtualIndex *, Bool_t delaySort=kFALSE)=0
long long Long64_t
Definition: RtypesCore.h:69
Abstract interface for Tree Index.
Definition: TVirtualIndex.h:31
virtual void SetTree(const TTree *T)=0
double T(double x)
Definition: ChebyshevPol.h:34
virtual ~TVirtualIndex()
virtual TTree * GetTree() const
Definition: TVirtualIndex.h:46
virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const =0
bool Bool_t
Definition: RtypesCore.h:59
virtual void UpdateFormulaLeaves(const TTree *parent)=0
const Bool_t kFALSE
Definition: Rtypes.h:92
TVirtualIndex()
pointer to Tree
#define ClassDef(name, id)
Definition: Rtypes.h:254
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
virtual Long64_t GetN() const =0
virtual const char * GetMinorName() const =0
virtual const char * GetMajorName() const =0
A TTree object has a header with a name and a title.
Definition: TTree.h:98
virtual Long64_t GetEntryNumberFriend(const TTree *)=0
virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const =0