Class TCustomDictionary
Unit
Generics.Collections
Declaration
type TCustomDictionary<TKey,TValue,THashFactory> = class abstract(TObject)
Description
bug #24283 and #24097 (forward declaration) - should be: TCustomDictionary<CUSTOM_DICTIONARY_CONSTRAINTS> = class(TEnumerable<TPair<TKey, TValue> >);
Hierarchy
- TObject
- TCustomDictionary
Overview
Internal Types
Fields
Methods
Properties
Description
Internal Types
 |
PKey = ˆTKey; |
|
 |
PValue = ˆTValue; |
|
 |
TDictionaryPair = TPair<TKey, TValue>; |
workaround... no generics types in generics types
|
 |
THashFactoryClass = THashFactory; |
|
Fields
 |
FEqualityComparer: IEqualityComparer<TKey>; |
|
 |
FMaxLoadFactor: single; |
|
 |
FItemsLength: SizeInt; |
FItemsLength must be declared at the end of TCustomDictionary
|
Methods
 |
procedure SetCapacity(ACapacity: SizeInt); virtual; abstract; |
|
 |
function DoGetEnumerator: TEnumerator<TDictionaryPair>; virtual; abstract; |
bug #24283. workaround for this class because can't inherit from TEnumerable
|
 |
procedure SetMaxLoadFactor(AValue: single); virtual; abstract; |
override;
|
 |
function GetLoadFactor: single; virtual; abstract; |
|
 |
function GetCapacity: SizeInt; virtual; abstract; |
|
 |
procedure Clear; virtual; abstract; |
|
 |
procedure Add(constref APair: TPair<TKey, TValue>); virtual; abstract; |
|
 |
constructor Create; virtual; overload; |
override; final; // bug #24283
|
 |
constructor Create(ACapacity: SizeInt); virtual; overload; |
|
 |
constructor Create(ACapacity: SizeInt; const AComparer: IEqualityComparer<TKey>); virtual; overload; |
|
 |
constructor Create(const AComparer: IEqualityComparer<TKey>); overload; |
|
 |
destructor Destroy; override; |
|
 |
procedure UpdateItemsThreshold(ASize: SizeInt); virtual; abstract; |
|
 |
procedure SetValue(var AValue: TValue; constref ANewValue: TValue); |
|
Properties
Generated by PasDoc 0.15.0.
|