// @(#)root/treeplayer:$Id$
// Author: Philippe Canal 01/06/2004

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al.        *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TFriendProxy
#define ROOT_TFriendProxy

#ifndef ROOT_TBranchProxyDirector
#include "TBranchProxyDirector.h"
#endif

class TTree;

namespace ROOT {

   class TFriendProxy {
   protected:
      TBranchProxyDirector fDirector; // contain pointer to TTree and entry to be read
      Int_t  fIndex; // Index of this tree in the list of friends

   public:
      TFriendProxy();
      TFriendProxy(TBranchProxyDirector *director, TTree *main, Int_t index);

      Long64_t GetReadEntry() const;
      void     ResetReadEntry();
      void     Update(TTree *newmain);
   };

}

#endif
 TFriendProxy.h:1
 TFriendProxy.h:2
 TFriendProxy.h:3
 TFriendProxy.h:4
 TFriendProxy.h:5
 TFriendProxy.h:6
 TFriendProxy.h:7
 TFriendProxy.h:8
 TFriendProxy.h:9
 TFriendProxy.h:10
 TFriendProxy.h:11
 TFriendProxy.h:12
 TFriendProxy.h:13
 TFriendProxy.h:14
 TFriendProxy.h:15
 TFriendProxy.h:16
 TFriendProxy.h:17
 TFriendProxy.h:18
 TFriendProxy.h:19
 TFriendProxy.h:20
 TFriendProxy.h:21
 TFriendProxy.h:22
 TFriendProxy.h:23
 TFriendProxy.h:24
 TFriendProxy.h:25
 TFriendProxy.h:26
 TFriendProxy.h:27
 TFriendProxy.h:28
 TFriendProxy.h:29
 TFriendProxy.h:30
 TFriendProxy.h:31
 TFriendProxy.h:32
 TFriendProxy.h:33
 TFriendProxy.h:34
 TFriendProxy.h:35
 TFriendProxy.h:36
 TFriendProxy.h:37
 TFriendProxy.h:38
 TFriendProxy.h:39