Kross::Api::Interpreter Class Referenceabstract
#include <interpreter.h>
Inheritance diagram for Kross::Api::Interpreter:
Public Member Functions | |
| Interpreter (InterpreterInfo *info) | |
| virtual | ~Interpreter () |
| virtual Script * | createScript (ScriptContainer *scriptcontainer)=0 |
Protected Attributes | |
| InterpreterInfo * | m_interpreterinfo |
Detailed Description
Base class for interpreters.
Each scripting backend needs to inheritate it's own interpreter from this class and implementate there backend related stuff. The Interpreter will be managed by the Kross::Manager class.
Definition at line 162 of file interpreter.h.
Constructor & Destructor Documentation
◆ Interpreter()
| Interpreter::Interpreter | ( | InterpreterInfo * | info | ) |
Constructor.
- Parameters
-
info is the InterpreterInfo instance that describes this interpreter.
Definition at line 144 of file interpreter.cpp.
◆ ~Interpreter()
|
virtual |
Destructor.
Definition at line 149 of file interpreter.cpp.
Member Function Documentation
◆ createScript()
|
pure virtual |
Create and return a new interpreter dependend Script instance.
- Parameters
-
scriptcontainer The ScriptContainer to use for the Script instance.
- Returns
- The from Script inherited instance.
Implemented in Kross::Python::PythonInterpreter, and Kross::Ruby::RubyInterpreter.
Member Data Documentation
◆ m_interpreterinfo
|
protected |
The InterpreterInfo instance this interpreter belongs to.
Definition at line 191 of file interpreter.h.
The documentation for this class was generated from the following files:
