12 #ifndef ROOT_TMethodCall 13 #define ROOT_TMethodCall 64 void Execute(
const char *,
const char *,
int * = 0) { }
73 TMethodCall(
const char *
function,
const char *params);
82 void Init(
const char *
function,
const char *params);
110 void Execute(
void *
object,
const char *params);
112 void Execute(
void *
object,
const char *params,
Long_t &retLong);
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 = 0);
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); }
void Execute(TMethod *, TObjArray *, int *=0)
Execute method on this object with parameters stored in the TObjArray.
static const EReturnType kOther
TMethodCall()
Default TMethodCall ctor.
CallFunc_t * GetCallFunc() const
static const EReturnType kLong
static const EReturnType kString
void SetParamPtrs(void *paramArr, Int_t nparam=-1)
ParamArr is an array containing the function argument values.
#define ClassDef(name, id)
void Init(const TFunction *func)
Initialize the method invocation environment based on the TFunction object.
~TMethodCall()
TMethodCall dtor.
static const EReturnType kDouble
Method or function calling interface.
const char * GetMethodName() const
TObject * Clone(const char *newname="") const
Return an exact copy of this object.
The ROOT global object gROOT contains a list of all defined classes.
const char * GetProto() const
Bool_t IsValid() const
Return true if the method call has been properly initialized and is usable.
static const EReturnType kNoReturnType
const char * GetParams() const
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.
TFunction * GetMethod()
Returns the TMethod describing the method to be executed.
void ResetParam()
Reset parameter list. To be used before the first call the SetParam().
unsigned long long ULong64_t
double func(double *x, double *p)
#define org(otri, vertexptr)
Mother of all ROOT objects.
Global functions class (global functions are obtained from CINT).
void CallDtorOnly(Bool_t set=kTRUE)
void Execute(const char *, const char *, int *=0)
Execute method on this object with the given parameter string, e.g.
Each ROOT class (see TClass) has a linked list of methods.
void SetParam(Long_t l)
Add a long method parameter.
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.
static const EReturnType kNone
TMethodCall & operator=(const TMethodCall &rhs)
Assignment operator.
EReturnType ReturnType()
Returns the return type of the method.
const char * Data() const