xoreos
0.0.5
|
#include <ncsfile.h>
Public Member Functions | |
NCSStack () | |
~NCSStack () | |
void | reset () |
bool | empty () const |
Variable & | top () |
Variable | pop () |
void | push (const Variable &obj) |
Variable & | getRelSP (int32 pos) |
void | setRelSP (int32 pos, const Variable &obj) |
Variable & | getRelBP (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 |
Aurora::NWScript::NCSStack::NCSStack | ( | ) |
Definition at line 61 of file ncsfile.cpp.
References reset().
Aurora::NWScript::NCSStack::~NCSStack | ( | ) |
Definition at line 65 of file ncsfile.cpp.
bool Aurora::NWScript::NCSStack::empty | ( | ) | const |
Definition at line 75 of file ncsfile.cpp.
References _stackPtr.
Referenced by Aurora::NWScript::NCSFile::execute().
int32 Aurora::NWScript::NCSStack::getBasePtr | ( | ) |
Definition at line 163 of file ncsfile.cpp.
References _basePtr.
Referenced by Aurora::NWScript::NCSFile::o_savebp().
Definition at line 127 of file ncsfile.cpp.
References _basePtr.
Referenced by Aurora::NWScript::NCSFile::o_cptopbp(), Aurora::NWScript::NCSFile::o_decbp(), Aurora::NWScript::NCSFile::o_incbp(), and Aurora::NWScript::NCSFile::o_storestate().
Definition at line 105 of file ncsfile.cpp.
References _stackPtr.
Referenced by Aurora::NWScript::NCSFile::o_cpdownbp(), Aurora::NWScript::NCSFile::o_cpdownsp(), Aurora::NWScript::NCSFile::o_cptopsp(), Aurora::NWScript::NCSFile::o_decsp(), Aurora::NWScript::NCSFile::o_getref(), Aurora::NWScript::NCSFile::o_getrefarray(), Aurora::NWScript::NCSFile::o_incsp(), Aurora::NWScript::NCSFile::o_readarray(), Aurora::NWScript::NCSFile::o_storestate(), and Aurora::NWScript::NCSFile::o_writearray().
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().
Variable Aurora::NWScript::NCSStack::pop | ( | ) |
Definition at line 86 of file ncsfile.cpp.
References _stackPtr.
Referenced by Aurora::NWScript::NCSFile::callEngine(), Aurora::NWScript::NCSFile::o_add(), Aurora::NWScript::NCSFile::o_booland(), Aurora::NWScript::NCSFile::o_comp(), Aurora::NWScript::NCSFile::o_destruct(), Aurora::NWScript::NCSFile::o_div(), Aurora::NWScript::NCSFile::o_eq(), Aurora::NWScript::NCSFile::o_excor(), Aurora::NWScript::NCSFile::o_geq(), Aurora::NWScript::NCSFile::o_getrefarray(), Aurora::NWScript::NCSFile::o_gt(), Aurora::NWScript::NCSFile::o_incor(), Aurora::NWScript::NCSFile::o_jnz(), Aurora::NWScript::NCSFile::o_jz(), Aurora::NWScript::NCSFile::o_leq(), Aurora::NWScript::NCSFile::o_logand(), Aurora::NWScript::NCSFile::o_logor(), Aurora::NWScript::NCSFile::o_lt(), Aurora::NWScript::NCSFile::o_mod(), Aurora::NWScript::NCSFile::o_mul(), Aurora::NWScript::NCSFile::o_neg(), Aurora::NWScript::NCSFile::o_neq(), Aurora::NWScript::NCSFile::o_not(), Aurora::NWScript::NCSFile::o_readarray(), Aurora::NWScript::NCSFile::o_restorebp(), Aurora::NWScript::NCSFile::o_shleft(), Aurora::NWScript::NCSFile::o_shright(), Aurora::NWScript::NCSFile::o_sub(), Aurora::NWScript::NCSFile::o_ushright(), and Aurora::NWScript::NCSFile::o_writearray().
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().
void Aurora::NWScript::NCSStack::push | ( | const Variable & | obj | ) |
Definition at line 93 of file ncsfile.cpp.
References _stackPtr.
Referenced by Aurora::NWScript::NCSFile::callEngine(), Aurora::NWScript::NCSFile::o_add(), Aurora::NWScript::NCSFile::o_booland(), Aurora::NWScript::NCSFile::o_comp(), Aurora::NWScript::NCSFile::o_const(), Aurora::NWScript::NCSFile::o_cptopbp(), Aurora::NWScript::NCSFile::o_cptopsp(), Aurora::NWScript::NCSFile::o_destruct(), Aurora::NWScript::NCSFile::o_div(), Aurora::NWScript::NCSFile::o_eq(), Aurora::NWScript::NCSFile::o_excor(), Aurora::NWScript::NCSFile::o_geq(), Aurora::NWScript::NCSFile::o_getref(), Aurora::NWScript::NCSFile::o_getrefarray(), Aurora::NWScript::NCSFile::o_gt(), Aurora::NWScript::NCSFile::o_incor(), Aurora::NWScript::NCSFile::o_leq(), Aurora::NWScript::NCSFile::o_logand(), Aurora::NWScript::NCSFile::o_logor(), Aurora::NWScript::NCSFile::o_lt(), Aurora::NWScript::NCSFile::o_mod(), Aurora::NWScript::NCSFile::o_mul(), Aurora::NWScript::NCSFile::o_neg(), Aurora::NWScript::NCSFile::o_neq(), Aurora::NWScript::NCSFile::o_not(), Aurora::NWScript::NCSFile::o_readarray(), Aurora::NWScript::NCSFile::o_rsadd(), Aurora::NWScript::NCSFile::o_savebp(), Aurora::NWScript::NCSFile::o_shleft(), Aurora::NWScript::NCSFile::o_shright(), Aurora::NWScript::NCSFile::o_sub(), Aurora::NWScript::NCSFile::o_ushright(), and Aurora::NWScript::NCSFile::run().
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().
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().
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().
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().
void Aurora::NWScript::NCSStack::setStackPtr | ( | int32 | pos | ) |
Definition at line 153 of file ncsfile.cpp.
References _stackPtr.
Referenced by Aurora::NWScript::NCSFile::o_movsp().
Variable & Aurora::NWScript::NCSStack::top | ( | ) |
Definition at line 79 of file ncsfile.cpp.
References _stackPtr.
Referenced by Aurora::NWScript::NCSFile::callEngine(), Aurora::NWScript::NCSFile::execute(), Aurora::NWScript::NCSFile::o_destruct(), Aurora::NWScript::NCSFile::o_getref(), Aurora::NWScript::NCSFile::o_getrefarray(), and Aurora::NWScript::NCSFile::o_writearray().
|
private |
Definition at line 80 of file ncsfile.h.
Referenced by getBasePtr(), getRelBP(), reset(), setBasePtr(), and setRelBP().
|
private |
Definition at line 79 of file ncsfile.h.
Referenced by empty(), getRelSP(), getStackPtr(), pop(), print(), push(), reset(), setRelSP(), setStackPtr(), and top().