CoreClasses REALbasic Plugin

ObjectStack Class

ObjectStack is a class that implements a stack (first in last out algorithm) for objects.

Object
   ObjectStack

class ObjectStack implements

IIterator

IObjectAddable

Properties

SizeUse this property to get the size (element count) of the stack.

Methods

AddUse this method to add a object to the stack.
AddItemsUse this method to add multiple objects from any container that implements the IIterator interface.
GetNextUse to get next item from the ObjectStack.
HasNextUse to get info if there are more items in the ObjectStack.
MoveFirstUse to reset the iterator in the ObjectStack.
PeekNextUse this function to peek at next item from the ObjectStack without causing iteration.
PopUse this method to pop one item off the stack.
PushUse this method to push one item onto the stack.
TopUse this function to read from the top of the stack.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86