OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Interpreter::Runtime Class Reference

Runtime data and engine interface. More...

#include <runtime.hpp>

Collaboration diagram for Interpreter::Runtime:

Public Member Functions

 Runtime ()
 
int getPC () const
 return program counter. More...
 
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. More...
 
void push (const Data &data)
 push data on stack More...
 
void push (Type_Integer value)
 push integer data on stack. More...
 
void push (Type_Float value)
 push float data on stack. More...
 
void pop ()
 pop stack More...
 
Dataoperator[] (int Index)
 Access stack member, counted from the top. More...
 
ContextgetContext ()
 

Private Attributes

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

Detailed Description

Runtime data and engine interface.

Constructor & Destructor Documentation

Interpreter::Runtime::Runtime ( )

Member Function Documentation

void Interpreter::Runtime::clear ( )

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Context & Interpreter::Runtime::getContext ( )
float Interpreter::Runtime::getFloatLiteral ( int  index) const

Here is the caller graph for this function:

int Interpreter::Runtime::getIntegerLiteral ( int  index) const

Here is the caller graph for this function:

int Interpreter::Runtime::getPC ( ) const

return program counter.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void Interpreter::Runtime::push ( Type_Float  value)

push float data on stack.

Here is the call graph for this function:

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

set program counter.

Here is the caller graph for this function:

Member Data Documentation

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

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