Lines Matching refs:TValue
51 IHashList<TKey, TValue> = interface(IDictionary<TKey, TValue>)
79 THashList<TKey, TValue> = class(TANTLRObject, IHashList<TKey, TValue>)
82 TPairEnumerator = class(TEnumerator<TPair<TKey, TValue>>)
84 FHashList: THashList<TKey, TValue>;
88 FPair: TPair<TKey, TValue>;
89 function GetCurrent: TPair<TKey, TValue>;
91 function DoGetCurrent: TPair<TKey, TValue>; override;
94 constructor Create(const AHashList: THashList<TKey, TValue>);
96 property Current: TPair<TKey, TValue> read GetCurrent;
99 FDictionary: IDictionary<TKey, TValue>;
103 { IDictionary<TKey, TValue> }
104 function GetItem(const Key: TKey): TValue;
105 procedure SetItem(const Key: TKey; const Value: TValue);
108 procedure Add(const Key: TKey; const Value: TValue);
112 function TryGetValue(const Key: TKey; out Value: TValue): Boolean;
113 procedure AddOrSetValue(const Key: TKey; const Value: TValue);
115 function ContainsValue(const Value: TValue): Boolean;
119 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>;
121 property Items[const Key: TKey]: TValue read GetItem write SetItem; default;
166 { THashList<TKey, TValue> }
168 procedure THashList<TKey, TValue>.Add(const Key: TKey; const Value: TValue);
175 procedure THashList<TKey, TValue>.AddOrSetValue(const Key: TKey;
176 const Value: TValue);
184 procedure THashList<TKey, TValue>.Clear;
191 function THashList<TKey, TValue>.ContainsKey(const Key: TKey): Boolean;
196 function THashList<TKey, TValue>.ContainsValue(const Value: TValue): Boolean;
201 constructor THashList<TKey, TValue>.Create;
206 constructor THashList<TKey, TValue>.Create(const ACapacity: Integer);
211 FDictionary := TDictionary<TKey, TValue>.Create;
216 FDictionary := TDictionary<TKey, TValue>.Create(ACapacity);
222 function THashList<TKey, TValue>.GetCount: Integer;
227 function THashList<TKey, TValue>.GetEnumerator: TEnumerator<TPair<TKey, TValue>>;
232 function THashList<TKey, TValue>.GetItem(const Key: TKey): TValue;
237 procedure THashList<TKey, TValue>.Remove(const Key: TKey);
244 procedure THashList<TKey, TValue>.SetItem(const Key: TKey; const Value: TValue);
255 procedure THashList<TKey, TValue>.TrimExcess;
261 function THashList<TKey, TValue>.TryGetValue(const Key: TKey;
262 out Value: TValue): Boolean;
267 { THashList<TKey, TValue>.TPairEnumerator }
269 constructor THashList<TKey, TValue>.TPairEnumerator.Create(
270 const AHashList: THashList<TKey, TValue>);
278 function THashList<TKey, TValue>.TPairEnumerator.DoGetCurrent: TPair<TKey, TValue>;
283 function THashList<TKey, TValue>.TPairEnumerator.DoMoveNext: Boolean;
288 function THashList<TKey, TValue>.TPairEnumerator.GetCurrent: TPair<TKey, TValue>;
293 function THashList<TKey, TValue>.TPairEnumerator.MoveNext: Boolean;
307 FPair.Value := Default(TValue);