ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TFriendProxy.h
Go to the documentation of this file.
1 // @(#)root/treeplayer:$Id$
2 // Author: Philippe Canal 01/06/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. *
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_TFriendProxy
13 #define ROOT_TFriendProxy
14 
15 #ifndef ROOT_TBranchProxyDirector
16 #include "TBranchProxyDirector.h"
17 #endif
18 
19 class TTree;
20 
21 namespace ROOT {
22 namespace Internal {
23 
24  class TFriendProxy {
25  protected:
26  TBranchProxyDirector fDirector; // contain pointer to TTree and entry to be read
27  Int_t fIndex; // Index of this tree in the list of friends
28 
29  public:
30  TFriendProxy();
31  TFriendProxy(TBranchProxyDirector *director, TTree *main, Int_t index);
32 
33  Long64_t GetReadEntry() const;
34  void ResetReadEntry();
35  void Update(TTree *newmain);
36  };
37 
38 } // namespace Internal
39 } // namespace ROOT
40 
41 #endif
long long Long64_t
Definition: RtypesCore.h:69
int Int_t
Definition: RtypesCore.h:41
TBranchProxyDirector fDirector
Definition: TFriendProxy.h:26
tuple main
Definition: hsum.py:20
void ResetReadEntry()
Refresh the cached read entry number from the original tree.
void Update(TTree *newmain)
Update the address of the underlying tree.
Long64_t GetReadEntry() const
Return the entry number currently being looked at.
A TTree object has a header with a name and a title.
Definition: TTree.h:98