ROOT  6.06/09
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 A TLeaf for the general case when using the branches created via
14 a TStreamerInfo (i.e. using TBranchElement).
15 */
16 
17 #include "TLeafElement.h"
18 //#include "TMethodCall.h"
19 
21 
22 ////////////////////////////////////////////////////////////////////////////////
23 /// Default constructor for LeafObject.
24 
26 {
27  fAbsAddress = 0;
28  fID = -1;
29  fType = -1;
30 }
31 
32 ////////////////////////////////////////////////////////////////////////////////
33 /// Create a LeafObject.
34 
36  :TLeaf(parent, name,name)
37 {
38  fAbsAddress = 0;
39  fID = id;
40  fType = type;
41 }
42 
43 ////////////////////////////////////////////////////////////////////////////////
44 /// Default destructor for a LeafObject.
45 
47 {
48 }
49 
50 ////////////////////////////////////////////////////////////////////////////////
51 /// Returns pointer to method corresponding to name name is a string
52 /// with the general form "method(list of params)" If list of params is
53 /// omitted, () is assumed;
54 
56 {
57  return 0;
58 }
59 
60 ////////////////////////////////////////////////////////////////////////////////
61 /// Return true if this leaf is does not have any sub-branch/leaf.
62 
64 {
66  return kTRUE;
67 }
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Definition: TLeaf.h:37
virtual Bool_t IsOnTerminalBranch() const
Return true if this leaf is does not have any sub-branch/leaf.
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
Int_t GetEntriesFast() const
Definition: TObjArray.h:66
Int_t fID
Absolute leaf Address.
Definition: TLeafElement.h:38
TObjArray * GetListOfBranches()
Definition: TBranch.h:177
XFontStruct * id
Definition: TGX11.cxx:108
Method or function calling interface.
Definition: TMethodCall.h:41
ClassImp(TLeafElement) TLeafElement
Default constructor for LeafObject.
A TLeaf for the general case when using the branches created via a TStreamerInfo (i.e.
Definition: TLeafElement.h:34
PyObject * fType
int type
Definition: TGX11.cxx:120
virtual ~TLeafElement()
Default destructor for a LeafObject.
#define name(a, b)
Definition: linkTestLib0.cpp:5
TBranch * fBranch
Definition: TLeaf.h:48
char * fAbsAddress
Definition: TLeafElement.h:37
A TTree is a list of TBranches.
Definition: TBranch.h:58
const Bool_t kTRUE
Definition: Rtypes.h:91