TFriendElement


class description - source file - inheritance tree

class TFriendElement : public TNamed

    private:
public:
TFriendElement TFriendElement() TFriendElement TFriendElement(TTree* tree, const char* treename, const char* filename) TFriendElement TFriendElement(TFriendElement&) virtual void ~TFriendElement() static TClass* Class() virtual TTree* Connect() virtual TTree* DisConnect() virtual TFile* GetFile() virtual TTree* GetParentTree() const virtual TTree* GetTree() virtual const char* GetTreeName() const virtual TClass* IsA() const virtual void ls(Option_t* option) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

private:
protected:
TTree* fParentTree !pointer to the parent TTree TTree* fTree !pointer to the TTree described by this element TFile* fFile !pointer to the file containing the friend Tree TString fTreeName name of the friend Tree public:

Class Description

                                                                      
 TFriendElement                                                       
                                                                      
 A TFriendElement TF describes a TTree object TF in a file.           
 When a TFriendElement TF is added to the the list of friends of an   
 existing TTree T, any variable from TF can be referenced in a query  
 to T.                                                                
                                                                      
 To add a TFriendElement to an existing TTree T, do:                  
       T.AddFriend("friendTreename","friendTreeFile");               
                                                                      
  see TTree::AddFriend for more information                           
                                                                      


TFriendElement(): TNamed()
*-*-*-*-*-*Default constructor for a friend element*-*-*-*-*-*-*-*-*-*-*-*-*
*-*        =======================================

TFriendElement(TTree *tree, const char *treename, const char *filename) :TNamed(treename,filename)
*-*-*-*-*-*-*-*-*-*-*-*-*Create a friend element*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      ======================

 if treename is of the form "a=b", an alias called "a" is created for treename = "b"
 by default the alias name is the name of the tree.

~TFriendElement()

TTree* Connect()
 Connect file and Tree

TTree* DisConnect()
 DisConnect file and Tree

TFile* GetFile()
 return pointer to TFile containing this friend Tree

TTree* GetTree()
 return pointer to friend Tree

void ls(Option_t *option) const
 List this friend element




Inline Functions


                TTree* GetParentTree() const
           const char* GetTreeName() const
               TClass* Class()
               TClass* IsA() const
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                  void StreamerNVirtual(TBuffer& b)
        TFriendElement TFriendElement(TFriendElement&)


Author: Rene Brun 11/02/97
Last update: root/tree:$Name: $:$Id: TFriendElement.cxx,v 1.4 2001/06/07 08:40:13 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.