55 fInfo = gCling->MethodInfo_FactoryCopy(orig.fInfo);
56 fMangledName = orig.fMangledName;
104 if (newname && strlen(newname)) newobj->
SetName(newname);
138 Fatal(
"GetListOfMethodArgs",
"gInterpreter not initialized");
152 if (
fInfo ==
nullptr ||
gCling->MethodInfo_Type(
fInfo) ==
nullptr)
return "Unknown";
166 if (
fInfo ==
nullptr ||
gCling->MethodInfo_Type(
fInfo) ==
nullptr)
return "Unknown";
167 return gCling->MethodInfo_TypeNormalizedName(
fInfo);
240 MethodInfo_t *info =
gInterpreter->MethodInfo_Factory(newId);
243 return newId !=
nullptr;
245 return fInfo !=
nullptr;
299 if (info ==
nullptr) {
322 Error(
"Update",
"TFunction object updated with the 'wrong' MethodInfo (%s vs %s).",
331 MethodArgInfo_t *arg =
gCling->MethodArgInfo_Factory(
fInfo);
333 while (
gCling->MethodArgInfo_Next(arg)) {
334 if (
gCling->MethodArgInfo_IsValid(arg)) {
335 MethodArgInfo_t *new_arg =
gCling->MethodArgInfo_FactoryCopy(arg);
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).
const char Option_t
Option string (const char).
externTInterpreter * gCling
externTVirtualMutex * gInterpreterMutex
#define R__LOCKGUARD(mutex)
Bool_t UpdateInterpreterStateMarker()
virtual const char * GetMangledName() const
Returns the mangled name as defined by CINT, or 0 in case of error.
virtual void CreateSignature()
Using the CINT method arg information to create a complete signature string.
virtual const char * GetPrototype() const
Returns the prototype of a function as defined by CINT, or 0 in case of error.
TFunction(MethodInfo_t *info=nullptr)
Default TFunction ctor.
void * InterfaceMethod() const
Return pointer to the interface method.
virtual Bool_t IsValid()
Return true if this function object is pointing to a currently loaded function.
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
const char * GetSignature()
Return signature of function.
TObject * Clone(const char *newname="") const override
Clone method.
void Print(Option_t *option="") const override
Print TFunction name and title.
virtual bool Update(MethodInfo_t *info)
Update the TFunction to reflect the new info.
Int_t GetNargsOpt() const
Number of function optional (default) arguments.
Int_t GetNargs() const
Number of function arguments.
DeclId_t GetDeclId() const
Long_t ExtraProperty() const
Get property description word. For meaning of bits see EProperty.
TList * GetListOfMethodArgs()
Return list containing the TMethodArgs of a TFunction.
virtual ~TFunction()
TFunction dtor deletes adopted CINT MethodInfo.
TFunction & operator=(const TFunction &rhs)
Assignment operator.
const char * GetReturnTypeName() const
Get full type description of function return type, e,g.: "class TDirectory*".
void ls(Option_t *option="") const override
List TFunction name and title.
std::string GetReturnTypeNormalizedName() const
Get the normalized name of the return type.
Each ROOT method (see TMethod) has a linked list of its arguments.
void Update(MethodArgInfo_t *info)
Update fInfo (to 0 for unloading and non-zero for reloading).
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
void Print(Option_t *option="") const override
Print TNamed name and title.
virtual void SetName(const char *name)
Set the name of the TNamed.
void ls(Option_t *option="") const override
List TNamed name and title.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
TObject()
TObject constructor.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
const char * Data() const