Class TGenPriorityQueue
Unit
GContnrs
Declaration
type generic TGenPriorityQueue<_TItem_> = class(TContainer)
Description
no description available, TContainer description follows Hierarchy
Overview
Internal Types
|
TCompareItems = function (const A, B: _TItem_) : Integer of object; |
Methods
|
procedure Clear; |
|
constructor Create(InitialCapacity : Integer = 16); |
|
function DefaultCompareItems(const A, B: _TItem_) : Integer; virtual; |
|
function IsEmpty: Boolean; inline; |
|
procedure Pack; |
|
procedure Pop; |
|
procedure Push(const Item: _TItem_); |
|
procedure ReadTop(out Value: _TItem_); |
|
procedure Reserve(MinCapacity : Integer); |
|
function Top : _TItem_; |
Properties
Description
Internal Types
|
TCompareItems = function (const A, B: _TItem_) : Integer of object; |
|
Methods
|
procedure Clear; |
Empty the queue of all items.
|
|
constructor Create(InitialCapacity : Integer = 16); |
Creates an empty priority queue.
|
|
function DefaultCompareItems(const A, B: _TItem_) : Integer; virtual; |
|
|
function IsEmpty: Boolean; inline; |
Returns true if the priority queue is empty.
|
|
procedure Pack; |
Frees unused memory.
|
|
procedure Pop; |
Removes the item from the top of the stack.
|
|
procedure Push(const Item: _TItem_); |
Adds Item to the top of the stack.
|
|
procedure ReadTop(out Value: _TItem_); |
|
|
procedure Reserve(MinCapacity : Integer); |
If necessary, increases the capacity of the container to ensure that it can hold at least MinCapacity items.
|
|
function Top : _TItem_; |
Returns the item at the top of the stack.
|
Properties
|
property Capacity : Integer read fCapacity; |
Capacity of the container.
|
|
property OnCompareItems : TCompareItems read fOnCompareItems write SetOnCompareItems; |
|
|
property Size: Integer read fSize; |
Number of elements.
|
Generated by PasDoc 0.13.0 on 2014-07-29 16:12:40
|