Lines Matching refs:TValue
186 IDictionary<TKey,TValue> = interface(IANTLRInterface)
189 function GetItem(const Key: TKey): TValue; in GetItem()
190 procedure SetItem(const Key: TKey; const Value: TValue); argument
194 procedure Add(const Key: TKey; const Value: TValue); argument
198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean; in TryGetValue() argument
199 procedure AddOrSetValue(const Key: TKey; const Value: TValue); argument
201 function ContainsValue(const Value: TValue): Boolean; in ContainsValue() argument
202 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>; in GetEnumerator()
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>)
244 Value: TValue;
258 procedure RehashAdd(HashCode: Integer; const Key: TKey; const Value: TValue); argument
259 procedure DoAdd(HashCode, Index: Integer; const Key: TKey; const Value: TValue); argument
261 function DoGetEnumerator: TEnumerator<TPair<TKey,TValue>>; override; in DoGetEnumerator()
266 constructor Create(Collection: TEnumerable<TPair<TKey,TValue>>); overload; argument
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>; in GetCurrent()
277 function DoGetCurrent: TPair<TKey,TValue>; override; in DoGetCurrent()
280 constructor Create(ADictionary: TDictionary<TKey,TValue>); argument
281 property Current: TPair<TKey,TValue> read GetCurrent;
292 function GetItem(const Key: TKey): TValue; in GetItem()
293 procedure SetItem(const Key: TKey; const Value: TValue); argument
296 procedure Add(const Key: TKey; const Value: TValue); argument
300 function TryGetValue(const Key: TKey; out Value: TValue): Boolean; in TryGetValue() argument
301 procedure AddOrSetValue(const Key: TKey; const Value: TValue); argument
303 function ContainsValue(const Value: TValue): Boolean; in ContainsValue() argument
305 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>; in GetEnumerator()
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 TDictionary()
626 function TDictionary<TKey, TValue>.GetCount: Integer; in GetCount()
631 function TDictionary<TKey,TValue>.Hash(const Key: TKey): Integer; in TDictionary()
641 function TDictionary<TKey,TValue>.GetItem(const Key: TKey): TValue; in GetItem()
651 procedure TDictionary<TKey,TValue>.SetItem(const Key: TKey; const Value: TValue); argument
654 oldValue: TValue;
664 procedure TDictionary<TKey,TValue>.RehashAdd(HashCode: Integer; const Key: TKey; const Value: TValu… argument
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<…
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>>;
732 item: TPair<TKey,TValue>;
739 destructor TDictionary<TKey,TValue>.Destroy;
745 procedure TDictionary<TKey,TValue>.Add(const Key: TKey; const Value: TValue); argument
767 procedure TDictionary<TKey,TValue>.Remove(const Key: TKey);
770 oldValue: TValue;
819 FItems[gap].Value := Default(TValue);
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() argument
845 Value := Default(TValue);
848 procedure TDictionary<TKey,TValue>.DoAdd(HashCode, Index: Integer; const Key: TKey; const Value: TV… argument
856 function TDictionary<TKey, TValue>.DoGetEnumerator: TEnumerator<TPair<TKey, TValue>>; in TDictionary()
861 procedure TDictionary<TKey,TValue>.AddOrSetValue(const Key: TKey; const Value: TValue); argument
869 function TDictionary<TKey,TValue>.ContainsKey(const Key: TKey): Boolean; in TDictionary()
874 function TDictionary<TKey,TValue>.ContainsValue(const Value: TValue): Boolean; in ContainsValue() argument
877 c: IEqualityComparer<TValue>;
879 c := TEqualityComparer<TValue>.Default;
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()