Logo ROOT   6.08/07
Reference Guide
TLeafElement.cxx
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Rene Brun 14/01/2001
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, 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 /** \class TLeafElement
13 \ingroup tree
14 
15 A TLeaf for the general case when using the branches created via
16 a TStreamerInfo (i.e. using TBranchElement).
17 */
18 
19 #include "TLeafElement.h"
20 //#include "TMethodCall.h"
21 
23 
24 ////////////////////////////////////////////////////////////////////////////////
25 /// Default constructor for LeafObject.
26 
28 {
29  fAbsAddress = 0;
30  fID = -1;
31  fType = -1;
32 }
33 
34 ////////////////////////////////////////////////////////////////////////////////
35 /// Create a LeafObject.
36 
38  :TLeaf(parent, name,name)
39 {
40  fAbsAddress = 0;
41  fID = id;
42  fType = type;
43 }
44 
45 ////////////////////////////////////////////////////////////////////////////////
46 /// Default destructor for a LeafObject.
47 
49 {
50 }
51 
52 ////////////////////////////////////////////////////////////////////////////////
53 /// Returns pointer to method corresponding to name name is a string
54 /// with the general form "method(list of params)" If list of params is
55 /// omitted, () is assumed;
56 
58 {
59  return 0;
60 }
61 
62 ////////////////////////////////////////////////////////////////////////////////
63 /// Return true if this leaf is does not have any sub-branch/leaf.
64 
66 {
68  return kTRUE;
69 }
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Definition: TLeaf.h:37
TMethodCall * GetMethodCall(const char *name)
Returns pointer to method corresponding to name name is a string with the general form "method(list o...
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual Bool_t IsOnTerminalBranch() const
Return true if this leaf is does not have any sub-branch/leaf.
Int_t fID
element serial number in fInfo
Definition: TLeafElement.h:38
TObjArray * GetListOfBranches()
Definition: TBranch.h:178
XFontStruct * id
Definition: TGX11.cxx:108
Method or function calling interface.
Definition: TMethodCall.h:41
TLeafElement()
Default constructor for LeafObject.
Int_t fType
leaf type
Definition: TLeafElement.h:39
Int_t GetEntriesFast() const
Definition: TObjArray.h:66
A TLeaf for the general case when using the branches created via a TStreamerInfo (i.e.
Definition: TLeafElement.h:34
PyObject * fType
#define ClassImp(name)
Definition: Rtypes.h:279
int type
Definition: TGX11.cxx:120
virtual ~TLeafElement()
Default destructor for a LeafObject.
TBranch * fBranch
! Pointer to supporting branch (we do not own the branch)
Definition: TLeaf.h:48
char * fAbsAddress
! Absolute leaf Address
Definition: TLeafElement.h:37
A TTree is a list of TBranches.
Definition: TBranch.h:58
const Bool_t kTRUE
Definition: Rtypes.h:91
char name[80]
Definition: TGX11.cxx:109