65 Init(cl, method, params);
160 case '<': ++nested;
break;
161 case '>':
if (nested==0) {
Error(
"TMethodCall R__FindScope",
"%s is not well formed function name",
function);
return nullptr; }
170 if (!cl)
gCling->ClassInfo_Init(cinfo, scope);
236 fClass =
m ?
m->GetClass() :
nullptr;
262 ClassInfo_t *cinfo =
gCling->ClassInfo_Factory();
269 gCling->ClassInfo_Delete(cinfo);
284 ClassInfo_t *cinfo =
gCling->ClassInfo_Factory();
287 gCling->ClassInfo_Delete(cinfo);
299 const ClassInfo_t *cinfo,
311 fParams = params ? params :
"";
316 ClassInfo_t *scope =
nullptr;
318 else scope = (ClassInfo_t*)cinfo;
323 if (params && params[0]) {
324 gCling->CallFunc_SetFunc(
fFunc, scope, (
char *)methodname, (
char *)params, objectIsConst, &
fOffset);
344 ClassInfo_t *cinfo =
gCling->ClassInfo_Factory();
351 gCling->ClassInfo_Delete(cinfo);
366 ClassInfo_t *cinfo =
gCling->ClassInfo_Factory();
369 gCling->ClassInfo_Delete(cinfo);
425 void *address =
nullptr;
428 Error(
"Execute",
"TMethodCall can no longer be use to call the operator delete and the destructor at the same time");
443 void *address =
nullptr;
457 void *address =
nullptr;
474 void *address =
nullptr;
488 void *address =
nullptr;
491 retDouble =
gCling->CallFunc_ExecDouble(
fFunc,address);
504 void *address =
nullptr;
507 retDouble =
gCling->CallFunc_ExecDouble(
fFunc,address);
518 void *address =
nullptr;
521 *retText =(
char*) (
gCling->CallFunc_ExecInt(
fFunc,address));
535 void *address =
nullptr;
538 *retText =(
char*)(
gCling->CallFunc_ExecInt(
fFunc,address));
556 gCling->CallFunc_ExecWithArgsAndReturn(
fFunc,objAddress,args,nargs,ret);
569 if (func ==
nullptr) {
571 Error(
"ReturnType",
"Unknown method");
unsigned long long ULong64_t
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
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 mode
R__EXTERN TVirtualMutex * gInterpreterMutex
R__EXTERN TInterpreter * gCling
static TClass * R__FindScope(const char *function, UInt_t &pos, ClassInfo_t *cinfo)
Helper function to find the scope associated with a qualified function name.
#define R__LOCKGUARD(mutex)
TClass instances represent classes, structs and namespaces in the ROOT type system.
ClassInfo_t * GetClassInfo() const
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.
Global functions class (global functions are obtained from CINT).
Method or function calling interface.
EReturnType ReturnType()
Returns the return type of the method.
TMethodCall()
Default TMethodCall ctor.
TMethodCall & operator=(const TMethodCall &rhs)
Assignment operator.
~TMethodCall()
TMethodCall dtor.
void ResetParam()
Reset parameter list. To be used before the first call the SetParam().
TObject * Clone(const char *newname="") const override
Return an exact copy of this object.
static const EReturnType kOther
TFunction * GetMethod()
Returns the TMethod describing the method to be executed.
static const EReturnType kNone
void Init(const TFunction *func)
Initialize the method invocation environment based on the TFunction object.
void InitImplementation(const char *methodname, const char *params, const char *proto, Bool_t objectIsConst, TClass *cl, const ClassInfo_t *cinfo, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
This function implements Init and InitWithPrototype.
TInterpreter::EReturnType EReturnType
Bool_t IsValid() const
Return true if the method call has been properly initialized and is usable.
void InitWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Initialize the method invocation environment.
void SetParam(Long_t l)
Add a long method parameter.
void SetParamPtrs(void *paramArr, Int_t nparam=-1)
ParamArr is an array containing the function argument values.
Each ROOT class (see TClass) has a linked list of methods.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TObject()
TObject constructor.