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 ClassDef(name, id)
 
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
 
TGlobalMappedFunction(const char *name, const char *type, GlobalFunc_t funcPtr)
Constructor.
 
const char * GetTypeName() const override
Get type of global variable, e,g.
 
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.
 
TGlobal(DataMemberInfo_t *info=nullptr)
pointer to CINT data member info
 
virtual const char * GetTypeName() const
Get type of global variable, e,g.
 
virtual ~TGlobal()
TGlobal dtor deletes adopted CINT DataMemberInfo object.
 
virtual bool Update(DataMemberInfo_t *info)
Update the TFunction to reflect the new info.
 
virtual Long_t Property() const
Get property description word. For meaning of bits see EProperty.
 
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.
 
virtual void * GetAddress() const
Return address of global.
 
virtual const char * GetFullTypeName() const
Get full type description of global variable, e,g.: "class TDirectory*".
 
virtual const char * GetTitle() const
Returns title of object.
 
ROOT top level object description.
 
void function(const Char_t *name_, T fun, const Char_t *docstring=0)