Class TQueue

Unit

Declaration

type TQueue<T> = class(TCustomList<T>)

Description

No description available, ancestor TCustomList description follows

More info: http://stackoverflow.com/questions/5232198/about-vectors-growth TODO: custom memory managers (as constraints) ˜approximation to golden ratio: n = n * 1.5 } {$DEFINE CUSTOM_LIST_CAPACITY_INC := Result * 2} // standard inc

Hierarchy

Overview

Internal Classes and Records

Public TEnumerator = class(TCustomListEnumerator<T>)
Public TPointersEnumerator = class(TCustomPointersEnumerator<T,PT>)

Fields

Private FLow: SizeInt;

Methods

Protected function GetPtrEnumerator: TEnumerator<PT>; override;
Protected function DoGetEnumerator: TEnumerator<T>; override;
Public function GetEnumerator: TEnumerator; reintroduce;
Protected procedure SetCapacity(AValue: SizeInt); override;
Protected function DoRemove(AIndex: SizeInt; ACollectionNotification: TCollectionNotification): T; override;
Protected function GetCount: SizeInt; override;
Public constructor Create(ACollection: TEnumerable<T>); overload;
Public destructor Destroy; override;
Public procedure Enqueue(constref AValue: T);
Public function Dequeue: T;
Public function Extract: T;
Public function Peek: T;
Public procedure Clear;
Public procedure TrimExcess; override;

Description

Fields

Private FLow: SizeInt;
 

Methods

Protected function GetPtrEnumerator: TEnumerator<PT>; override;
 
Protected function DoGetEnumerator: TEnumerator<T>; override;

bug #24287 - workaround for generics type name conflict (Identifier not found) next bug workaround - for another error related to previous workaround change order (function must be declared before TEnumerator declaration}

Public function GetEnumerator: TEnumerator; reintroduce;
 
Protected procedure SetCapacity(AValue: SizeInt); override;
 
Protected function DoRemove(AIndex: SizeInt; ACollectionNotification: TCollectionNotification): T; override;
 
Protected function GetCount: SizeInt; override;
 
Public constructor Create(ACollection: TEnumerable<T>); overload;
 
Public destructor Destroy; override;
 
Public procedure Enqueue(constref AValue: T);
 
Public function Dequeue: T;
 
Public function Extract: T;
 
Public function Peek: T;
 
Public procedure Clear;
 
Public procedure TrimExcess; override;
 

Generated by PasDoc 0.15.0.