Class TGenStack

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type generic TGenStack<_TItem_,_TContainer_> = class(TContainer)

Description

no description available, TContainer description follows

Hierarchy

Overview

Methods

Public procedure Clear;
Public constructor Create;
Public destructor Destroy; override;
Public function IsEmpty: Boolean; inline;
Public procedure Pop;
Public procedure Push(const Item: _TItem_);
Public procedure ReadTop(out Value : _TItem_);
Public function Top : _TItem_;

Properties

Public property Size : Integer read GetSize;

Description

Methods

Public procedure Clear;

Removes all the items from the stack.

Public constructor Create;

Creates an empty stack.

Public destructor Destroy; override;

Destroys the stack.

Public function IsEmpty: Boolean; inline;

Returns true if the stack is empty.

Public procedure Pop;

Removes the item from the top of the stack.

Public procedure Push(const Item: _TItem_);

Adds Item to the top of the stack.

Public procedure ReadTop(out Value : _TItem_);
 
Public function Top : _TItem_;

Returns the item at the top of the stack.

Properties

Public property Size : Integer read GetSize;

Number of items.


Generated by PasDoc 0.13.0 on 2014-07-29 16:12:40