Sign in Join
FPDoc Onlineexperiment

TStack class

In unit Contnrs

Pointer Stack.

Declaration

pascal
TStack = class(TOrderedList)

Inheritance

  1. TStack
  2. TOrderedList
  3. TObject

Descends from it: TObjectStack

Description

TStack is a descendent of TOrderedList which implements Push and Pop behaviour as a stack: what is last pushed on the stack, is popped of first (LIFO: Last in, first out).

TStack offers no new methods, it merely implements some abstract methods introduced by TOrderedList

See also

Methods

PushItemprotected

Inherited

From TOrderedList (10)

AtLeast Count Create Destroy List Peek PeekItem Pop PopItem Push

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.