ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TInterpreter.h
Go to the documentation of this file.
1 // @(#)root/meta:$Id$
2 // Author: Fons Rademakers 01/03/96
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 
13 #ifndef ROOT_TInterpreter
14 #define ROOT_TInterpreter
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TInterpreter //
19 // //
20 // This class defines an abstract interface to a generic command line //
21 // interpreter. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #ifndef ROOT_TDictionary
26 #include "TDictionary.h"
27 #endif
28 
29 #ifndef ROOT_TVirtualMutex
30 #include "TVirtualMutex.h"
31 #endif
32 
33 #ifndef ROOT_Rtypeinfo
34 #include "Rtypeinfo.h"
35 #endif
36 
37 #include <vector>
38 
39 class TClass;
40 class TEnv;
41 class TFunction;
42 class TInterpreterValue;
43 class TMethod;
44 class TObjArray;
45 class TEnum;
47 
49 
50 class TInterpreter : public TNamed {
51 
52 protected:
53  virtual void Execute(TMethod *method, TObjArray *params, int *error = 0) = 0;
54  virtual Bool_t SetSuspendAutoParsing(Bool_t value) = 0;
55 
56  friend class SuspendAutoParsing;
57 
58 public:
59  enum EErrorCode {
60  kNoError = 0,
63  kFatal = 3,
65  };
66 
68 
70  enum EKind {
75  };
76 
77  typedef void (*Generic_t)(void*, int, void**, void*);
78  typedef void (*Ctor_t)(void**, void*, unsigned long);
79  typedef void (*Dtor_t)(void*, unsigned long, int);
80 
84  fKind(kGeneric), fGeneric(func) {}
86  fKind(kCtor), fCtor(func) {}
88  fKind(kDtor), fDtor(func) {}
89 
91  union {
95  };
96  };
97 
101  public:
104  };
105  virtual Bool_t IsAutoParsingSuspended() const = 0;
106 
107  typedef int (*AutoLoadCallBack_t)(const char*);
108  typedef std::vector<std::pair<std::string, int> > FwdDeclArgsToKeepCollection_t;
109 
110  TInterpreter() { } // for Dictionary
111  TInterpreter(const char *name, const char *title = "Generic Interpreter");
112  virtual ~TInterpreter() { }
113 
114  virtual void AddIncludePath(const char *path) = 0;
115  virtual void *SetAutoLoadCallBack(void* /*cb*/) { return 0; }
116  virtual void *GetAutoLoadCallBack() const { return 0; }
117  virtual Int_t AutoLoad(const char *classname, Bool_t knowDictNotLoaded = kFALSE) = 0;
118  virtual Int_t AutoLoad(const std::type_info& typeinfo, Bool_t knowDictNotLoaded = kFALSE) = 0;
119  virtual Int_t AutoParse(const char* cls) = 0;
120  virtual void ClearFileBusy() = 0;
121  virtual void ClearStack() = 0; // Delete existing temporary values
122  virtual Bool_t Declare(const char* code) = 0;
123  virtual void EnableAutoLoading() = 0;
124  virtual void EndOfLineAction() = 0;
125  virtual TClass *GetClass(const std::type_info& typeinfo, Bool_t load) const = 0;
126  virtual Int_t GetExitCode() const = 0;
127  virtual TEnv *GetMapfile() const { return 0; }
128  virtual Int_t GetMore() const = 0;
129  virtual TClass *GenerateTClass(const char *classname, Bool_t emulation, Bool_t silent = kFALSE) = 0;
130  virtual TClass *GenerateTClass(ClassInfo_t *classinfo, Bool_t silent = kFALSE) = 0;
131  virtual Int_t GenerateDictionary(const char *classes, const char *includes = 0, const char *options = 0) = 0;
132  virtual char *GetPrompt() = 0;
133  virtual const char *GetSharedLibs() = 0;
134  virtual const char *GetClassSharedLibs(const char *cls) = 0;
135  virtual const char *GetSharedLibDeps(const char *lib) = 0;
136  virtual const char *GetIncludePath() = 0;
137  virtual const char *GetSTLIncludePath() const { return ""; }
138  virtual TObjArray *GetRootMapFiles() const = 0;
139  virtual void Initialize() = 0;
140  virtual void InspectMembers(TMemberInspector&, const void* obj, const TClass* cl, Bool_t isTransient) = 0;
141  virtual Bool_t IsLoaded(const char *filename) const = 0;
142  virtual Int_t Load(const char *filenam, Bool_t system = kFALSE) = 0;
143  virtual void LoadMacro(const char *filename, EErrorCode *error = 0) = 0;
144  virtual Int_t LoadLibraryMap(const char *rootmapfile = 0) = 0;
145  virtual Int_t RescanLibraryMap() = 0;
146  virtual Int_t ReloadAllSharedLibraryMaps() = 0;
147  virtual Int_t UnloadAllSharedLibraryMaps() = 0;
148  virtual Int_t UnloadLibraryMap(const char *library) = 0;
149  virtual Long_t ProcessLine(const char *line, EErrorCode *error = 0) = 0;
150  virtual Long_t ProcessLineSynch(const char *line, EErrorCode *error = 0) = 0;
151  virtual void PrintIntro() = 0;
152  virtual void RegisterModule(const char* /*modulename*/,
153  const char** /*headers*/,
154  const char** /*includePaths*/,
155  const char* /*payloadCode*/,
156  const char* /*fwdDeclsCode*/,
157  void (* /*triggerFunc*/)(),
158  const FwdDeclArgsToKeepCollection_t& fwdDeclArgsToKeep,
159  const char** classesHeaders) = 0;
160  virtual void RegisterTClassUpdate(TClass *oldcl,DictFuncPtr_t dict) = 0;
161  virtual void UnRegisterTClassUpdate(const TClass *oldcl) = 0;
162  virtual Int_t SetClassSharedLibs(const char *cls, const char *libs) = 0;
163  virtual void SetGetline(const char*(*getlineFunc)(const char* prompt),
164  void (*histaddFunc)(const char* line)) = 0;
165  virtual void Reset() = 0;
166  virtual void ResetAll() = 0;
167  virtual void ResetGlobals() = 0;
168  virtual void ResetGlobalVar(void *obj) = 0;
169  virtual void RewindDictionary() = 0;
170  virtual Int_t DeleteGlobal(void *obj) = 0;
171  virtual Int_t DeleteVariable(const char* name) = 0;
172  virtual void SaveContext() = 0;
173  virtual void SaveGlobalsContext() = 0;
174  virtual void UpdateListOfGlobals() = 0;
175  virtual void UpdateListOfGlobalFunctions() = 0;
176  virtual void UpdateListOfTypes() = 0;
177  virtual void SetClassInfo(TClass *cl, Bool_t reload = kFALSE) = 0;
178  virtual Bool_t CheckClassInfo(const char *name, Bool_t autoload, Bool_t isClassOrNamespaceOnly = kFALSE) = 0;
179  virtual Bool_t CheckClassTemplate(const char *name) = 0;
180  virtual Long_t Calc(const char *line, EErrorCode* error = 0) = 0;
181  virtual void CreateListOfBaseClasses(TClass *cl) const = 0;
182  virtual void CreateListOfDataMembers(TClass *cl) const = 0;
183  virtual void CreateListOfMethods(TClass *cl) const = 0;
184  virtual void CreateListOfMethodArgs(TFunction *m) const = 0;
185  virtual void UpdateListOfMethods(TClass *cl) const = 0;
186  virtual TString GetMangledName(TClass *cl, const char *method, const char *params, Bool_t objectIsConst = kFALSE) = 0;
187  virtual TString GetMangledNameWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst = kFALSE, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) = 0;
188  virtual void GetInterpreterTypeName(const char *name, std::string &output, Bool_t full = kFALSE) = 0;
189  virtual void *GetInterfaceMethod(TClass *cl, const char *method, const char *params, Bool_t objectIsConst = kFALSE) = 0;
190  virtual void *GetInterfaceMethodWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst = kFALSE, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) = 0;
191  virtual void Execute(const char *function, const char *params, int *error = 0) = 0;
192  virtual void Execute(TObject *obj, TClass *cl, const char *method, const char *params, int *error = 0) = 0;
193  virtual void Execute(TObject *obj, TClass *cl, TMethod *method, TObjArray *params, int *error = 0) = 0;
194  virtual void ExecuteWithArgsAndReturn(TMethod *method, void* address, const void* args[] = 0, int /*nargs*/ = 0, void* ret= 0) const = 0;
195  virtual Long_t ExecuteMacro(const char *filename, EErrorCode *error = 0) = 0;
196  virtual Bool_t IsErrorMessagesEnabled() const = 0;
197  virtual Bool_t SetErrorMessages(Bool_t enable = kTRUE) = 0;
198  virtual Bool_t IsProcessLineLocked() const = 0;
199  virtual void SetProcessLineLock(Bool_t lock = kTRUE) = 0;
200  virtual const char *TypeName(const char *s) = 0;
201 
202  // All the functions below must be virtual with a dummy implementation
203  // These functions are redefined in TCling.
204  //The dummy implementation avoids an implementation in TGWin32InterpreterProxy
205 
206  // Misc
207  virtual int DisplayClass(FILE * /* fout */,const char * /* name */,int /* base */,int /* start */) const {return 0;}
208  virtual int DisplayIncludePath(FILE * /* fout */) const {return 0;}
209  virtual void *FindSym(const char * /* entry */) const {return 0;}
210  virtual void GenericError(const char * /* error */) const {;}
211  virtual Long_t GetExecByteCode() const {return 0;}
212  virtual Long_t Getgvp() const {return 0;}
213  virtual const char *Getp2f2funcname(void * /* receiver */) const {return 0;}
214  virtual const char *GetTopLevelMacroName() const {return 0;};
215  virtual const char *GetCurrentMacroName() const {return 0;};
216  virtual int GetSecurityError() const{return 0;}
217  virtual int LoadFile(const char * /* path */) const {return 0;}
218  virtual Bool_t LoadText(const char * /* text */) const {return kFALSE;}
219  virtual const char *MapCppName(const char*) const {return 0;}
220  virtual void SetAlloclockfunc(void (*)()) const {;}
221  virtual void SetAllocunlockfunc(void (*)()) const {;}
222  virtual int SetClassAutoloading(int) const {return 0;}
223  virtual int SetClassAutoparsing(int) {return 0;};
224  virtual void SetErrmsgcallback(void * /* p */) const {;}
225  virtual void Setgvp(Long_t) const {;}
226  virtual void SetRTLD_NOW() const {;}
227  virtual void SetRTLD_LAZY() const {;}
228  virtual void SetTempLevel(int /* val */) const {;}
229  virtual int UnloadFile(const char * /* path */) const {return 0;}
230  virtual TInterpreterValue *CreateTemporary() { return 0; }
231 
232  // core/meta helper functions.
233  virtual EReturnType MethodCallReturnType(TFunction *func) const = 0;
234  virtual ULong64_t GetInterpreterStateMarker() const = 0;
235 
237  virtual DeclId_t GetDeclId(CallFunc_t *info) const = 0;
238  virtual DeclId_t GetDeclId(ClassInfo_t *info) const = 0;
239  virtual DeclId_t GetDeclId(DataMemberInfo_t *info) const = 0;
240  virtual DeclId_t GetDeclId(FuncTempInfo_t *info) const = 0;
241  virtual DeclId_t GetDeclId(MethodInfo_t *info) const = 0;
242  virtual DeclId_t GetDeclId(TypedefInfo_t *info) const = 0;
243 
244  virtual void SetDeclAttr(DeclId_t, const char* /* attribute */) = 0 ;
245 
246  virtual DeclId_t GetDataMember(ClassInfo_t *cl, const char *name) const = 0;
247  virtual DeclId_t GetDataMemberAtAddr(const void *addr) const = 0;
248  virtual DeclId_t GetDataMemberWithValue(const void *ptrvalue) const = 0;
249  virtual DeclId_t GetEnum(TClass *cl, const char *name) const = 0;
250  virtual TEnum* CreateEnum(void *VD, TClass *cl) const = 0;
251  virtual void UpdateEnumConstants(TEnum* enumObj, TClass* cl) const = 0;
252  virtual void LoadEnums(TListOfEnums& cl) const = 0;
253  virtual DeclId_t GetFunction(ClassInfo_t *cl, const char *funcname) = 0;
254  virtual DeclId_t GetFunctionWithPrototype(ClassInfo_t *cl, const char* method, const char* proto, Bool_t objectIsConst = kFALSE, ROOT::EFunctionMatchMode mode = ROOT::kConversionMatch) = 0;
255  virtual DeclId_t GetFunctionWithValues(ClassInfo_t *cl, const char* method, const char* params, Bool_t objectIsConst = kFALSE) = 0;
256  virtual DeclId_t GetFunctionTemplate(ClassInfo_t *cl, const char *funcname) = 0;
257  virtual void GetFunctionOverloads(ClassInfo_t *cl, const char *funcname, std::vector<DeclId_t>& res) const = 0;
258  virtual void LoadFunctionTemplates(TClass* cl) const = 0;
259 
260  // CallFunc interface
261  virtual void CallFunc_Delete(CallFunc_t * /* func */) const {;}
262  virtual void CallFunc_Exec(CallFunc_t * /* func */, void * /* address */) const {;}
263  virtual void CallFunc_Exec(CallFunc_t * /* func */, void * /* address */, TInterpreterValue& /* val */) const {;}
264  virtual void CallFunc_ExecWithReturn(CallFunc_t * /* func */, void * /* address */, void * /* ret */) const {;}
265  virtual void CallFunc_ExecWithArgsAndReturn(CallFunc_t * /* func */, void * /* address */, const void* /* args */ [] = 0, int /*nargs*/ = 0, void * /* ret */ = 0) const {}
266  virtual Long_t CallFunc_ExecInt(CallFunc_t * /* func */, void * /* address */) const {return 0;}
267  virtual Long64_t CallFunc_ExecInt64(CallFunc_t * /* func */, void * /* address */) const {return 0;}
268  virtual Double_t CallFunc_ExecDouble(CallFunc_t * /* func */, void * /* address */) const {return 0;}
269  virtual CallFunc_t *CallFunc_Factory() const {return 0;}
270  virtual CallFunc_t *CallFunc_FactoryCopy(CallFunc_t * /* func */) const {return 0;}
271  virtual MethodInfo_t *CallFunc_FactoryMethod(CallFunc_t * /* func */) const {return 0;}
272  virtual void CallFunc_IgnoreExtraArgs(CallFunc_t * /*func */, bool /*ignore*/) const {;}
273  virtual void CallFunc_Init(CallFunc_t * /* func */) const {;}
274  virtual Bool_t CallFunc_IsValid(CallFunc_t * /* func */) const {return 0;}
275  virtual CallFuncIFacePtr_t CallFunc_IFacePtr(CallFunc_t * /* func */) const {return CallFuncIFacePtr_t();}
276  virtual void CallFunc_ResetArg(CallFunc_t * /* func */) const {;}
277  virtual void CallFunc_SetArgArray(CallFunc_t * /* func */, Long_t * /* paramArr */, Int_t /* nparam */) const {;}
278  virtual void CallFunc_SetArgs(CallFunc_t * /* func */, const char * /* param */) const {;}
279 
280  virtual void CallFunc_SetArg(CallFunc_t * /*func */, Long_t /* param */) const = 0;
281  virtual void CallFunc_SetArg(CallFunc_t * /*func */, ULong_t /* param */) const = 0;
282  virtual void CallFunc_SetArg(CallFunc_t * /* func */, Float_t /* param */) const = 0;
283  virtual void CallFunc_SetArg(CallFunc_t * /* func */, Double_t /* param */) const = 0;
284  virtual void CallFunc_SetArg(CallFunc_t * /* func */, Long64_t /* param */) const = 0;
285  virtual void CallFunc_SetArg(CallFunc_t * /* func */, ULong64_t /* param */) const = 0;
286 
287  void CallFunc_SetArg(CallFunc_t * func, Char_t param) const { CallFunc_SetArg(func,(Long_t)param); }
288  void CallFunc_SetArg(CallFunc_t * func, Short_t param) const { CallFunc_SetArg(func,(Long_t)param); }
289  void CallFunc_SetArg(CallFunc_t * func, Int_t param) const { CallFunc_SetArg(func,(Long_t)param); }
290 
291  void CallFunc_SetArg(CallFunc_t * func, UChar_t param) const { CallFunc_SetArg(func,(ULong_t)param); }
292  void CallFunc_SetArg(CallFunc_t * func, UShort_t param) const { CallFunc_SetArg(func,(ULong_t)param); }
293  void CallFunc_SetArg(CallFunc_t * func, UInt_t param) const { CallFunc_SetArg(func,(ULong_t)param); }
294 
295  template <typename T>
296  void CallFunc_SetArgRef(CallFunc_t * func, T &param) const { CallFunc_SetArg(func,(ULong_t)&param); }
297 
298  void CallFunc_SetArg(CallFunc_t *func, void *arg)
299  {
300  CallFunc_SetArg(func,(Long_t) arg);
301  }
302 
303  template <typename T>
304  void CallFunc_SetArg(CallFunc_t *func, const T *arg)
305  {
306  CallFunc_SetArg(func,(Long_t) arg);
307  }
308 
309  void CallFunc_SetArgImpl(CallFunc_t * /* func */)
310  {
311  }
312 
313  template <typename U>
314  void CallFunc_SetArgImpl(CallFunc_t *func, const U& head)
315  {
316  CallFunc_SetArg(func, head);
317  }
318 
319  template <typename U, typename... T>
320  void CallFunc_SetArgImpl(CallFunc_t *func, const U& head, const T&... tail)
321  {
322  CallFunc_SetArg(func, head);
323  CallFunc_SetArgImpl(func, tail...);
324  }
325 
326  template <typename... T>
327  void CallFunc_SetArguments(CallFunc_t *func, const T&... args)
328  {
329  R__LOCKGUARD2(gInterpreterMutex);
330 
331  CallFunc_ResetArg(func);
332  CallFunc_SetArgImpl(func,args...);
333  }
334 
335  virtual void CallFunc_SetFunc(CallFunc_t * /* func */, ClassInfo_t * /* info */, const char * /* method */, const char * /* params */, bool /* objectIsConst */, Long_t * /* Offset */) const {;}
336  virtual void CallFunc_SetFunc(CallFunc_t * /* func */, ClassInfo_t * /* info */, const char * /* method */, const char * /* params */, Long_t * /* Offset */) const {;}
337  virtual void CallFunc_SetFunc(CallFunc_t * /* func */, MethodInfo_t * /* info */) const {;}
338  virtual void CallFunc_SetFuncProto(CallFunc_t * /* func */, ClassInfo_t * /* info */, const char * /* method */, const char * /* proto */, Long_t * /* Offset */, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) const {;}
339  virtual void CallFunc_SetFuncProto(CallFunc_t * /* func */, ClassInfo_t * /* info */, const char * /* method */, const char * /* proto */, bool /* objectIsConst */, Long_t * /* Offset */, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) const {;}
340  virtual void CallFunc_SetFuncProto(CallFunc_t* func, ClassInfo_t* info, const char* method, const std::vector<TypeInfo_t*> &proto, Long_t* Offset, ROOT::EFunctionMatchMode mode = ROOT::kConversionMatch) const = 0;
341  virtual void CallFunc_SetFuncProto(CallFunc_t* func, ClassInfo_t* info, const char* method, const std::vector<TypeInfo_t*> &proto, bool objectIsConst, Long_t* Offset, ROOT::EFunctionMatchMode mode = ROOT::kConversionMatch) const = 0;
342 
343 
344  // ClassInfo interface
345  virtual Bool_t ClassInfo_Contains(ClassInfo_t *info, DeclId_t decl) const = 0;
346  virtual Long_t ClassInfo_ClassProperty(ClassInfo_t * /* info */) const {return 0;}
347  virtual void ClassInfo_Delete(ClassInfo_t * /* info */) const {;}
348  virtual void ClassInfo_Delete(ClassInfo_t * /* info */, void * /* arena */) const {;}
349  virtual void ClassInfo_DeleteArray(ClassInfo_t * /* info */, void * /* arena */, bool /* dtorOnly */) const {;}
350  virtual void ClassInfo_Destruct(ClassInfo_t * /* info */, void * /* arena */) const {;}
351  virtual ClassInfo_t *ClassInfo_Factory(Bool_t /*all*/ = kTRUE) const = 0;
352  virtual ClassInfo_t *ClassInfo_Factory(ClassInfo_t * /* cl */) const = 0;
353  virtual ClassInfo_t *ClassInfo_Factory(const char * /* name */) const = 0;
354  virtual Long_t ClassInfo_GetBaseOffset(ClassInfo_t* /* fromDerived */,
355  ClassInfo_t* /* toBase */, void* /* address */ = 0, bool /*isderived*/ = true) const {return 0;}
356  virtual int ClassInfo_GetMethodNArg(ClassInfo_t * /* info */, const char * /* method */,const char * /* proto */, Bool_t /* objectIsConst */ = false, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) const {return 0;}
357  virtual Bool_t ClassInfo_HasDefaultConstructor(ClassInfo_t * /* info */) const {return 0;}
358  virtual Bool_t ClassInfo_HasMethod(ClassInfo_t * /* info */, const char * /* name */) const {return 0;}
359  virtual void ClassInfo_Init(ClassInfo_t * /* info */, const char * /* funcname */) const {;}
360  virtual void ClassInfo_Init(ClassInfo_t * /* info */, int /* tagnum */) const {;}
361  virtual Bool_t ClassInfo_IsBase(ClassInfo_t * /* info */, const char * /* name */) const {return 0;}
362  virtual Bool_t ClassInfo_IsEnum(const char * /* name */) const {return 0;}
363  virtual Bool_t ClassInfo_IsLoaded(ClassInfo_t * /* info */) const {return 0;}
364  virtual Bool_t ClassInfo_IsValid(ClassInfo_t * /* info */) const {return 0;}
365  virtual Bool_t ClassInfo_IsValidMethod(ClassInfo_t * /* info */, const char * /* method */,const char * /* proto */, Long_t * /* offset */, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) const {return 0;}
366  virtual Bool_t ClassInfo_IsValidMethod(ClassInfo_t * /* info */, const char * /* method */,const char * /* proto */, Bool_t /* objectIsConst */, Long_t * /* offset */, ROOT::EFunctionMatchMode /* mode */ = ROOT::kConversionMatch) const {return 0;}
367  virtual int ClassInfo_Next(ClassInfo_t * /* info */) const {return 0;}
368  virtual void *ClassInfo_New(ClassInfo_t * /* info */) const {return 0;}
369  virtual void *ClassInfo_New(ClassInfo_t * /* info */, int /* n */) const {return 0;}
370  virtual void *ClassInfo_New(ClassInfo_t * /* info */, int /* n */, void * /* arena */) const {return 0;}
371  virtual void *ClassInfo_New(ClassInfo_t * /* info */, void * /* arena */) const {return 0;}
372  virtual Long_t ClassInfo_Property(ClassInfo_t * /* info */) const {return 0;}
373  virtual int ClassInfo_Size(ClassInfo_t * /* info */) const {return 0;}
374  virtual Long_t ClassInfo_Tagnum(ClassInfo_t * /* info */) const {return 0;}
375  virtual const char *ClassInfo_FileName(ClassInfo_t * /* info */) const {return 0;}
376  virtual const char *ClassInfo_FullName(ClassInfo_t * /* info */) const {return 0;}
377  virtual const char *ClassInfo_Name(ClassInfo_t * /* info */) const {return 0;}
378  virtual const char *ClassInfo_Title(ClassInfo_t * /* info */) const {return 0;}
379  virtual const char *ClassInfo_TmpltName(ClassInfo_t * /* info */) const {return 0;}
380 
381 
382  // BaseClassInfo interface
383  virtual void BaseClassInfo_Delete(BaseClassInfo_t * /* bcinfo */) const {;}
384  virtual BaseClassInfo_t *BaseClassInfo_Factory(ClassInfo_t * /* info */) const {return 0;}
385  virtual BaseClassInfo_t *BaseClassInfo_Factory(ClassInfo_t* /* derived */,
386  ClassInfo_t* /* base */) const {return 0;}
387  virtual int BaseClassInfo_Next(BaseClassInfo_t * /* bcinfo */) const {return 0;}
388  virtual int BaseClassInfo_Next(BaseClassInfo_t * /* bcinfo */, int /* onlyDirect */) const {return 0;}
389  virtual Long_t BaseClassInfo_Offset(BaseClassInfo_t * /* toBaseClassInfo */, void* /* address */ = 0 /*default for non-virtual*/, bool /*isderived*/ = true /*default for non-virtual*/) const {return 0;}
390  virtual Long_t BaseClassInfo_Property(BaseClassInfo_t * /* bcinfo */) const {return 0;}
391  virtual Long_t BaseClassInfo_Tagnum(BaseClassInfo_t * /* bcinfo */) const {return 0;}
392  virtual ClassInfo_t*BaseClassInfo_ClassInfo(BaseClassInfo_t * /* bcinfo */) const = 0;
393  virtual const char *BaseClassInfo_FullName(BaseClassInfo_t * /* bcinfo */) const {return 0;}
394  virtual const char *BaseClassInfo_Name(BaseClassInfo_t * /* bcinfo */) const {return 0;}
395  virtual const char *BaseClassInfo_TmpltName(BaseClassInfo_t * /* bcinfo */) const {return 0;}
396 
397  // DataMemberInfo interface
398  virtual int DataMemberInfo_ArrayDim(DataMemberInfo_t * /* dminfo */) const {return 0;}
399  virtual void DataMemberInfo_Delete(DataMemberInfo_t * /* dminfo */) const {;}
400  virtual DataMemberInfo_t *DataMemberInfo_Factory(ClassInfo_t * /* clinfo */ = 0) const {return 0;}
401  virtual DataMemberInfo_t *DataMemberInfo_Factory(DeclId_t declid, ClassInfo_t* clinfo) const = 0;
402  virtual DataMemberInfo_t *DataMemberInfo_FactoryCopy(DataMemberInfo_t * /* dminfo */) const {return 0;}
403  virtual Bool_t DataMemberInfo_IsValid(DataMemberInfo_t * /* dminfo */) const {return 0;}
404  virtual int DataMemberInfo_MaxIndex(DataMemberInfo_t * /* dminfo */, Int_t /* dim */) const {return 0;}
405  virtual int DataMemberInfo_Next(DataMemberInfo_t * /* dminfo */) const {return 0;}
406  virtual Long_t DataMemberInfo_Offset(DataMemberInfo_t * /* dminfo */) const {return 0;}
407  virtual Long_t DataMemberInfo_Property(DataMemberInfo_t * /* dminfo */) const {return 0;}
408  virtual Long_t DataMemberInfo_TypeProperty(DataMemberInfo_t * /* dminfo */) const {return 0;}
409  virtual int DataMemberInfo_TypeSize(DataMemberInfo_t * /* dminfo */) const {return 0;}
410  virtual const char *DataMemberInfo_TypeName(DataMemberInfo_t * /* dminfo */) const {return 0;}
411  virtual const char *DataMemberInfo_TypeTrueName(DataMemberInfo_t * /* dminfo */) const {return 0;}
412  virtual const char *DataMemberInfo_Name(DataMemberInfo_t * /* dminfo */) const {return 0;}
413  virtual const char *DataMemberInfo_Title(DataMemberInfo_t * /* dminfo */) const {return 0;}
414  virtual const char *DataMemberInfo_ValidArrayIndex(DataMemberInfo_t * /* dminfo */) const {return 0;}
415 
416  // Function Template interface
417  virtual void FuncTempInfo_Delete(FuncTempInfo_t * /* ft_info */) const = 0;
418  virtual FuncTempInfo_t *FuncTempInfo_Factory(DeclId_t declid) const = 0;
419  virtual FuncTempInfo_t *FuncTempInfo_FactoryCopy(FuncTempInfo_t * /* ft_info */) const = 0;
420  virtual Bool_t FuncTempInfo_IsValid(FuncTempInfo_t * /* ft_info */) const = 0;
421  virtual UInt_t FuncTempInfo_TemplateNargs(FuncTempInfo_t * /* ft_info */) const = 0;
422  virtual UInt_t FuncTempInfo_TemplateMinReqArgs(FuncTempInfo_t * /* ft_info */) const = 0;
423  virtual Long_t FuncTempInfo_Property(FuncTempInfo_t * /* ft_info */) const = 0;
424  virtual void FuncTempInfo_Name(FuncTempInfo_t * /* ft_info */, TString &name) const = 0;
425  virtual void FuncTempInfo_Title(FuncTempInfo_t * /* ft_info */, TString &title) const = 0;
426 
427  // MethodInfo interface
428  virtual void MethodInfo_CreateSignature(MethodInfo_t * /* minfo */, TString & /* signature */) const {;}
429  virtual void MethodInfo_Delete(MethodInfo_t * /* minfo */) const {;}
430  virtual MethodInfo_t *MethodInfo_Factory() const {return 0;}
431  virtual MethodInfo_t *MethodInfo_Factory(ClassInfo_t * /*clinfo*/) const {return 0;}
432  virtual MethodInfo_t *MethodInfo_Factory(DeclId_t declid) const = 0;
433  virtual MethodInfo_t *MethodInfo_FactoryCopy(MethodInfo_t * /* minfo */) const {return 0;}
434  virtual void *MethodInfo_InterfaceMethod(MethodInfo_t * /* minfo */) const {return 0;}
435  virtual Bool_t MethodInfo_IsValid(MethodInfo_t * /* minfo */) const {return 0;}
436  virtual int MethodInfo_NArg(MethodInfo_t * /* minfo */) const {return 0;}
437  virtual int MethodInfo_NDefaultArg(MethodInfo_t * /* minfo */) const {return 0;}
438  virtual int MethodInfo_Next(MethodInfo_t * /* minfo */) const {return 0;}
439  virtual Long_t MethodInfo_Property(MethodInfo_t * /* minfo */) const = 0;
440  virtual Long_t MethodInfo_ExtraProperty(MethodInfo_t * /* minfo */) const = 0;
441  virtual TypeInfo_t *MethodInfo_Type(MethodInfo_t * /* minfo */) const {return 0;}
442  virtual EReturnType MethodInfo_MethodCallReturnType(MethodInfo_t* minfo) const = 0;
443  virtual const char *MethodInfo_GetMangledName(MethodInfo_t * /* minfo */) const {return 0;}
444  virtual const char *MethodInfo_GetPrototype(MethodInfo_t * /* minfo */) const {return 0;}
445  virtual const char *MethodInfo_Name(MethodInfo_t * /* minfo */) const {return 0;}
446  virtual const char *MethodInfo_TypeName(MethodInfo_t * /* minfo */) const {return 0;}
447  virtual std::string MethodInfo_TypeNormalizedName(MethodInfo_t * /* minfo */) const {return "";}
448  virtual const char *MethodInfo_Title(MethodInfo_t * /* minfo */) const {return 0;}
449 
450  // MethodArgInfo interface
451  virtual void MethodArgInfo_Delete(MethodArgInfo_t * /* marginfo */) const {;}
452  virtual MethodArgInfo_t *MethodArgInfo_Factory() const {return 0;}
453  virtual MethodArgInfo_t *MethodArgInfo_Factory(MethodInfo_t * /*minfo*/) const {return 0;}
454  virtual MethodArgInfo_t *MethodArgInfo_FactoryCopy(MethodArgInfo_t * /* marginfo */) const {return 0;}
455  virtual Bool_t MethodArgInfo_IsValid(MethodArgInfo_t * /* marginfo */) const {return 0;}
456  virtual int MethodArgInfo_Next(MethodArgInfo_t * /* marginfo */) const {return 0;}
457  virtual Long_t MethodArgInfo_Property(MethodArgInfo_t * /* marginfo */) const {return 0;}
458  virtual const char *MethodArgInfo_DefaultValue(MethodArgInfo_t * /* marginfo */) const {return 0;}
459  virtual const char *MethodArgInfo_Name(MethodArgInfo_t * /* marginfo */) const {return 0;}
460  virtual const char *MethodArgInfo_TypeName(MethodArgInfo_t * /* marginfo */) const {return 0;}
461  virtual std::string MethodArgInfo_TypeNormalizedName(MethodArgInfo_t * /* marginfo */) const = 0;
462 
463 
464  // TypeInfo interface
465  virtual void TypeInfo_Delete(TypeInfo_t * /* tinfo */) const {;}
466  virtual TypeInfo_t *TypeInfo_Factory() const {return 0;}
467  virtual TypeInfo_t *TypeInfo_Factory(const char* /* name */) const {return 0;}
468  virtual TypeInfo_t *TypeInfo_FactoryCopy(TypeInfo_t * /* tinfo */) const {return 0;}
469  virtual void TypeInfo_Init(TypeInfo_t * /* tinfo */, const char * /* funcname */) const {;}
470  virtual Bool_t TypeInfo_IsValid(TypeInfo_t * /* tinfo */) const {return 0;}
471  virtual const char *TypeInfo_Name(TypeInfo_t * /* info */) const {return 0;}
472  virtual Long_t TypeInfo_Property(TypeInfo_t * /* tinfo */) const {return 0;}
473  virtual int TypeInfo_RefType(TypeInfo_t * /* tinfo */) const {return 0;}
474  virtual int TypeInfo_Size(TypeInfo_t * /* tinfo */) const {return 0;}
475  virtual const char *TypeInfo_TrueName(TypeInfo_t * /* tinfo */) const {return 0;}
476 
477 
478  // TypedefInfo interface
479  virtual void TypedefInfo_Delete(TypedefInfo_t * /* tinfo */) const {;}
480  virtual TypedefInfo_t *TypedefInfo_Factory() const {return 0;}
481  virtual TypedefInfo_t *TypedefInfo_Factory(const char *) const {return 0;}
482  virtual TypedefInfo_t *TypedefInfo_FactoryCopy(TypedefInfo_t * /* tinfo */) const {return 0;}
483  virtual void TypedefInfo_Init(TypedefInfo_t * /* tinfo */, const char * /* funcname */) const {;}
484  virtual Bool_t TypedefInfo_IsValid(TypedefInfo_t * /* tinfo */) const {return 0;}
485  virtual int TypedefInfo_Next(TypedefInfo_t* /*tinfo*/) const {return 0;}
486  virtual Long_t TypedefInfo_Property(TypedefInfo_t * /* tinfo */) const {return 0;}
487  virtual int TypedefInfo_Size(TypedefInfo_t * /* tinfo */) const {return 0;}
488  virtual const char *TypedefInfo_TrueName(TypedefInfo_t * /* tinfo */) const {return 0;}
489  virtual const char *TypedefInfo_Name(TypedefInfo_t * /* tinfo */) const {return 0;}
490  virtual const char *TypedefInfo_Title(TypedefInfo_t * /* tinfo */) const {return 0;}
491 
492  static TInterpreter *Instance();
493 
494  ClassDef(TInterpreter,0) //ABC defining interface to generic interpreter
495 };
496 
497 
498 typedef TInterpreter *CreateInterpreter_t(void* shlibHandle);
500 
501 #ifndef __CINT__
502 #define gInterpreter (TInterpreter::Instance())
503 R__EXTERN TInterpreter* (*gPtr2Interpreter)();
505 #endif
506 
507 #endif
virtual void Execute(TMethod *method, TObjArray *params, int *error=0)=0
Execute method on this object with parameters stored in the TObjArray.
virtual void CallFunc_SetFuncProto(CallFunc_t *, ClassInfo_t *, const char *, const char *, Long_t *, ROOT::EFunctionMatchMode=ROOT::kConversionMatch) const
Definition: TInterpreter.h:338
virtual void ResetAll()=0
virtual const char * BaseClassInfo_TmpltName(BaseClassInfo_t *) const
Definition: TInterpreter.h:395
virtual int TypedefInfo_Next(TypedefInfo_t *) const
Definition: TInterpreter.h:485
virtual void TypedefInfo_Init(TypedefInfo_t *, const char *) const
Definition: TInterpreter.h:483
virtual const char * DataMemberInfo_Title(DataMemberInfo_t *) const
Definition: TInterpreter.h:413
TInterpreter * CreateInterpreter_t(void *shlibHandle)
Definition: TInterpreter.h:498
RooCmdArg Offset(Bool_t flag=kTRUE)
virtual void CallFunc_ExecWithReturn(CallFunc_t *, void *, void *) const
Definition: TInterpreter.h:264
TClass *(* DictFuncPtr_t)()
Definition: Rtypes.h:75
The TEnum class implements the enum type.
Definition: TEnum.h:42
virtual void LoadMacro(const char *filename, EErrorCode *error=0)=0
virtual Long_t TypedefInfo_Property(TypedefInfo_t *) const
Definition: TInterpreter.h:486
This class defines an abstract interface to a generic command line interpreter.
Definition: TInterpreter.h:50
An array of TObjects.
Definition: TObjArray.h:39
virtual void UpdateListOfTypes()=0
virtual FuncTempInfo_t * FuncTempInfo_FactoryCopy(FuncTempInfo_t *) const =0
virtual CallFuncIFacePtr_t CallFunc_IFacePtr(CallFunc_t *) const
Definition: TInterpreter.h:275
void * DestroyInterpreter_t(TInterpreter *)
Definition: TInterpreter.h:499
virtual Long_t BaseClassInfo_Property(BaseClassInfo_t *) const
Definition: TInterpreter.h:390
virtual int DataMemberInfo_TypeSize(DataMemberInfo_t *) const
Definition: TInterpreter.h:409
long long Long64_t
Definition: RtypesCore.h:69
void CallFunc_SetArg(CallFunc_t *func, Char_t param) const
Definition: TInterpreter.h:287
virtual int ClassInfo_Next(ClassInfo_t *) const
Definition: TInterpreter.h:367
virtual const char * MethodInfo_GetMangledName(MethodInfo_t *) const
Definition: TInterpreter.h:443
virtual MethodInfo_t * MethodInfo_FactoryCopy(MethodInfo_t *) const
Definition: TInterpreter.h:433
virtual const char * MethodInfo_Title(MethodInfo_t *) const
Definition: TInterpreter.h:448
virtual void CallFunc_SetArgs(CallFunc_t *, const char *) const
Definition: TInterpreter.h:278
virtual void ClassInfo_Delete(ClassInfo_t *) const
Definition: TInterpreter.h:347
TLine * line
virtual DeclId_t GetFunctionWithValues(ClassInfo_t *cl, const char *method, const char *params, Bool_t objectIsConst=kFALSE)=0
virtual void FuncTempInfo_Name(FuncTempInfo_t *, TString &name) const =0
float Float_t
Definition: RtypesCore.h:53
virtual MethodArgInfo_t * MethodArgInfo_Factory(MethodInfo_t *) const
Definition: TInterpreter.h:453
virtual const char * TypedefInfo_Title(TypedefInfo_t *) const
Definition: TInterpreter.h:490
virtual int BaseClassInfo_Next(BaseClassInfo_t *) const
Definition: TInterpreter.h:387
virtual void GetInterpreterTypeName(const char *name, std::string &output, Bool_t full=kFALSE)=0
virtual Bool_t FuncTempInfo_IsValid(FuncTempInfo_t *) const =0
TDictionary::DeclId_t DeclId_t
Definition: TInterpreter.h:236
virtual Long_t MethodArgInfo_Property(MethodArgInfo_t *) const
Definition: TInterpreter.h:457
virtual Long_t DataMemberInfo_TypeProperty(DataMemberInfo_t *) const
Definition: TInterpreter.h:408
virtual void RewindDictionary()=0
void CallFunc_SetArg(CallFunc_t *func, UInt_t param) const
Definition: TInterpreter.h:293
void CallFunc_SetArg(CallFunc_t *func, UShort_t param) const
Definition: TInterpreter.h:292
virtual Int_t DeleteVariable(const char *name)=0
virtual Bool_t TypedefInfo_IsValid(TypedefInfo_t *) const
Definition: TInterpreter.h:484
virtual UInt_t FuncTempInfo_TemplateMinReqArgs(FuncTempInfo_t *) const =0
R__EXTERN TVirtualMutex * gInterpreterMutex
Definition: TInterpreter.h:46
virtual void CallFunc_SetArgArray(CallFunc_t *, Long_t *, Int_t) const
Definition: TInterpreter.h:277
virtual TEnum * CreateEnum(void *VD, TClass *cl) const =0
virtual void SetErrmsgcallback(void *) const
Definition: TInterpreter.h:224
unsigned short UShort_t
Definition: RtypesCore.h:36
virtual void UpdateListOfGlobalFunctions()=0
virtual void CallFunc_SetFunc(CallFunc_t *, MethodInfo_t *) const
Definition: TInterpreter.h:337
virtual TObjArray * GetRootMapFiles() const =0
virtual Bool_t ClassInfo_IsEnum(const char *) const
Definition: TInterpreter.h:362
virtual Double_t CallFunc_ExecDouble(CallFunc_t *, void *) const
Definition: TInterpreter.h:268
virtual void CallFunc_Exec(CallFunc_t *, void *) const
Definition: TInterpreter.h:262
virtual const char * ClassInfo_Title(ClassInfo_t *) const
Definition: TInterpreter.h:378
virtual int MethodArgInfo_Next(MethodArgInfo_t *) const
Definition: TInterpreter.h:456
virtual DeclId_t GetFunctionTemplate(ClassInfo_t *cl, const char *funcname)=0
virtual Int_t GenerateDictionary(const char *classes, const char *includes=0, const char *options=0)=0
virtual void DataMemberInfo_Delete(DataMemberInfo_t *) const
Definition: TInterpreter.h:399
virtual void CallFunc_Delete(CallFunc_t *) const
Definition: TInterpreter.h:261
virtual const char * MethodArgInfo_DefaultValue(MethodArgInfo_t *) const
Definition: TInterpreter.h:458
virtual void * ClassInfo_New(ClassInfo_t *) const
Definition: TInterpreter.h:368
virtual void LoadEnums(TListOfEnums &cl) const =0
virtual int SetClassAutoloading(int) const
Definition: TInterpreter.h:222
This class implements a mutex interface.
Definition: TVirtualMutex.h:34
static const char * filename()
virtual const char * TypedefInfo_Name(TypedefInfo_t *) const
Definition: TInterpreter.h:489
virtual TypeInfo_t * TypeInfo_Factory() const
Definition: TInterpreter.h:466
virtual Long_t FuncTempInfo_Property(FuncTempInfo_t *) const =0
virtual Bool_t ClassInfo_HasMethod(ClassInfo_t *, const char *) const
Definition: TInterpreter.h:358
The TEnv class reads config files, by default named .rootrc.
Definition: TEnv.h:128
Basic string class.
Definition: TString.h:137
void CallFunc_SetArgImpl(CallFunc_t *func, const U &head)
Definition: TInterpreter.h:314
virtual void UpdateListOfGlobals()=0
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual Long_t ClassInfo_Tagnum(ClassInfo_t *) const
Definition: TInterpreter.h:374
std::vector< std::pair< std::string, int > > FwdDeclArgsToKeepCollection_t
Definition: TInterpreter.h:108
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual MethodArgInfo_t * MethodArgInfo_FactoryCopy(MethodArgInfo_t *) const
Definition: TInterpreter.h:454
virtual void ClassInfo_Destruct(ClassInfo_t *, void *) const
Definition: TInterpreter.h:350
virtual DeclId_t GetEnum(TClass *cl, const char *name) const =0
virtual const char * GetTopLevelMacroName() const
Definition: TInterpreter.h:214
virtual TypeInfo_t * TypeInfo_FactoryCopy(TypeInfo_t *) const
Definition: TInterpreter.h:468
virtual Bool_t ClassInfo_IsValidMethod(ClassInfo_t *, const char *, const char *, Long_t *, ROOT::EFunctionMatchMode=ROOT::kConversionMatch) const
Definition: TInterpreter.h:365
Abstract base class for accessing the data-members of a class.
virtual int BaseClassInfo_Next(BaseClassInfo_t *, int) const
Definition: TInterpreter.h:388
virtual BaseClassInfo_t * BaseClassInfo_Factory(ClassInfo_t *, ClassInfo_t *) const
Definition: TInterpreter.h:385
virtual void RegisterTClassUpdate(TClass *oldcl, DictFuncPtr_t dict)=0
virtual void * GetAutoLoadCallBack() const
Definition: TInterpreter.h:116
virtual void SetGetline(const char *(*getlineFunc)(const char *prompt), void(*histaddFunc)(const char *line))=0
const void * DeclId_t
Definition: TDictionary.h:209
virtual Int_t DeleteGlobal(void *obj)=0
int(* AutoLoadCallBack_t)(const char *)
Definition: TInterpreter.h:107
virtual Bool_t ClassInfo_Contains(ClassInfo_t *info, DeclId_t decl) const =0
virtual void CallFunc_IgnoreExtraArgs(CallFunc_t *, bool) const
Definition: TInterpreter.h:272
void CallFunc_SetArg(CallFunc_t *func, UChar_t param) const
Definition: TInterpreter.h:291
virtual void ResetGlobalVar(void *obj)=0
virtual void PrintIntro()=0
virtual void BaseClassInfo_Delete(BaseClassInfo_t *) const
Definition: TInterpreter.h:383
virtual Bool_t MethodArgInfo_IsValid(MethodArgInfo_t *) const
Definition: TInterpreter.h:455
virtual int TypeInfo_Size(TypeInfo_t *) const
Definition: TInterpreter.h:474
TTree * T
virtual int MethodInfo_NDefaultArg(MethodInfo_t *) const
Definition: TInterpreter.h:437
virtual void EndOfLineAction()=0
virtual const char * GetCurrentMacroName() const
Definition: TInterpreter.h:215
virtual void UpdateEnumConstants(TEnum *enumObj, TClass *cl) const =0
virtual void CallFunc_SetArg(CallFunc_t *, Long_t) const =0
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void SetAllocunlockfunc(void(*)()) const
Definition: TInterpreter.h:221
virtual void ClearFileBusy()=0
virtual void UnRegisterTClassUpdate(const TClass *oldcl)=0
virtual TClass * GenerateTClass(const char *classname, Bool_t emulation, Bool_t silent=kFALSE)=0
virtual DeclId_t GetFunctionWithPrototype(ClassInfo_t *cl, const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)=0
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
virtual void ClassInfo_Init(ClassInfo_t *, const char *) const
Definition: TInterpreter.h:359
virtual void TypeInfo_Delete(TypeInfo_t *) const
Definition: TInterpreter.h:465
virtual Bool_t ClassInfo_IsLoaded(ClassInfo_t *) const
Definition: TInterpreter.h:363
UChar_t mod R__LOCKGUARD2(gSrvAuthenticateMutex)
virtual void CallFunc_Init(CallFunc_t *) const
Definition: TInterpreter.h:273
virtual Bool_t TypeInfo_IsValid(TypeInfo_t *) const
Definition: TInterpreter.h:470
virtual void MethodInfo_CreateSignature(MethodInfo_t *, TString &) const
Definition: TInterpreter.h:428
virtual TString GetMangledNameWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode=ROOT::kConversionMatch)=0
virtual TypeInfo_t * MethodInfo_Type(MethodInfo_t *) const
Definition: TInterpreter.h:441
virtual ClassInfo_t * ClassInfo_Factory(Bool_t=kTRUE) const =0
virtual const char * DataMemberInfo_TypeName(DataMemberInfo_t *) const
Definition: TInterpreter.h:410
virtual Bool_t Declare(const char *code)=0
virtual Int_t AutoLoad(const char *classname, Bool_t knowDictNotLoaded=kFALSE)=0
virtual const char * MethodInfo_Name(MethodInfo_t *) const
Definition: TInterpreter.h:445
virtual Int_t RescanLibraryMap()=0
virtual void SetDeclAttr(DeclId_t, const char *)=0
virtual DeclId_t GetDataMemberAtAddr(const void *addr) const =0
EFunctionMatchMode
Definition: TDictionary.h:155
virtual TEnv * GetMapfile() const
Definition: TInterpreter.h:127
virtual Long_t ClassInfo_GetBaseOffset(ClassInfo_t *, ClassInfo_t *, void *=0, bool=true) const
Definition: TInterpreter.h:354
virtual void EnableAutoLoading()=0
virtual Int_t GetMore() const =0
virtual Bool_t ClassInfo_IsBase(ClassInfo_t *, const char *) const
Definition: TInterpreter.h:361
virtual void * GetInterfaceMethod(TClass *cl, const char *method, const char *params, Bool_t objectIsConst=kFALSE)=0
CallFuncIFacePtr_t(Generic_t func)
Definition: TInterpreter.h:83
virtual int DisplayClass(FILE *, const char *, int, int) const
Definition: TInterpreter.h:207
virtual Long_t ProcessLineSynch(const char *line, EErrorCode *error=0)=0
virtual void SetClassInfo(TClass *cl, Bool_t reload=kFALSE)=0
virtual const char * TypeName(const char *s)=0
virtual DeclId_t GetDataMemberWithValue(const void *ptrvalue) const =0
virtual void Initialize()=0
virtual int DataMemberInfo_MaxIndex(DataMemberInfo_t *, Int_t) const
Definition: TInterpreter.h:404
void(* Ctor_t)(void **, void *, unsigned long)
Definition: TInterpreter.h:78
virtual Bool_t ClassInfo_IsValid(ClassInfo_t *) const
Definition: TInterpreter.h:364
virtual EReturnType MethodCallReturnType(TFunction *func) const =0
virtual void ExecuteWithArgsAndReturn(TMethod *method, void *address, const void *args[]=0, int=0, void *ret=0) const =0
virtual Bool_t ClassInfo_IsValidMethod(ClassInfo_t *, const char *, const char *, Bool_t, Long_t *, ROOT::EFunctionMatchMode=ROOT::kConversionMatch) const
Definition: TInterpreter.h:366
virtual Long_t CallFunc_ExecInt(CallFunc_t *, void *) const
Definition: TInterpreter.h:266
void CallFunc_SetArg(CallFunc_t *func, Int_t param) const
Definition: TInterpreter.h:289
virtual const char * GetSharedLibs()=0
virtual const char * GetIncludePath()=0
virtual FuncTempInfo_t * FuncTempInfo_Factory(DeclId_t declid) const =0
SuspendAutoParsing(TInterpreter *where, Bool_t value=kTRUE)
Definition: TInterpreter.h:102
virtual Long64_t CallFunc_ExecInt64(CallFunc_t *, void *) const
Definition: TInterpreter.h:267
void CallFunc_SetArgImpl(CallFunc_t *func, const U &head, const T &...tail)
Definition: TInterpreter.h:320
virtual TypeInfo_t * TypeInfo_Factory(const char *) const
Definition: TInterpreter.h:467
virtual const char * ClassInfo_FullName(ClassInfo_t *) const
Definition: TInterpreter.h:376
virtual Int_t ReloadAllSharedLibraryMaps()=0
virtual const char * ClassInfo_TmpltName(ClassInfo_t *) const
Definition: TInterpreter.h:379
void CallFunc_SetArg(CallFunc_t *func, void *arg)
Definition: TInterpreter.h:298
virtual void CallFunc_SetFuncProto(CallFunc_t *, ClassInfo_t *, const char *, const char *, bool, Long_t *, ROOT::EFunctionMatchMode=ROOT::kConversionMatch) const
Definition: TInterpreter.h:339
virtual void ClassInfo_Delete(ClassInfo_t *, void *) const
Definition: TInterpreter.h:348
virtual Int_t UnloadLibraryMap(const char *library)=0
virtual Bool_t IsLoaded(const char *filename) const =0
virtual const char * ClassInfo_FileName(ClassInfo_t *) const
Definition: TInterpreter.h:375
void(* Dtor_t)(void *, unsigned long, int)
Definition: TInterpreter.h:79
virtual const char * BaseClassInfo_FullName(BaseClassInfo_t *) const
Definition: TInterpreter.h:393
virtual int TypedefInfo_Size(TypedefInfo_t *) const
Definition: TInterpreter.h:487
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual CallFunc_t * CallFunc_FactoryCopy(CallFunc_t *) const
Definition: TInterpreter.h:270
virtual void SetTempLevel(int) const
Definition: TInterpreter.h:228
virtual int UnloadFile(const char *) const
Definition: TInterpreter.h:229
virtual int MethodInfo_Next(MethodInfo_t *) const
Definition: TInterpreter.h:438
virtual void * ClassInfo_New(ClassInfo_t *, int) const
Definition: TInterpreter.h:369
virtual const char * DataMemberInfo_Name(DataMemberInfo_t *) const
Definition: TInterpreter.h:412
virtual void SetRTLD_NOW() const
Definition: TInterpreter.h:226
virtual void TypeInfo_Init(TypeInfo_t *, const char *) const
Definition: TInterpreter.h:469
virtual Bool_t LoadText(const char *) const
Definition: TInterpreter.h:218
virtual void ResetGlobals()=0
virtual int TypeInfo_RefType(TypeInfo_t *) const
Definition: TInterpreter.h:473
virtual Long_t ClassInfo_Property(ClassInfo_t *) const
Definition: TInterpreter.h:372
virtual void InspectMembers(TMemberInspector &, const void *obj, const TClass *cl, Bool_t isTransient)=0
virtual Int_t AutoParse(const char *cls)=0
virtual Bool_t MethodInfo_IsValid(MethodInfo_t *) const
Definition: TInterpreter.h:435
virtual const char * TypeInfo_Name(TypeInfo_t *) const
Definition: TInterpreter.h:471
virtual void CreateListOfMethods(TClass *cl) const =0
virtual const char * BaseClassInfo_Name(BaseClassInfo_t *) const
Definition: TInterpreter.h:394
unsigned int UInt_t
Definition: RtypesCore.h:42
TMarker * m
Definition: textangle.C:8
virtual MethodArgInfo_t * MethodArgInfo_Factory() const
Definition: TInterpreter.h:452
virtual void CallFunc_Exec(CallFunc_t *, void *, TInterpreterValue &) const
Definition: TInterpreter.h:263
virtual Long_t TypeInfo_Property(TypeInfo_t *) const
Definition: TInterpreter.h:472
virtual void RegisterModule(const char *, const char **, const char **, const char *, const char *, void(*)(), const FwdDeclArgsToKeepCollection_t &fwdDeclArgsToKeep, const char **classesHeaders)=0
virtual void SetProcessLineLock(Bool_t lock=kTRUE)=0
virtual int DataMemberInfo_ArrayDim(DataMemberInfo_t *) const
Definition: TInterpreter.h:398
virtual void * SetAutoLoadCallBack(void *)
Definition: TInterpreter.h:115
virtual Int_t LoadLibraryMap(const char *rootmapfile=0)=0
virtual void GenericError(const char *) const
Definition: TInterpreter.h:210
virtual void CreateListOfMethodArgs(TFunction *m) const =0
short Short_t
Definition: RtypesCore.h:35
virtual std::string MethodInfo_TypeNormalizedName(MethodInfo_t *) const
Definition: TInterpreter.h:447
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
virtual void SaveContext()=0
virtual MethodInfo_t * MethodInfo_Factory() const
Definition: TInterpreter.h:430
virtual Int_t Load(const char *filenam, Bool_t system=kFALSE)=0
virtual Long_t GetExecByteCode() const
Definition: TInterpreter.h:211
virtual DeclId_t GetDeclId(CallFunc_t *info) const =0
virtual void SetAlloclockfunc(void(*)()) const
Definition: TInterpreter.h:220
static TInterpreter * Instance()
returns gInterpreter global
virtual TypedefInfo_t * TypedefInfo_Factory() const
Definition: TInterpreter.h:480
virtual void CallFunc_ResetArg(CallFunc_t *) const
Definition: TInterpreter.h:276
void CallFunc_SetArgRef(CallFunc_t *func, T &param) const
Definition: TInterpreter.h:296
virtual void MethodArgInfo_Delete(MethodArgInfo_t *) const
Definition: TInterpreter.h:451
virtual Bool_t CheckClassTemplate(const char *name)=0
void CallFunc_SetArgImpl(CallFunc_t *)
Definition: TInterpreter.h:309
void CallFunc_SetArg(CallFunc_t *func, const T *arg)
Definition: TInterpreter.h:304
TEllipse dict(9, 20, 3, 1.5)
long Long_t
Definition: RtypesCore.h:50
virtual TClass * GetClass(const std::type_info &typeinfo, Bool_t load) const =0
virtual Bool_t IsErrorMessagesEnabled() const =0
virtual void MethodInfo_Delete(MethodInfo_t *) const
Definition: TInterpreter.h:429
virtual int DataMemberInfo_Next(DataMemberInfo_t *) const
Definition: TInterpreter.h:405
virtual char * GetPrompt()=0
virtual CallFunc_t * CallFunc_Factory() const
Definition: TInterpreter.h:269
virtual std::string MethodArgInfo_TypeNormalizedName(MethodArgInfo_t *) const =0
virtual DeclId_t GetDataMember(ClassInfo_t *cl, const char *name) const =0
virtual void SetRTLD_LAZY() const
Definition: TInterpreter.h:227
double Double_t
Definition: RtypesCore.h:55
virtual const char * TypeInfo_TrueName(TypeInfo_t *) const
Definition: TInterpreter.h:475
virtual Long_t Calc(const char *line, EErrorCode *error=0)=0
virtual ~TInterpreter()
Definition: TInterpreter.h:112
virtual int DisplayIncludePath(FILE *) const
Definition: TInterpreter.h:208
virtual void ClassInfo_Init(ClassInfo_t *, int) const
Definition: TInterpreter.h:360
virtual int ClassInfo_Size(ClassInfo_t *) const
Definition: TInterpreter.h:373
virtual TInterpreterValue * CreateTemporary()
Definition: TInterpreter.h:230
unsigned long long ULong64_t
Definition: RtypesCore.h:70
virtual int LoadFile(const char *) const
Definition: TInterpreter.h:217
virtual Long_t DataMemberInfo_Property(DataMemberInfo_t *) const
Definition: TInterpreter.h:407
unsigned long ULong_t
Definition: RtypesCore.h:51
virtual Int_t UnloadAllSharedLibraryMaps()=0
virtual void LoadFunctionTemplates(TClass *cl) const =0
virtual Bool_t SetSuspendAutoParsing(Bool_t value)=0
virtual MethodInfo_t * CallFunc_FactoryMethod(CallFunc_t *) const
Definition: TInterpreter.h:271
virtual const char * MethodInfo_GetPrototype(MethodInfo_t *) const
Definition: TInterpreter.h:444
double func(double *x, double *p)
Definition: stressTF1.cxx:213
virtual BaseClassInfo_t * BaseClassInfo_Factory(ClassInfo_t *) const
Definition: TInterpreter.h:384
virtual Long_t ProcessLine(const char *line, EErrorCode *error=0)=0
virtual int MethodInfo_NArg(MethodInfo_t *) const
Definition: TInterpreter.h:436
virtual MethodInfo_t * MethodInfo_Factory(ClassInfo_t *) const
Definition: TInterpreter.h:431
virtual const char * DataMemberInfo_ValidArrayIndex(DataMemberInfo_t *) const
Definition: TInterpreter.h:414
virtual void FuncTempInfo_Title(FuncTempInfo_t *, TString &title) const =0
virtual const char * DataMemberInfo_TypeTrueName(DataMemberInfo_t *) const
Definition: TInterpreter.h:411
virtual void ClassInfo_DeleteArray(ClassInfo_t *, void *, bool) const
Definition: TInterpreter.h:349
virtual Long_t MethodInfo_ExtraProperty(MethodInfo_t *) const =0
virtual Long_t ExecuteMacro(const char *filename, EErrorCode *error=0)=0
virtual void Reset()=0
virtual const char * MapCppName(const char *) const
Definition: TInterpreter.h:219
virtual void SaveGlobalsContext()=0
void CallFunc_SetArg(CallFunc_t *func, Short_t param) const
Definition: TInterpreter.h:288
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
virtual TypedefInfo_t * TypedefInfo_FactoryCopy(TypedefInfo_t *) const
Definition: TInterpreter.h:482
virtual void ClearStack()=0
Global functions class (global functions are obtained from CINT).
Definition: TFunction.h:30
void(* Generic_t)(void *, int, void **, void *)
Definition: TInterpreter.h:77
#define R__EXTERN
Definition: DllImport.h:27
char Char_t
Definition: RtypesCore.h:29
virtual ULong64_t GetInterpreterStateMarker() const =0
virtual Int_t SetClassSharedLibs(const char *cls, const char *libs)=0
typedef void((*Func_t)())
virtual Long_t DataMemberInfo_Offset(DataMemberInfo_t *) const
Definition: TInterpreter.h:406
virtual void CreateListOfBaseClasses(TClass *cl) const =0
virtual void * ClassInfo_New(ClassInfo_t *, void *) const
Definition: TInterpreter.h:371
virtual void * ClassInfo_New(ClassInfo_t *, int, void *) const
Definition: TInterpreter.h:370
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
Definition: TListOfEnums.h:36
virtual Long_t ClassInfo_ClassProperty(ClassInfo_t *) const
Definition: TInterpreter.h:346
virtual UInt_t FuncTempInfo_TemplateNargs(FuncTempInfo_t *) const =0
virtual void CallFunc_SetFunc(CallFunc_t *, ClassInfo_t *, const char *, const char *, Long_t *) const
Definition: TInterpreter.h:336
virtual const char * MethodArgInfo_Name(MethodArgInfo_t *) const
Definition: TInterpreter.h:459
virtual Bool_t IsProcessLineLocked() const =0
virtual const char * MethodArgInfo_TypeName(MethodArgInfo_t *) const
Definition: TInterpreter.h:460
Each ROOT class (see TClass) has a linked list of methods.
Definition: TMethod.h:40
virtual void TypedefInfo_Delete(TypedefInfo_t *) const
Definition: TInterpreter.h:479
virtual ClassInfo_t * BaseClassInfo_ClassInfo(BaseClassInfo_t *) const =0
virtual int SetClassAutoparsing(int)
Definition: TInterpreter.h:223
virtual Long_t BaseClassInfo_Offset(BaseClassInfo_t *, void *=0, bool=true) const
Definition: TInterpreter.h:389
virtual void * MethodInfo_InterfaceMethod(MethodInfo_t *) const
Definition: TInterpreter.h:434
virtual const char * Getp2f2funcname(void *) const
Definition: TInterpreter.h:213
virtual TString GetMangledName(TClass *cl, const char *method, const char *params, Bool_t objectIsConst=kFALSE)=0
virtual Bool_t CheckClassInfo(const char *name, Bool_t autoload, Bool_t isClassOrNamespaceOnly=kFALSE)=0
unsigned char UChar_t
Definition: RtypesCore.h:34
virtual void Setgvp(Long_t) const
Definition: TInterpreter.h:225
virtual Long_t BaseClassInfo_Tagnum(BaseClassInfo_t *) const
Definition: TInterpreter.h:391
virtual DeclId_t GetFunction(ClassInfo_t *cl, const char *funcname)=0
virtual void AddIncludePath(const char *path)=0
R__EXTERN TInterpreter * gCling
Definition: TInterpreter.h:504
virtual void CallFunc_ExecWithArgsAndReturn(CallFunc_t *, void *, const void *[]=0, int=0, void *=0) const
Definition: TInterpreter.h:265
void CallFunc_SetArguments(CallFunc_t *func, const T &...args)
Definition: TInterpreter.h:327
virtual Bool_t IsAutoParsingSuspended() const =0
static void output(int code)
Definition: gifencode.c:226
virtual const char * GetSTLIncludePath() const
Definition: TInterpreter.h:137
const Bool_t kTRUE
Definition: Rtypes.h:91
virtual const char * TypedefInfo_TrueName(TypedefInfo_t *) const
Definition: TInterpreter.h:488
virtual int GetSecurityError() const
Definition: TInterpreter.h:216
virtual int ClassInfo_GetMethodNArg(ClassInfo_t *, const char *, const char *, Bool_t=false, ROOT::EFunctionMatchMode=ROOT::kConversionMatch) const
Definition: TInterpreter.h:356
TObject * obj
virtual void * GetInterfaceMethodWithPrototype(TClass *cl, const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode=ROOT::kConversionMatch)=0
virtual const char * GetSharedLibDeps(const char *lib)=0
virtual void CallFunc_SetFunc(CallFunc_t *, ClassInfo_t *, const char *, const char *, bool, Long_t *) const
Definition: TInterpreter.h:335
virtual Bool_t ClassInfo_HasDefaultConstructor(ClassInfo_t *) const
Definition: TInterpreter.h:357
virtual void FuncTempInfo_Delete(FuncTempInfo_t *) const =0
virtual DataMemberInfo_t * DataMemberInfo_FactoryCopy(DataMemberInfo_t *) const
Definition: TInterpreter.h:402
virtual DataMemberInfo_t * DataMemberInfo_Factory(ClassInfo_t *=0) const
Definition: TInterpreter.h:400
virtual Bool_t DataMemberInfo_IsValid(DataMemberInfo_t *) const
Definition: TInterpreter.h:403
virtual void * FindSym(const char *) const
Definition: TInterpreter.h:209
virtual Int_t GetExitCode() const =0
virtual const char * MethodInfo_TypeName(MethodInfo_t *) const
Definition: TInterpreter.h:446
virtual void CreateListOfDataMembers(TClass *cl) const =0
virtual EReturnType MethodInfo_MethodCallReturnType(MethodInfo_t *minfo) const =0
virtual Long_t Getgvp() const
Definition: TInterpreter.h:212
virtual const char * ClassInfo_Name(ClassInfo_t *) const
Definition: TInterpreter.h:377
virtual void GetFunctionOverloads(ClassInfo_t *cl, const char *funcname, std::vector< DeclId_t > &res) const =0
virtual Bool_t CallFunc_IsValid(CallFunc_t *) const
Definition: TInterpreter.h:274
virtual TypedefInfo_t * TypedefInfo_Factory(const char *) const
Definition: TInterpreter.h:481
virtual Bool_t SetErrorMessages(Bool_t enable=kTRUE)=0
virtual void UpdateListOfMethods(TClass *cl) const =0
virtual const char * GetClassSharedLibs(const char *cls)=0
virtual Long_t MethodInfo_Property(MethodInfo_t *) const =0