34 TGlobal(DataMemberInfo_t *info =
nullptr);
47 virtual bool Update(DataMemberInfo_t *info);
55 typedef void *(*GlobalFunc_t)();
68 bool Update(DataMemberInfo_t * )
override {
return false; }
72 template <
typename GlobFunc>
76 glob->fFunctor = [&func] {
78 return (
void *)(&res);
83 template <
typename GlobFunc>
87 glob->fFunctor = functor;
#define ClassDefOverride(name, id)
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
This class defines an abstract interface that must be implemented by all classes that contain diction...
static void Add(TGlobalMappedFunction *gmf)
Add to GetEarlyRegisteredGlobals() if gROOT is not yet initialized; add to gROOT->GetListOfGlobals() ...
DeclId_t GetDeclId() const override
std::function< void *()> GlobalFunctor_t
const char * GetTypeName() const override
Get type of global variable, e,g.: "class TDirectory*" -> "TDirectory".
Int_t GetArrayDim() const override
Return number of array dimensions.
static void MakeFunctor(const char *name, const char *type, GlobFunc &func)
const char * GetFullTypeName() const override
Get full type description of global variable, e,g.: "class TDirectory*".
static TList & GetEarlyRegisteredGlobals()
Returns list collected globals Used to storeTGlobalMappedFunctions from other libs,...
bool Update(DataMemberInfo_t *) override
Update the TFunction to reflect the new info.
static void MakeFunctor(const char *name, const char *type, GlobFunc &func, GlobalFunctor_t functor)
Int_t GetMaxIndex(Int_t) const override
Return maximum index for array dimension "dim".
virtual ~TGlobalMappedFunction()=default
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
TGlobalMappedFunction & operator=(const TGlobal &)=delete
void * GetAddress() const override
Return address of global.
Global variables class (global variables are obtained from CINT).
virtual DeclId_t GetDeclId() const
virtual Int_t GetArrayDim() const
Return number of array dimensions.
virtual const char * GetTypeName() const
Get type of global variable, e,g.: "class TDirectory*" -> "TDirectory".
virtual ~TGlobal()
TGlobal dtor deletes adopted CINT DataMemberInfo object.
virtual bool Update(DataMemberInfo_t *info)
Update the TFunction to reflect the new info.
virtual Int_t GetMaxIndex(Int_t dim) const
Return maximum index for array dimension "dim".
virtual Bool_t IsValid()
Return true if this global object is pointing to a currently loaded global.
TGlobal & operator=(const TGlobal &)
Assignment operator.
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
virtual void * GetAddress() const
Return address of global.
virtual const char * GetFullTypeName() const
Get full type description of global variable, e,g.: "class TDirectory*".
const char * GetTitle() const override
Returns title of object.
ROOT top level object description.