OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
ScriptVMStack Class Reference

Public Member Functions

 ScriptVMStack (size_t stackSize)
 
 ScriptVMStack (const ScriptVMStack &other)=delete
 
ScriptVMStackoperator= (const ScriptVMStack &other)=delete
 
 ScriptVMStack (ScriptVMStack &&other)
 
ScriptVMStackoperator= (ScriptVMStack &&other)
 
size_t GetStackSize () const
 
ScriptVariableSetTop (ScriptVariable &newTop)
 
ScriptVariableGetTop () const
 
ScriptVariableGetTop (size_t offset) const
 
ScriptVariableGetTopPtr () const
 
ScriptVariableGetTopPtr (size_t offset) const
 
ScriptVariableGetTopArray (size_t offset=0) const
 
uintptr_t GetIndex () const
 
void MoveTop (ScriptVariable &&other)
 
ScriptVariablePop ()
 
ScriptVariablePop (size_t offset)
 
ScriptVariablePopAndGet ()
 
ScriptVariablePopAndGet (size_t offset)
 
ScriptVariablePush ()
 
ScriptVariablePush (size_t offset)
 
ScriptVariablePushAndGet ()
 
ScriptVariablePushAndGet (size_t offset)
 
void Archive (Archiver &arc)
 

Public Attributes

bool m_bMarkStack
 

Member Function Documentation

◆ Pop()

ScriptVariable & ScriptVMStack::Pop ( )

Pop and return the previous value.

◆ Push()

ScriptVariable & ScriptVMStack::Push ( )

Push and return the previous value.

Member Data Documentation

◆ m_bMarkStack

bool ScriptVMStack::m_bMarkStack

Whether or not the stack is marked. changed by OP_MARK_STACK_POS and OP_RESTORE_STACK_POS


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