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;
int Int_t
Signed integer 4 bytes (int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
#define ClassDefOverride(name, id)
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
TGlobalMappedFunction(const char *name, const char *type, GlobalFunc_t funcPtr)
Constructor.
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.
virtual DeclId_t GetDeclId() const
virtual Int_t GetArrayDim() const
Return number of array dimensions.
TGlobal(DataMemberInfo_t *info=nullptr)
Default TGlobal ctor.
virtual const char * GetTypeName() const
Get type of global variable, e,g.: "class TDirectory*" -> "TDirectory".
virtual ~TGlobal()
TGlobal dtor deletes adopted CINT DataMemberInfo object.
DataMemberInfo_t * fInfo
!pointer to CINT data member info
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.