12 #ifndef ROOT_TFormLeafInfo
13 #define ROOT_TFormLeafInfo
19 #ifndef ROOT_TLeafElement
30 #define DECLARE_GETVAL \
31 virtual Double_t GetValue(TLeaf *leaf, Int_t instance = 0) \
32 { return GetValueImpl<Double_t>(leaf, instance); } \
33 virtual Long64_t GetValueLong64(TLeaf *leaf, Int_t instance = 0) \
34 { return GetValueImpl<Long64_t>(leaf, instance); } \
35 virtual LongDouble_t GetValueLongDouble(TLeaf *leaf, Int_t instance = 0) \
36 { return GetValueImpl<LongDouble_t>(leaf, instance); } \
37 template<typename T> T GetValueImpl(TLeaf *leaf, Int_t instance = 0) // no semicolon
41 #define DECLARE_READVAL \
42 virtual Double_t ReadValue(char *where, Int_t instance = 0) \
43 { return ReadValueImpl<Double_t>(where, instance); } \
44 virtual Long64_t ReadValueLong64(char *where, Int_t instance = 0) \
45 { return ReadValueImpl<Long64_t>(where, instance); } \
46 virtual LongDouble_t ReadValueLongDouble(char *where, Int_t instance = 0) \
47 { return ReadValueImpl<LongDouble_t>(where, instance); } \
48 template<typename T> T ReadValueImpl(char *where, Int_t instance = 0) // no semicolon
127 return leaf->ReadValue(where, instance);
136 return linfo->GetValue(leaf, instance);
283 TClass* elementclassptr = 0,
407 TStreamerElement* element) :
TFormLeafInfo(classptr,offset,element),
fNsize(0),
fSizes(),
fCounter2(0),
fSumOfSizes(0),
fDim(0),
fVirtDim(0),
fPrimaryIndex(-1),
fSecondaryIndex(-1) {}
545 using TFormLeafInfo::GetValue;
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Array of integers (32 bits per element).
Method or function calling interface.
The ROOT global object gROOT contains a list of all defined classes.
A TLeaf for the general case when using the branches created via a TStreamerInfo (i.e.
A Branch for the case of an object.
unsigned long long ULong64_t
Mother of all ROOT objects.
A TTree object has a header with a name and a title.
A TTree is a list of TBranches.