Skip to content

TObjectStack

Object instances stack.

Declaration

Source position: contnrs.pp line 166

type

  TObjectStack = class(TStack)
  public
    function Push : TObject;
    function Pop : TObject;
    function Peek : TObject;
  end;

Description

TObjectStack is a stack implementation which manages pointers only.

TObjectStack introduces no new behaviour, it simply overrides some methods to accept and/or return TObject instances instead of pointers.

Methods

Member Visibility Description
Peek public Look at the top object in the stack.
Pop public Pop the top object of the stack.
Push public Push an object on the stack.
See all Methods

See also

Name Description
TOrderedList Base class for queues and stacks.
TStack Pointer Stack.
TQueue Pointer queue.
TObjectQueue