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

TObjectQueue.Push

Push an object on the queue

Declaration

Source position: contnrs.pp line 176

public function TObjectQueue.Push(

  AObject: TObject

):TObject;

Arguments

AObject

  

Object to push on the queue

Function result

The element just pushed on the queue

Description

Push pushes another object on the queue. It overrides the Push method as implemented in TQueue so it accepts only objects as arguments.

Errors

If not enough memory is available to expand the queue, an exception may be raised.

See also

TObjectQueue.Pop

  

Pop the first element off the queue

TObjectQueue.Peek

  

Look at the first object in the queue.


Documentation generated on: May 14 2021