12#ifndef ROOT_TMethodCall
13#define ROOT_TMethodCall
64 void Execute(
const char *,
const char *,
int * = 0) { }
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); }
unsigned long long ULong64_t
#define ClassDef(name, id)
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 ResetParam()
Reset parameter list. To be used before the first call the SetParam().
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 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 Execute(const char *, const char *, int *=0)
Execute method on this object with the given parameter string, e.g.
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.
TObject * Clone(const char *newname="") const
Return an exact copy of this object.
void Execute(TMethod *, TObjArray *, int *=0)
Execute method on this object with parameters stored in the TObjArray.
Each ROOT class (see TClass) has a linked list of methods.
Mother of all ROOT objects.
const char * Data() const
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
#define org(otri, vertexptr)