Public Methods |
|
| VirtualMachine () |
|
| ~VirtualMachine () |
| void | setProgram (ObjectFile *pFile) |
| | Associate a VM program with the VirtualMachine. More...
|
| const ObjectFile* | getProgram ()const throw () |
| | Get the associated program. More...
|
|
void | setGlobalObject (const string &sName,Object *pObject) throw () |
| | Set a object into the global object table.
|
|
Object* | getGlobalObject (const string &sName)const throw () |
| | Get a object from the global object table.
|
| void | run () throw (RuntimeException) |
| | Execute the program loaded into the virtual machine. More...
|
| void | setDebugger (Debugger *pDebugger) throw () |
| | Set a custom debugger to watch and debug program execution. More...
|
|
Debugger* | getDebugger ()const throw () |
| | Get the currently installed debugger.
|
|
void | setTrapHandler (int trap,TrapHandler *pTrapHandler) throw () |
|
TrapHandler* | getTrapHandler (int trap)const throw () |
Friends |
| class | VirtualMachineImp |
The class implements the facade design-pattern using the C++ Pimpl-idiom.