CoreClasses Xojo Plugin

ObjectStack Class (console safe)

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

This class supports Xojo’s For each syntax when on Xojo 2019r2 or later.

Object
   ObjectStack

class ObjectStack implements

IIterator

IObjectAddable

Iterable

Iterator

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:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS