BaseUCStack Class Reference

#include <UCStack.h>

Inheritance diagram for BaseUCStack:

DynamicUCStack UCStack List of all members.

Public Member Functions

 BaseUCStack (uint32 len, uint8 *b)
virtual ~BaseUCStack ()
uint32 getSize () const
uint32 stacksize () const
void addSP (const sint32 offset)
unsigned int getSP () const
void setSP (unsigned int pos)
void push1 (uint8 val)
void push2 (uint16 val)
void push4 (uint32 val)
void push0 (const uint32 size)
void push (const uint8 *in, const uint32 size)
uint16 pop2 ()
uint32 pop4 ()
void pop (uint8 *out, const uint32 size)
uint8 access1 (const uint32 offset) const
uint16 access2 (const uint32 offset) const
uint32 access4 (const uint32 offset) const
uint8access (const uint32 offset)
uint8access ()
void assign1 (const uint32 offset, const uint8 val)
void assign2 (const uint32 offset, const uint16 val)
void assign4 (const uint32 offset, const uint32 val)
void assign (const uint32 offset, const uint8 *in, const uint32 len)

Protected Attributes

uint8buf
uint8buf_ptr
uint32 size

Detailed Description

Definition at line 26 of file UCStack.h.


Constructor & Destructor Documentation

BaseUCStack::BaseUCStack ( uint32  len,
uint8 b 
) [inline]

Definition at line 34 of file UCStack.h.

References buf, buf_ptr, and size.

virtual BaseUCStack::~BaseUCStack (  )  [inline, virtual]

Definition at line 39 of file UCStack.h.


Member Function Documentation

uint8* BaseUCStack::access (  )  [inline]

Definition at line 133 of file UCStack.h.

References buf_ptr.

uint8* BaseUCStack::access ( const uint32  offset  )  [inline]

Definition at line 130 of file UCStack.h.

References buf.

Referenced by Item::callUsecodeEvent_AvatarStoleSomething(), Item::callUsecodeEvent_cast(), Item::callUsecodeEvent_guardianBark(), Item::callUsecodeEvent_schedule(), UCMachine::dereferencePointer(), UCMachine::execProcess(), and UCProcess::load().

uint8 BaseUCStack::access1 ( const uint32  offset  )  const [inline]

Definition at line 120 of file UCStack.h.

References buf.

Referenced by UCMachine::execProcess().

uint16 BaseUCStack::access2 ( const uint32  offset  )  const [inline]

Definition at line 123 of file UCStack.h.

References buf.

Referenced by UCMachine::execProcess(), and UCMachine::ptrToObject().

uint32 BaseUCStack::access4 ( const uint32  offset  )  const [inline]

Definition at line 126 of file UCStack.h.

References buf.

Referenced by UCMachine::execProcess().

void BaseUCStack::addSP ( const sint32  offset  )  [inline]

Definition at line 49 of file UCStack.h.

References buf_ptr.

Referenced by UCMachine::execProcess(), and UCProcess::load().

void BaseUCStack::assign ( const uint32  offset,
const uint8 in,
const uint32  len 
) [inline]

Definition at line 154 of file UCStack.h.

References buf.

Referenced by UCMachine::assignPointer(), and UCMachine::execProcess().

void BaseUCStack::assign1 ( const uint32  offset,
const uint8  val 
) [inline]

Definition at line 141 of file UCStack.h.

References buf.

Referenced by UCMachine::execProcess().

void BaseUCStack::assign2 ( const uint32  offset,
const uint16  val 
) [inline]

Definition at line 144 of file UCStack.h.

References buf.

Referenced by UCMachine::execProcess().

void BaseUCStack::assign4 ( const uint32  offset,
const uint32  val 
) [inline]

Definition at line 148 of file UCStack.h.

References buf.

Referenced by UCMachine::execProcess().

uint32 BaseUCStack::getSize (  )  const [inline]

Definition at line 41 of file UCStack.h.

References size.

unsigned int BaseUCStack::getSP (  )  const [inline]

Definition at line 53 of file UCStack.h.

References buf, and buf_ptr.

Referenced by UCProcess::call(), UCMachine::execProcess(), UCProcess::load(), and UCStack::save().

void BaseUCStack::pop ( uint8 out,
const uint32  size 
) [inline]

Definition at line 111 of file UCStack.h.

References buf_ptr.

Referenced by UCMachine::execProcess().

uint16 BaseUCStack::pop2 (  )  [inline]

Definition at line 97 of file UCStack.h.

References buf_ptr.

Referenced by Item::checkLoopScript(), UCMachine::execProcess(), and UCProcess::ret().

uint32 BaseUCStack::pop4 (  )  [inline]

Definition at line 103 of file UCStack.h.

References buf_ptr.

Referenced by UCMachine::execProcess().

void BaseUCStack::push ( const uint8 in,
const uint32  size 
) [inline]

Definition at line 88 of file UCStack.h.

References buf_ptr.

Referenced by UCMachine::execProcess(), and UCProcess::load().

void BaseUCStack::push0 ( const uint32  size  )  [inline]

Definition at line 83 of file UCStack.h.

References buf_ptr.

Referenced by UCMachine::execProcess().

void BaseUCStack::push1 ( uint8  val  )  [inline]

Definition at line 65 of file UCStack.h.

References buf_ptr.

Referenced by UCMachine::execProcess().

void BaseUCStack::push2 ( uint16  val  )  [inline]

Definition at line 70 of file UCStack.h.

References buf_ptr.

Referenced by UCProcess::call(), Item::callUsecodeEvent_AvatarStoleSomething(), Item::callUsecodeEvent_cast(), Item::callUsecodeEvent_guardianBark(), Item::checkLoopScript(), and UCMachine::execProcess().

void BaseUCStack::push4 ( uint32  val  )  [inline]

Definition at line 75 of file UCStack.h.

References buf_ptr.

Referenced by Item::callUsecodeEvent_schedule(), UCMachine::execProcess(), and UCProcess::load().

void BaseUCStack::setSP ( unsigned int  pos  )  [inline]

Definition at line 57 of file UCStack.h.

References buf, and buf_ptr.

Referenced by UCProcess::ret().

uint32 BaseUCStack::stacksize (  )  const [inline]

Definition at line 45 of file UCStack.h.

References buf, buf_ptr, and size.

Referenced by UCMachine::execProcess(), and UCStack::save().


Member Data Documentation

uint8* BaseUCStack::buf [protected]

Definition at line 29 of file UCStack.h.

Referenced by access(), access1(), access2(), access4(), assign(), assign1(), assign2(), assign4(), BaseUCStack(), getSP(), UCStack::load(), setSP(), stacksize(), and DynamicUCStack::~DynamicUCStack().

uint8* BaseUCStack::buf_ptr [protected]

Definition at line 30 of file UCStack.h.

Referenced by access(), addSP(), BaseUCStack(), getSP(), UCStack::load(), pop(), pop2(), pop4(), push(), push0(), push1(), push2(), push4(), UCStack::save(), setSP(), and stacksize().

uint32 BaseUCStack::size [protected]

Definition at line 31 of file UCStack.h.

Referenced by BaseUCStack(), getSize(), UCStack::load(), UCStack::save(), and stacksize().


The documentation for this class was generated from the following file:
Generated on Fri Jul 27 22:28:45 2007 for pentagram by  doxygen 1.4.7