xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Aurora::NWScript::NCSStack Class Reference

#include <ncsfile.h>

Inheritance diagram for Aurora::NWScript::NCSStack:
Inheritance graph
[legend]
Collaboration diagram for Aurora::NWScript::NCSStack:
Collaboration graph
[legend]

Public Member Functions

 NCSStack ()
 
 ~NCSStack ()
 
void reset ()
 
bool empty () const
 
Variabletop ()
 
Variable pop ()
 
void push (const Variable &obj)
 
VariablegetRelSP (int32 pos)
 
void setRelSP (int32 pos, const Variable &obj)
 
VariablegetRelBP (int32 pos)
 
void setRelBP (int32 pos, const Variable &obj)
 
int32 getStackPtr ()
 
void setStackPtr (int32 pos)
 
int32 getBasePtr ()
 
void setBasePtr (int32 pos)
 
void print () const
 

Private Attributes

int32 _stackPtr
 
int32 _basePtr
 

Detailed Description

Definition at line 51 of file ncsfile.h.

Constructor & Destructor Documentation

◆ NCSStack()

Aurora::NWScript::NCSStack::NCSStack ( )

Definition at line 61 of file ncsfile.cpp.

References reset().

Here is the call graph for this function:

◆ ~NCSStack()

Aurora::NWScript::NCSStack::~NCSStack ( )

Definition at line 65 of file ncsfile.cpp.

Member Function Documentation

◆ empty()

bool Aurora::NWScript::NCSStack::empty ( ) const

Definition at line 75 of file ncsfile.cpp.

References _stackPtr.

Referenced by Aurora::NWScript::NCSFile::execute().

Here is the caller graph for this function:

◆ getBasePtr()

int32 Aurora::NWScript::NCSStack::getBasePtr ( )

Definition at line 163 of file ncsfile.cpp.

References _basePtr.

Referenced by Aurora::NWScript::NCSFile::o_savebp().

Here is the caller graph for this function:

◆ getRelBP()

Variable & Aurora::NWScript::NCSStack::getRelBP ( int32  pos)

◆ getRelSP()

Variable & Aurora::NWScript::NCSStack::getRelSP ( int32  pos)

◆ getStackPtr()

int32 Aurora::NWScript::NCSStack::getStackPtr ( )

Definition at line 149 of file ncsfile.cpp.

References _stackPtr.

Referenced by Aurora::NWScript::NCSFile::o_movsp(), Aurora::NWScript::NCSFile::o_savebp(), and Aurora::NWScript::NCSFile::run().

Here is the caller graph for this function:

◆ pop()

Variable Aurora::NWScript::NCSStack::pop ( )

◆ print()

void Aurora::NWScript::NCSStack::print ( ) const

Definition at line 174 of file ncsfile.cpp.

References _stackPtr, Common::UString::c_str(), debugC(), DebugMan, Aurora::NWScript::formatVariable(), Aurora::NWScript::Variable::getType(), and Common::kDebugScripts.

Referenced by Aurora::NWScript::NCSFile::executeStep().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ push()

void Aurora::NWScript::NCSStack::push ( const Variable obj)

◆ reset()

void Aurora::NWScript::NCSStack::reset ( )

Definition at line 68 of file ncsfile.cpp.

References _basePtr, and _stackPtr.

Referenced by NCSStack(), and Aurora::NWScript::NCSFile::reset().

Here is the caller graph for this function:

◆ setBasePtr()

void Aurora::NWScript::NCSStack::setBasePtr ( int32  pos)

Definition at line 167 of file ncsfile.cpp.

References _basePtr.

Referenced by Aurora::NWScript::NCSFile::o_restorebp(), Aurora::NWScript::NCSFile::o_savebp(), and Aurora::NWScript::NCSFile::run().

Here is the caller graph for this function:

◆ setRelBP()

void Aurora::NWScript::NCSStack::setRelBP ( int32  pos,
const Variable obj 
)

Definition at line 138 of file ncsfile.cpp.

References _basePtr.

Referenced by Aurora::NWScript::NCSFile::o_cpdownbp(), Aurora::NWScript::NCSFile::o_decbp(), and Aurora::NWScript::NCSFile::o_incbp().

Here is the caller graph for this function:

◆ setRelSP()

void Aurora::NWScript::NCSStack::setRelSP ( int32  pos,
const Variable obj 
)

Definition at line 116 of file ncsfile.cpp.

References _stackPtr.

Referenced by Aurora::NWScript::NCSFile::o_cpdownsp(), Aurora::NWScript::NCSFile::o_decsp(), and Aurora::NWScript::NCSFile::o_incsp().

Here is the caller graph for this function:

◆ setStackPtr()

void Aurora::NWScript::NCSStack::setStackPtr ( int32  pos)

Definition at line 153 of file ncsfile.cpp.

References _stackPtr.

Referenced by Aurora::NWScript::NCSFile::o_movsp().

Here is the caller graph for this function:

◆ top()

Variable & Aurora::NWScript::NCSStack::top ( )

Member Data Documentation

◆ _basePtr

int32 Aurora::NWScript::NCSStack::_basePtr
private

Definition at line 80 of file ncsfile.h.

Referenced by getBasePtr(), getRelBP(), reset(), setBasePtr(), and setRelBP().

◆ _stackPtr

int32 Aurora::NWScript::NCSStack::_stackPtr
private

Definition at line 79 of file ncsfile.h.

Referenced by empty(), getRelSP(), getStackPtr(), pop(), print(), push(), reset(), setRelSP(), setStackPtr(), and top().


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