Class THashSet

Unit

Declaration

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

Description

THashSet<T>

Hierarchy

Overview

Internal Classes and Records

Public THashSetEnumerator = class(TCustomSetEnumerator)
Public TPointersEnumerator = class(TCustomPointersEnumerator<T,PT>)

Fields

Protected FInternalDictionary: TOpenAddressingLP<T, TEmptyRecord>;

Methods

Private procedure InternalDictionaryNotify(ASender: TObject; constref AItem: T; AAction: TCollectionNotification);
Protected function GetPtrEnumerator: TEnumerator<PT>; 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;
Public constructor Create; override; overload;
Public constructor Create(const AComparer: IEqualityComparer<T>); virtual; 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<T, TEmptyRecord>;
 

Methods

Private procedure InternalDictionaryNotify(ASender: TObject; constref AItem: T; AAction: TCollectionNotification);
 
Protected function GetPtrEnumerator: TEnumerator<PT>; 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;
 
Public constructor Create; override; overload;
 
Public constructor Create(const AComparer: IEqualityComparer<T>); virtual; 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.