[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Contnrs' (#fcl)

TObjectStack

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Object instances stack

Declaration

Source position: contnrs.pp line 158

type TObjectStack = class(TStack)

public

  function Push();

  

Push an object on the stack.

  function Pop;

  

Pop the top object of the stack.

  function Peek;

  

Look at the top object in the stack.

end;

Inheritance

TObjectStack

  

Object instances stack

|

TStack

  

Pointer Stack

|

TOrderedList

  

Base class for queues and stacks.

|

TObject

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.

See also

TOrderedList

  

Base class for queues and stacks.

TStack

  

Pointer Stack

TQueue

  

Pointer queue

TObjectQueue


Documentation generated on: May 14 2021