12#ifndef ROOT_TMethodCall
13#define ROOT_TMethodCall
64 void Execute(
const char *,
const char *,
int * =
nullptr)
override { }
104 template <
typename... T>
void SetParams(
const T&... params) {
110 void Execute(
void *
object,
const char *params);
116 void Execute(
void *
object,
char **retText);
117 void Execute(
void *
object,
const char *params,
char **retText);
120 void Execute(
const char *params);
126 void Execute(
void *objAddress,
const void* args[],
int nargs,
void *ret =
nullptr);
134 {
Execute((
void *)0, params); }
136 {
Execute((
void *)0, retLong); }
138 {
Execute((
void *)0, params, retLong); }
140 {
Execute((
void *)0, retDouble); }
142 {
Execute((
void *)0, params, retDouble); }
unsigned long long ULong64_t
#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 offset
Option_t Option_t TPoint TPoint const char mode
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 org
TClass instances represent classes, structs and namespaces in the ROOT type system.
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.
void CallDtorOnly(Bool_t set=kTRUE)
TMethodCall & operator=(const TMethodCall &rhs)
Assignment operator.
~TMethodCall()
TMethodCall dtor.
static const EReturnType kLong
const char * GetMethodName() const
static const EReturnType kNoReturnType
static const EReturnType kString
void Execute(TMethod *, TObjArray *, int *=nullptr) override
Execute method on this object with parameters stored in the TObjArray.
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
const char * GetParams() const
CallFunc_t * GetCallFunc() const
TFunction * GetMethod()
Returns the TMethod describing the method to be executed.
const char * GetProto() const
static const EReturnType kNone
void Execute(const char *, const char *, int *=nullptr) override
Execute method on this object with the given parameter string, e.g.
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 SetParams(const T &... params)
void InitWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Initialize the method invocation environment.
static const EReturnType kDouble
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.
Mother of all ROOT objects.
const char * Data() const