library: libCore #include "TCint.h" |
TCint(const char* name, const char* title) | |
virtual | ~TCint() |
void | TObject::AbstractMethod(const char* method) const |
virtual void | AddIncludePath(const char* path) |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual Int_t | AutoLoad(const char* classname) |
static int | AutoLoadCallback(const char* cls, const char* lib) |
virtual void | TObject::Browse(TBrowser* b) |
virtual Long_t | Calc(const char* line, TInterpreter::EErrorCode* error = 0) |
virtual Bool_t | CheckClassInfo(const char* name) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TNamed::Clear(Option_t* option = "") |
virtual void | ClearFileBusy() |
virtual void | ClearStack() |
virtual TObject* | TNamed::Clone(const char* newname = "") const |
virtual Int_t | TNamed::Compare(const TObject* obj) const |
virtual void | TNamed::Copy(TObject& named) const |
virtual void | CreateListOfBaseClasses(TClass* cl) |
virtual void | CreateListOfDataMembers(TClass* cl) |
virtual void | CreateListOfMethodArgs(TFunction* m) |
virtual void | CreateListOfMethods(TClass* cl) |
virtual void | TObject::Delete(Option_t* option = "") |
virtual Int_t | DeleteGlobal(void* obj) |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() const |
virtual TObject* | TObject::DrawClone(Option_t* option = "") const |
virtual void | TObject::Dump() const |
virtual void | EnableAutoLoading() |
virtual void | EndOfLineAction() |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | Execute(const char* function, const char* params, int* error = 0) |
virtual void | Execute(TObject* obj, TClass* cl, const char* method, const char* params, int* error = 0) |
virtual void | Execute(TObject* obj, TClass* cl, TMethod* method, TObjArray* params, int* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual Long_t | ExecuteMacro(const char* filename, TInterpreter::EErrorCode* error = 0) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual void | TNamed::FillBuffer(char*& buffer) |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
static void* | FindSpecialObject(const char* name, Cint::G__ClassInfo* type, void** prevObj, void** assocPtr) |
virtual const char* | GetClassSharedLibs(const char* cls) |
static const char* | GetCurrentMacroName() |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual Int_t | GetExitCode() const |
virtual const char* | TObject::GetIconName() const |
virtual const char* | GetIncludePath() |
virtual void* | GetInterfaceMethod(TClass* cl, const char* method, const char* params) |
virtual void* | GetInterfaceMethodWithPrototype(TClass* cl, const char* method, const char* proto) |
virtual const char* | GetInterpreterTypeName(const char* name, Bool_t full = kFALSE) |
virtual TString | GetMangledName(TClass* cl, const char* method, const char* params) |
virtual TString | GetMangledNameWithPrototype(TClass* cl, const char* method, const char* proto) |
virtual Int_t | GetMore() const |
virtual const char* | TNamed::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
virtual char* | GetPrompt() |
virtual const char* | GetSharedLibDeps(const char* lib) |
virtual const char* | GetSharedLibs() |
virtual const char* | TNamed::GetTitle() const |
static const char* | GetTopLevelMacroName() |
virtual UInt_t | TObject::GetUniqueID() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TNamed::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual Int_t | InitializeDictionaries() |
virtual void | TObject::Inspect() const |
static TInterpreter*& | TInterpreter::Instance() |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | IsErrorMessagesEnabled() const |
virtual Bool_t | TObject::IsFolder() const |
virtual Bool_t | IsLoaded(const char* filename) const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | IsProcessLineLocked() const |
virtual Bool_t | TNamed::IsSortable() const |
Bool_t | TObject::IsZombie() const |
virtual Int_t | Load(const char* filenam, Bool_t system = kFALSE) |
virtual void | LoadMacro(const char* filename, TInterpreter::EErrorCode* error = 0) |
virtual void | TNamed::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
virtual Bool_t | TObject::Notify() |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::operator delete[](void* ptr, void* vp) |
void* | TObject::operator new(size_t sz) |
void* | TObject::operator new(size_t sz, void* vp) |
void* | TObject::operator new[](size_t sz) |
void* | TObject::operator new[](size_t sz, void* vp) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual void | TNamed::Print(Option_t* option = "") const |
virtual void | PrintIntro() |
virtual Long_t | ProcessLine(const char* line, TInterpreter::EErrorCode* error = 0) |
Long_t | ProcessLineAsynch(const char* line, TInterpreter::EErrorCode* error = 0) |
virtual Long_t | ProcessLineSynch(const char* line, TInterpreter::EErrorCode* error = 0) |
virtual Int_t | TObject::Read(const char* name) |
virtual void | RecursiveRemove(TObject* obj) |
virtual void | Reset() |
virtual void | ResetAll() |
void | TObject::ResetBit(UInt_t f) |
virtual void | ResetGlobals() |
virtual void | RewindDictionary() |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") const |
virtual void | SaveContext() |
virtual void | SaveGlobalsContext() |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | SetClassInfo(TClass* cl, Bool_t reload = kFALSE) |
virtual void | TObject::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
virtual Bool_t | SetErrorMessages(Bool_t enable = kTRUE) |
virtual void | TNamed::SetName(const char* name) |
virtual void | TNamed::SetNameTitle(const char* name, const char* title) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | SetProcessLineLock(Bool_t lock = kTRUE) |
virtual void | TNamed::SetTitle(const char* title = "") |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual Int_t | TNamed::Sizeof() const |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual const char* | TypeName(const char* typeDesc) |
static void | UpdateAllCanvases() |
static void | UpdateClassInfo(char* name, Long_t tagnum) |
virtual void | UpdateListOfGlobalFunctions() |
virtual void | UpdateListOfGlobals() |
virtual void | UpdateListOfTypes() |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const |
TCint(const TCint&) | |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
virtual Int_t | LoadLibraryMap() |
void | TObject::MakeZombie() |
TCint& | operator=(const TCint&) |
enum TInterpreter::EErrorCode { | kNoError | |
kRecoverable | ||
kDangerous | ||
kFatal | ||
kProcessing | ||
}; | ||
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
TString | TNamed::fName | object identifier |
TString | TNamed::fTitle | object title |
Int_t | fMore | 1 if more input is required |
Int_t | fExitCode | value passed to exit() in interpreter |
char | fPrompt[64] | proposed prompt string |
G__dictposition | fDictPos | CINT dictionary context after init |
G__dictposition | fDictPosGlobals | CINT dictionary context after ResetGlobals() |
TString | fSharedLibs | hold a list of lib loaded by G__loadfile |
TString | fIncludePath | hold a list of lib include path |
TEnv* | fMapfile | map of classes and libraries |
Bool_t | fLockProcessLine | true if ProcessLine should lock gCINTMutex |
This class defines an interface to the CINT C/C++ interpreter made by Masaharu Goto from HP Japan. CINT is an almost full ANSI compliant C/C++ interpreter.
Reset CINT internal state in case a previous action was not correctly terminated by G__init_cint() and G__dlmod().
Initialize all registered dictionaries. Normally this is already done by G__init_cint() and G__dlmod().
Enable the automatic loading of shared libraries when a class is used that is stored in a not yet loaded library. Uses the information stored in the class/library map (typically $ROOTSYS/etc/system.rootmap).
It calls a "fantom" method to synchronize user keyboard input and ROOT prompt line.
Load a library file in CINT's memory. if 'system' is true, the library is never unloaded.
Let CINT process a command line. If the command is executed and the result of G__process_cmd is 0, the return value is the int value corresponding to the result of the command (float and double return values will be truncated).
Let CINT process a command line asynch.
Let CINT process a command line synchronously, i.e we are waiting it will be finished.
Directly execute an executable statement (e.g. "func()", "3+5", etc. however not declarations, like "Int_t x;").
Delete object from CINT symbol table so it can not be used anymore. CINT object are always on the heap.
Reset the CINT global object state to the state saved by the last call to TCint::SaveGlobalsContext().
Rewind CINT dictionary to the point where it was before executing the current macro. This function is typically called after SEGV or ctlr-C after doing a longjmp back to the prompt.
Delete obj from CINT symbol table so it cannot be accessed anymore. Returns 1 in case of success and 0 in case object was not in table.
Update the list of pointers to global variables. This function is called by TROOT::GetListOfGlobals().
Update the list of pointers to global functions. This function is called by TROOT::GetListOfGlobalFunctions().
Update the list of pointers to Datatype (typedef) definitions. This function is called by TROOT::GetListOfTypes().
Checks if a class with the specified name is defined in CINT. Returns kFALSE is class is not defined.
Create list of pointers to method arguments for TMethod m.
Return the CINT mangled name for a method of a class with parameters params (params is a string of actual arguments, not formal ones). If the class is 0 the global function list will be searched.
Return the CINT mangled name for a method of a class with a certain
prototype, i.e. "char*,int,float". If the class is 0 the global function
list will be searched.
Return pointer to CINT interface function for a method of a class with parameters params (params is a string of actual arguments, not formal ones). If the class is 0 the global function list will be searched.
Return pointer to CINT interface function for a method of a class with
a certain prototype, i.e. "char*,int,float". If the class is 0 the global
function list will be searched.
The 'name' is known to the interpreter, this function returns the internal version of this name (usually just resolving typedefs) This is used in particular to synchronize between the name used by rootcint and by the run-time enviroment (TClass) Return 0 if the name is not known.
Execute a global function with arguments params.
Execute a method from class cl with arguments params.
Execute a method from class cl with the arguments in array params (params[0] ... params[n] = array of TObjString parameters).
Return the file name of the current un-included interpreted file. See the documentation for GetCurrentMacroName().
Return the file name of the currently interpreted file, included or not. Example to illustrate the difference between GetCurrentMacroName() and GetTopLevelMacroName():inclfile.h
#include <iostream> void inclfunc() { std::cout << "In inclfile.h" << std::endl; std::cout << " TCint::GetCurrentMacroName() returns " << TCint::GetCurrentMacroName() << std::endl; std::cout << " TCint::GetTopLevelMacroName() returns " << TCint::GetTopLevelMacroName() << std::endl; }
#include <iostream> #include "inclfile.h" void mymacro() { std::cout << "In mymacro.C" << std::endl; std::cout << " TCint::GetCurrentMacroName() returns " << TCint::GetCurrentMacroName() << std::endl; std::cout << " TCint::GetTopLevelMacroName() returns " << TCint::GetTopLevelMacroName() << std::endl; std::cout << " Now calling inclfunc..." << std::endl; inclfunc(); }
Running mymacro.C will print: root [0] .x mymacro.C In mymacro.C TCint::GetCurrentMacroName() returns ./mymacro.C TCint::GetTopLevelMacroName() returns ./mymacro.C Now calling inclfunc... In inclfile.h TCint::GetCurrentMacroName() returns inclfile.h TCint::GetTopLevelMacroName() returns ./mymacro.C
Return the absolute type of typeDesc. E.g.: typeDesc = "class TNamed**", returns "TNamed". You need to use the result immediately before it is being overwritten.
Load map between class and library. Cint uses this information to automatically load the shared library for a class (autoload mechanism). See also the AutoLoadCallback() method below.
Load library containing specified class. Returns 0 in case of error and 1 in case if success.
Load library containing specified class. Returns 0 in case of error and 1 in case if success.
Static function called by CINT when it finds an un-indentified object. This function tries to find the UO in the ROOT files, directories, etc. This functions has been registered by the TCint ctor.
Static function called by CINT when it changes the tagnum for a class (e.g. after re-executing the setup function). In such cases we have to update the tagnum in the G__ClassInfo used by the TClass for class "item".
Get the list of shared libraries containing the code for class cls. The first library in the list is the one containing the class, the others are the libraries the first one depends on. Returns 0 in case the library is not found.
Get the list a libraries on which the specified lib depends. The returned string contains as first element the lib itself. Returns 0 in case the lib does not exist or does not have any dependencies.
If error messages are disabled, the interpreter should suppress its failures and warning messages from stdout.
If error messages are disabled, the interpreter should suppress its failures and warning messages from stdout. Return the previous state.
Add the given path to the list of directories in which the interpreter
looks for include files. Only one path item can be specified at a
time, i.e. "path1:path2" is not supported.
Refresh the list of include paths known to the interpreter and return it with -I prepended.