OpenMW
Public Member Functions | Private Attributes
Interpreter::Runtime Class Reference

Runtime data and engine interface. More...

#include <runtime.hpp>

List of all members.

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
Dataoperator[] (int Index)
 Access stack member, counted from the top.
ContextgetContext ()

Private Attributes

ContextmContext
const Type_CodemCode
int mCodeSize
int mPC
std::vector< DatamStack

Detailed Description

Runtime data and engine interface.


Constructor & Destructor Documentation


Member Function Documentation

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

return program counter.

std::string Interpreter::Runtime::getStringLiteral ( int  index) const
Data & Interpreter::Runtime::operator[] ( int  Index)

Access stack member, counted from the top.

pop stack

void Interpreter::Runtime::push ( const Data data)

push data on stack

push integer data on stack.

push float data on stack.

void Interpreter::Runtime::setPC ( int  PC)

set program counter.


Member Data Documentation

std::vector<Data> Interpreter::Runtime::mStack [private]

The documentation for this class was generated from the following files: