OpenMW
|
Runtime data and engine interface. More...
#include <runtime.hpp>
Public Member Functions | |
Runtime () | |
int | getPC () const |
return program counter. | |
int | getIntegerLiteral (int index) const |
float | getFloatLiteral (int index) const |
std::string | getStringLiteral (int index) const |
void | configure (const Type_Code *code, int codeSize, Context &context) |
void | clear () |
void | setPC (int PC) |
set program counter. | |
void | push (const Data &data) |
push data on stack | |
void | push (Type_Integer value) |
push integer data on stack. | |
void | push (Type_Float value) |
push float data on stack. | |
void | pop () |
pop stack | |
Data & | operator[] (int Index) |
Access stack member, counted from the top. | |
Context & | getContext () |
Private Attributes | |
Context * | mContext |
const Type_Code * | mCode |
int | mCodeSize |
int | mPC |
std::vector< Data > | mStack |
Runtime data and engine interface.
void Interpreter::Runtime::clear | ( | ) |
void Interpreter::Runtime::configure | ( | const Type_Code * | code, |
int | codeSize, | ||
Context & | context | ||
) |
context and code must exist as least until either configure, clear or the destructor is called. codeSize is given in 32-bit words.
float Interpreter::Runtime::getFloatLiteral | ( | int | index | ) | const |
int Interpreter::Runtime::getIntegerLiteral | ( | int | index | ) | const |
int Interpreter::Runtime::getPC | ( | ) | const |
return program counter.
std::string Interpreter::Runtime::getStringLiteral | ( | int | index | ) | const |
Data & Interpreter::Runtime::operator[] | ( | int | Index | ) |
Access stack member, counted from the top.
void Interpreter::Runtime::pop | ( | ) |
pop stack
void Interpreter::Runtime::push | ( | const Data & | data | ) |
push data on stack
void Interpreter::Runtime::push | ( | Type_Integer | value | ) |
push integer data on stack.
void Interpreter::Runtime::push | ( | Type_Float | value | ) |
push float data on stack.
void Interpreter::Runtime::setPC | ( | int | PC | ) |
set program counter.
const Type_Code* Interpreter::Runtime::mCode [private] |
int Interpreter::Runtime::mCodeSize [private] |
Context* Interpreter::Runtime::mContext [private] |
int Interpreter::Runtime::mPC [private] |
std::vector<Data> Interpreter::Runtime::mStack [private] |