Logo ROOT   6.16/01
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#include "TNamed.h"
26
27class TTree;
28
29class TVirtualIndex : public TNamed {
30
31protected:
32 TTree *fTree; //! pointer to Tree
33
34public:
36 virtual ~TVirtualIndex();
37 virtual void Append(const TVirtualIndex *,Bool_t delaySort = kFALSE) = 0;
38 virtual Long64_t GetEntryNumberFriend(const TTree * /*parent*/) = 0;
39 virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const = 0;
40 virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const = 0;
41 virtual const char *GetMajorName() const = 0;
42 virtual const char *GetMinorName() const = 0;
43 virtual Long64_t GetN() const = 0;
44 virtual TTree *GetTree() const {return fTree;}
45 virtual void UpdateFormulaLeaves(const TTree *parent) = 0;
46 virtual void SetTree(const TTree *T) = 0;
47
48 ClassDef(TVirtualIndex,1); //Abstract interface for Tree Index
49};
50
51#endif
52
const Bool_t kFALSE
Definition: RtypesCore.h:88
bool Bool_t
Definition: RtypesCore.h:59
long long Long64_t
Definition: RtypesCore.h:69
#define ClassDef(name, id)
Definition: Rtypes.h:324
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
A TTree object has a header with a name and a title.
Definition: TTree.h:71
Abstract interface for Tree Index.
Definition: TVirtualIndex.h:29
virtual void Append(const TVirtualIndex *, Bool_t delaySort=kFALSE)=0
virtual void UpdateFormulaLeaves(const TTree *parent)=0
virtual const char * GetMajorName() const =0
virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor) const =0
TVirtualIndex()
pointer to Tree
virtual Long64_t GetEntryNumberFriend(const TTree *)=0
virtual TTree * GetTree() const
Definition: TVirtualIndex.h:44
virtual const char * GetMinorName() const =0
virtual void SetTree(const TTree *T)=0
virtual Long64_t GetN() const =0
virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor) const =0
virtual ~TVirtualIndex()
double T(double x)
Definition: ChebyshevPol.h:34