TStack

Abstract base class for collections of TElement that store their elements in a last-in-first-out manner.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TCollection<TElement>Abstract base class for collections that store elements of type TElement
4TStack

Source

Collection.Stack.pas (25)

Description

Using Push and Pop one can respectively add elements to and and remove elements from the Top of the stack. Iteration over the contents of a stack will go from top to bottom.

Methods

ScopeVisibilityResultNameDescription
InstanceprotectedTElementGetTop()
InstancepublicTBooleanAdd(Element: TElement)
InstancepublicTElementExtract(Element: TElement)
InstancepublicTElementDequeue()
InstancepublicPush(Element: TElement)
InstancepublicTElementExtractTop()
InstancepublicTElementPop()