Class TSortedHashSet

Unit

Declaration

type TSortedHashSet<T> = class(TCustomSet<T>)

Description

No description available, ancestor TCustomSet description follows

TCustomHashSet<T>

Hierarchy

Overview

Internal Classes and Records

Public TPointersEnumerator = class(TCustomPointersEnumerator<T,PT>)
Public TSortedHashSetEnumerator = class(TCustomSetEnumerator)
Protected TSortedHashSetEqualityComparer = class(TInterfacedObject, IEqualityComparer<PT>)

Fields

Protected FInternalDictionary: TOpenAddressingLP<PT, TEmptyRecord>;
Protected FInternalTree: TAVLTree<T>;

Methods

Private procedure InternalDictionaryNotify(ASender: TObject; constref AItem: PT; AAction: TCollectionNotification);
Protected function DoGetEnumerator: TEnumerator<T>; override;
Protected function GetCount: SizeInt; override;
Protected function GetCapacity: SizeInt; override;
Protected procedure SetCapacity(AValue: SizeInt); override;
Protected function GetOnNotify: TCollectionNotifyEvent<T>; override;
Protected procedure SetOnNotify(AValue: TCollectionNotifyEvent<T>); override;
Protected function GetPtrEnumerator: TEnumerator<PT>; override;
Public constructor Create; override; overload;
Public constructor Create(const AComparer: IEqualityComparer<T>); overload;
Public constructor Create(const AComparer: IComparer<T>); overload;
Public constructor Create(const AComparer: IComparer<T>; const AEqualityComparer: IEqualityComparer<T>); overload;
Public destructor Destroy; override;
Public function GetEnumerator: TCustomSetEnumerator; override;
Public function Add(constref AValue: T): Boolean; override;
Public function Remove(constref AValue: T): Boolean; override;
Public function Extract(constref AValue: T): T; override;
Public procedure Clear; override;
Public function Contains(constref AValue: T): Boolean; override;
Public procedure TrimExcess; override;

Description

Fields

Protected FInternalDictionary: TOpenAddressingLP<PT, TEmptyRecord>;
 
Protected FInternalTree: TAVLTree<T>;
 

Methods

Private procedure InternalDictionaryNotify(ASender: TObject; constref AItem: PT; AAction: TCollectionNotification);
 
Protected function DoGetEnumerator: TEnumerator<T>; override;
 
Protected function GetCount: SizeInt; override;
 
Protected function GetCapacity: SizeInt; override;
 
Protected procedure SetCapacity(AValue: SizeInt); override;
 
Protected function GetOnNotify: TCollectionNotifyEvent<T>; override;
 
Protected procedure SetOnNotify(AValue: TCollectionNotifyEvent<T>); override;
 
Protected function GetPtrEnumerator: TEnumerator<PT>; override;
 
Public constructor Create; override; overload;
 
Public constructor Create(const AComparer: IEqualityComparer<T>); overload;
 
Public constructor Create(const AComparer: IComparer<T>); overload;
 
Public constructor Create(const AComparer: IComparer<T>; const AEqualityComparer: IEqualityComparer<T>); overload;
 
Public destructor Destroy; override;
 
Public function GetEnumerator: TCustomSetEnumerator; override;
 
Public function Add(constref AValue: T): Boolean; override;
 
Public function Remove(constref AValue: T): Boolean; override;
 
Public function Extract(constref AValue: T): T; override;
 
Public procedure Clear; override;
 
Public function Contains(constref AValue: T): Boolean; override;
 
Public procedure TrimExcess; override;
 

Generated by PasDoc 0.15.0.