• Home
  • Raw
  • Download

Lines Matching refs:TKey

186   IDictionary<TKey,TValue> = interface(IANTLRInterface)
189 function GetItem(const Key: TKey): TValue;
190 procedure SetItem(const Key: TKey; const Value: TValue);
194 procedure Add(const Key: TKey; const Value: TValue);
195 procedure Remove(const Key: TKey);
198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean;
199 procedure AddOrSetValue(const Key: TKey; const Value: TValue);
200 function ContainsKey(const Key: TKey): Boolean;
202 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>;
205 property Items[const Key: TKey]: TValue read GetItem write SetItem; default;
234 TDictionaryArray<TKey,TValue> = array of IDictionary<TKey,TValue>;
238 TDictionary<TKey,TValue> = class(TEnumerable<TPair<TKey,TValue>>, IDictionary<TKey, TValue>)
243 Key: TKey;
250 FComparer: IEqualityComparer<TKey>;
256 function GetBucketIndex(const Key: TKey; HashCode: Integer): Integer;
257 function Hash(const Key: TKey): Integer;
258 procedure RehashAdd(HashCode: Integer; const Key: TKey; const Value: TValue);
259 procedure DoAdd(HashCode, Index: Integer; const Key: TKey; const Value: TValue);
261 function DoGetEnumerator: TEnumerator<TPair<TKey,TValue>>; override;
264 constructor Create(const AComparer: IEqualityComparer<TKey>); overload;
265 constructor Create(ACapacity: Integer; const AComparer: IEqualityComparer<TKey>); overload;
266 constructor Create(Collection: TEnumerable<TPair<TKey,TValue>>); overload;
267 …constructor Create(Collection: TEnumerable<TPair<TKey,TValue>>; const AComparer: IEqualityComparer…
271 TPairEnumerator = class(TEnumerator<TPair<TKey,TValue>>)
273 FDictionary: TDictionary<TKey,TValue>;
275 function GetCurrent: TPair<TKey,TValue>;
277 function DoGetCurrent: TPair<TKey,TValue>; override;
280 constructor Create(ADictionary: TDictionary<TKey,TValue>);
281 property Current: TPair<TKey,TValue> read GetCurrent;
292 function GetItem(const Key: TKey): TValue;
293 procedure SetItem(const Key: TKey; const Value: TValue);
296 procedure Add(const Key: TKey; const Value: TValue);
297 procedure Remove(const Key: TKey);
300 function TryGetValue(const Key: TKey; out Value: TValue): Boolean;
301 procedure AddOrSetValue(const Key: TKey; const Value: TValue);
302 function ContainsKey(const Key: TKey): Boolean;
305 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>;
551 procedure TDictionary<TKey,TValue>.Rehash(NewCapPow2: Integer);
571 procedure TDictionary<TKey,TValue>.SetCapacity(ACapacity: Integer);
589 procedure TDictionary<TKey,TValue>.Grow;
599 function TDictionary<TKey,TValue>.GetBucketIndex(const Key: TKey; HashCode: Integer): Integer; in GetBucketIndex()
626 function TDictionary<TKey, TValue>.GetCount: Integer; in GetCount()
631 function TDictionary<TKey,TValue>.Hash(const Key: TKey): Integer; in Hash()
641 function TDictionary<TKey,TValue>.GetItem(const Key: TKey): TValue; in GetItem()
651 procedure TDictionary<TKey,TValue>.SetItem(const Key: TKey; const Value: TValue);
664 procedure TDictionary<TKey,TValue>.RehashAdd(HashCode: Integer; const Key: TKey; const Value: TValu…
674 function TDictionary<TKey, TValue>.QueryInterface(const IID: TGUID; in QueryInterface()
683 function TDictionary<TKey, TValue>._AddRef: Integer; in _AddRef()
688 function TDictionary<TKey, TValue>._Release: Integer; in _Release()
695 constructor TDictionary<TKey,TValue>.Create(ACapacity: Integer = 0);
700 constructor TDictionary<TKey,TValue>.Create(const AComparer: IEqualityComparer<TKey>);
705 constructor TDictionary<TKey,TValue>.Create(ACapacity: Integer; const AComparer: IEqualityComparer<
714 FComparer := TEqualityComparer<TKey>.Default;
718 constructor TDictionary<TKey, TValue>.Create(
719 Collection: TEnumerable<TPair<TKey, TValue>>);
721 item: TPair<TKey,TValue>;
728 constructor TDictionary<TKey, TValue>.Create(
729 Collection: TEnumerable<TPair<TKey, TValue>>;
730 const AComparer: IEqualityComparer<TKey>);
732 item: TPair<TKey,TValue>;
739 destructor TDictionary<TKey,TValue>.Destroy;
745 procedure TDictionary<TKey,TValue>.Add(const Key: TKey; const Value: TValue);
767 procedure TDictionary<TKey,TValue>.Remove(const Key: TKey);
817 FItems[gap].Key := Default(TKey);
823 procedure TDictionary<TKey,TValue>.Clear;
831 procedure TDictionary<TKey,TValue>.TrimExcess;
836 function TDictionary<TKey,TValue>.TryGetValue(const Key: TKey; out Value: TValue): Boolean; in TryGetValue()
848 procedure TDictionary<TKey,TValue>.DoAdd(HashCode, Index: Integer; const Key: TKey; const Value: TV…
856 function TDictionary<TKey, TValue>.DoGetEnumerator: TEnumerator<TPair<TKey, TValue>>; in TDictionary()
861 procedure TDictionary<TKey,TValue>.AddOrSetValue(const Key: TKey; const Value: TValue);
869 function TDictionary<TKey,TValue>.ContainsKey(const Key: TKey): Boolean; in TDictionary() argument
874 function TDictionary<TKey,TValue>.ContainsValue(const Value: TValue): Boolean; in ContainsValue()
887 function TDictionary<TKey,TValue>.GetEnumerator: TPairEnumerator; in GetEnumerator()
894 constructor TDictionary<TKey,TValue>.TPairEnumerator.Create(ADictionary: TDictionary<TKey,TValue>); argument
901 function TDictionary<TKey, TValue>.TPairEnumerator.DoGetCurrent: TPair<TKey, TValue>; in TPairEnumerator()
906 function TDictionary<TKey, TValue>.TPairEnumerator.DoMoveNext: Boolean; in TPairEnumerator()
911 function TDictionary<TKey,TValue>.TPairEnumerator.GetCurrent: TPair<TKey,TValue>; in TPairEnumerator()
917 function TDictionary<TKey,TValue>.TPairEnumerator.MoveNext: Boolean; in TPairEnumerator()