Logo ROOT  
Reference Guide
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 #include "TBranchProxyDirector.h"
16 
17 class TTree;
18 
19 namespace ROOT {
20 namespace Internal {
21 
22  class TFriendProxy {
23  protected:
24  TBranchProxyDirector fDirector; // contain pointer to TTree and entry to be read
25  Int_t fIndex; // Index of this tree in the list of friends
26 
27  public:
28  TFriendProxy();
29  TFriendProxy(TBranchProxyDirector *director, TTree *main, Int_t index);
30 
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
ROOT::Internal::TBranchProxyDirector
Definition: TBranchProxyDirector.h:35
ROOT::Internal::TFriendProxy::fIndex
Int_t fIndex
Definition: TFriendProxy.h:25
ROOT::Internal::TFriendProxy::GetDirector
TBranchProxyDirector * GetDirector()
Definition: TFriendProxy.h:31
Long64_t
long long Long64_t
Definition: RtypesCore.h:73
TTree
Definition: TTree.h:79
ROOT::Internal::TFriendProxy::fDirector
TBranchProxyDirector fDirector
Definition: TFriendProxy.h:24
ROOT::Internal::TFriendProxy::Update
void Update(TTree *newmain)
Update the address of the underlying tree.
Definition: TFriendProxy.cxx:67
main
int main(int argc, char **argv)
Definition: histspeedtest.cxx:752
ROOT::Internal::TFriendProxy
Definition: TFriendProxy.h:22
TBranchProxyDirector.h
ROOT::Internal::TFriendProxy::TFriendProxy
TFriendProxy()
Definition: TFriendProxy.cxx:28
ROOT::Internal::TFriendProxy::ResetReadEntry
void ResetReadEntry()
Refresh the cached read entry number from the original tree.
Definition: TFriendProxy.cxx:57
ROOT::Internal::TFriendProxy::GetReadEntry
Long64_t GetReadEntry() const
Return the entry number currently being looked at.
Definition: TFriendProxy.cxx:49
ROOT
VSD Structures.
Definition: StringConv.hxx:21
int