60#define INSTANTIATE_READVAL(CLASS) \
61 template Double_t CLASS::ReadValueImpl<Double_t>(char*, Int_t); \
62 template Long64_t CLASS::ReadValueImpl<Long64_t>(char*, Int_t); \
63 template LongDouble_t CLASS::ReadValueImpl<LongDouble_t>(char*, Int_t)
66#define INSTANTIATE_GETVAL(CLASS) \
67 template Double_t CLASS::GetValueImpl<Double_t>(TLeaf*, Int_t); \
68 template Long64_t CLASS::GetValueImpl<Long64_t>(TLeaf*, Int_t); \
69 template LongDouble_t CLASS::GetValueImpl<LongDouble_t>(TLeaf*, Int_t)
77 fCounter(nullptr), fNext(nullptr),fMultiplicity(0)
116 other.fClassName = tmp;
120 other.fElementName = tmp;
190 if (
branch->GetTree()->GetMakeClass()) {
192 return branch->GetAddress();
194 return branch->GetObject();
201 offset =
info->TStreamerInfo::GetElementOffset(
id);
203 char* address =
nullptr;
205 if (
branch->GetTree()->GetMakeClass()) {
207 address = (
char*)
branch->GetAddress();
209 address = (
char*)
branch->GetObject();
219 type =
info->TStreamerInfo::GetElement(
id)->GetNewType();
227 Error(
"GetValuePointer",
"Type (%d) not yet supported\n",
type);
556 cl =
element->GetClassPointer();
559 current = &(
work[0]);
698#define GET_ARRAY(TYPE_t) \
700 Int_t len, sub_instance, index; \
701 if (fNext) len = fNext->GetArrayLength(); \
704 index = instance / len; \
705 sub_instance = instance % len; \
710 TYPE_t **val = (TYPE_t**)(thisobj+fOffset); \
711 return &((val[sub_instance])[index]); \
782 default:
return nullptr;
799 if (
thisobj==
nullptr)
return 0;
813 Error(
"ReadValue",
"Invalid data address: result will be wrong");
886#if defined(_MSC_VER) && (_MSC_VER <= 1200)
894#define READ_ARRAY(TYPE_t) \
896 Int_t len, sub_instance, index; \
897 len = GetArrayLength(); \
899 index = instance / len; \
900 sub_instance = instance % len; \
905 TYPE_t **val =(TYPE_t**)(thisobj+fOffset); \
906 return T((val[sub_instance])[index]); \
924#if defined(_MSC_VER) && (_MSC_VER <= 1200)
945 from->GetInfo()->GetElement(from->GetID()))
962 Error(
"ReadValue",
"Should not be used in a TFormLeafInfoDirect");
983 return leaf->GetValuePointer();
1006 fKind(kind), fIsBool(
false)
1022 if (
strcmp(
collection->GetCollectionClass()->GetName(),
"vector<bool>") == 0
1200template <
typename T>
1203 if (
fNext==
nullptr)
return 0;
1254template <
typename T>
1257 if (
fNext==
nullptr)
return 0;
1272 if (
clones==
nullptr)
return 0;
1414template <
typename T>
1419 if (
fNext==
nullptr)
return 0;
1462 fCollClass( nullptr),
1463 fCollProxy( nullptr),
1464 fLocalElement( nullptr)
1498 fCollClass( nullptr),
1499 fCollProxy( nullptr) ,
1500 fLocalElement( fElement )
1522 fCollClass( nullptr),
1523 fCollProxy( nullptr),
1524 fLocalElement( nullptr)
1534 fCollClass(
orig.fCollClass ),
1535 fCollClassName(
orig.fCollClassName ),
1536 fCollProxy(
orig.fCollProxy ?
orig.fCollProxy->Generate() : nullptr ),
1537 fLocalElement( nullptr )
1619 if (ptr==
nullptr)
return 0;
1631 if (
where==
nullptr)
return 0;
1647 if (ptr==
nullptr)
return 0;
1656template <
typename T>
1659 if (
fNext==
nullptr)
return 0;
1719template <
typename T>
1722 if (
fNext==
nullptr)
return 0;
1744 if (obj==
nullptr)
return 0;
1746 if (obj==
nullptr)
return 0;
1859 fCollClass(
orig.fCollClass),
1860 fCollClassName(
orig.fCollClassName),
1861 fCollProxy(
orig.fCollProxy?
orig.fCollProxy->Generate():nullptr)
1927 Error(
"GetValuePointer",
"This should never be called");
1936 Error(
"GetValuePointer",
"This should never be called");
1945 Error(
"GetLocalValuePointer",
"This should never be called");
1954 Error(
"GetLocalValuePointer",
"This should never be called");
1964 if (
where==
nullptr)
return 0;
1996template <
typename T>
1999 if (!
fNext)
return 0;
2064template <
typename T>
2067 if (!
fNext)
return 0;
2069 if (
where==
nullptr)
return 0;
2087 fResult(0), fCopyFormat(),fDeleteFormat(),fValuePointer(nullptr),fIsByValue(
false)
2189 if (!
mc || !
mc->GetMethod())
2194 if (0 ==
strcmp(
mc->GetMethod()->GetReturnTypeName(),
"void"))
2236 }
else return false;
2330template <
typename T>
2383 fDim(0),fVirtDim(-1),fPrimaryIndex(-1),fSecondaryIndex(-1)
2390 if (!parent)
return;
2393 while(*next !=
nullptr) next = &( (*next)->fNext);
2396 }
else Error(
"Constructor",
"Called without a proper TStreamerElement");
2403 TFormLeafInfo(nullptr,0,nullptr),fNsize(0),fCounter2(nullptr),fSumOfSizes(0),
2404 fDim(0),fVirtDim(-1),fPrimaryIndex(-1),fSecondaryIndex(-1)
2490 fNsize =
br->GetBranchCount()->GetNdata();
2559 Error(
"GetValue",
"This should never be called");
2626template <
typename T>
2639 Error(
"ReadValue",
"This should never be called");
2673 while(*next !=
nullptr) next = &( (*next)->fNext);
2691 while(*next !=
nullptr) next = &( (*next)->fNext);
2709 Error(
"GetValue",
"This should never be called");
2736template <
typename T>
2783 while(*next !=
nullptr) next = &( (*next)->fNext);
2801 while(*next !=
nullptr) next = &( (*next)->fNext);
2819 Error(
"GetValue",
"This should never be called");
2849template <
typename T>
2943template <
typename T>
2946 if (!
fNext)
return 0;
3025template <
typename T>
3034template <
typename T>
static Roo_reg_AGKInteg1D instance
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
#define READ_ARRAY(TYPE_t)
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
#define R__WRITE_LOCKGUARD(mutex)
Array of integers (32 bits per element).
void Set(Int_t n) override
Set size of this array to n ints.
void AddAt(Int_t c, Int_t i)
Add Int_t c at position i. Check for out of bounds.
A Branch for the case of an object.
A TTree is a list of TBranches.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Int_t Size() const
Return size of object of this class.
Bool_t IsLoaded() const
Return true if the shared library of this class is currently in the a process's memory.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0, Bool_t isTransient=kFALSE) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist,...
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
An array of clone (identical) objects.
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
const char * GetReturnTypeName() const
Get full type description of function return type, e,g.: "class TDirectory*".
A TLeaf for the general case when using the branches created via a TStreamerInfo (i....
A TLeaf for a general object derived from TObject.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Method or function calling interface.
EReturnType ReturnType()
Returns the return type of the method.
static const EReturnType kLong
static const EReturnType kString
static const EReturnType kOther
TFunction * GetMethod()
Returns the TMethod describing the method to be executed.
void Execute(const char *, const char *, int *=nullptr) override
Execute method on this object with the given parameter string, e.g.
void Init(const TFunction *func)
Initialize the method invocation environment based on the TFunction object.
static const EReturnType kDouble
const char * GetName() const override
Returns name of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
Int_t GetArrayLength() const
TClass * IsA() const override
Describes a persistent version of a class.
const char * Data() const
TString & Append(const char *cs)
A TTree represents a columnar dataset.
virtual TTree * GetFriend(const char *) const
Return a pointer to the TTree friend whose name or alias is friendname.
RAII helper class that ensures that PushProxy() / PopProxy() are called when entering / leaving a C++...
Defines a common interface to inspect/change the contents of an object that represents a collection.
virtual void * At(UInt_t idx)=0
Return the address of the value at index idx
virtual UInt_t Size() const =0
Return the current number of elements in the container.
virtual TVirtualCollectionProxy * Generate() const =0
Returns a clean object of the actual class that derives from TVirtualCollectionProxy.
virtual Bool_t HasPointers() const =0
Return true if the content is of type 'pointer to'.
@ kUChar
Equal to TDataType's kchar.
R__EXTERN TVirtualRWMutex * gCoreMutex
void GetNormalizedName(std::string &norm_name, std::string_view name)
Return the normalized name.