Sign in Join
FPDoc Onlineexperiment

TOrderedList class

In unit Contnrs

Base class for queues and stacks.

Declaration

pascal
TOrderedList = class(TObject)

Inheritance

  1. TOrderedList
  2. TObject

Descends from it: TQueue TStack

Description

TOrderedList provides the base class for TQueue and TStack. It provides an interface for pushing and popping elements on or off the list, and manages the internal list of pointers.

Note that TOrderedList does not manage objects on the stack, i.e. objects are not freed when the ordered list is destroyed.

See also

Properties

Listprotected

Methods

PushItemprotected
PopItemprotected
PeekItemprotected
CreatepublicCreate a new ordered list.
DestroypublicFree an ordered list.
CountpublicNumber of elements on the list.
AtLeastpublicCheck whether the list contains a certain number of elements.
PushpublicPush another element on the list.
PoppublicRemove an element from the list.
PeekpublicReturn the next element to be popped from the list.

Inherited

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.