Home | History | Annotate | Download | only in Antlr3.Runtime

Lines Matching refs:TValue

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);
198 function TryGetValue(const Key: TKey; out Value: TValue): Boolean;
199 procedure AddOrSetValue(const Key: TKey; const Value: TValue);
201 function ContainsValue(const Value: TValue): 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>)
244 Value: TValue;
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;
266 constructor Create(Collection: TEnumerable<TPair<TKey,TValue>>); overload;
267 constructor Create(Collection: TEnumerable<TPair<TKey,TValue>>; const AComparer: IEqualityComparer<TKey>); overload;
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;
291 { IDictionary<TKey, TValue> }
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);
300 function TryGetValue(const Key: TKey; out Value: TValue): Boolean;
301 procedure AddOrSetValue(const Key: TKey; const Value: TValue);
303 function ContainsValue(const Value: TValue): Boolean;
305 function GetEnumerator: TEnumerator<TPair<TKey, TValue>>;
549 { TDictionary<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;
626 function TDictionary<TKey, TValue>.GetCount: Integer;
631 function TDictionary<TKey,TValue>.Hash(const Key: TKey): Integer;
641 function TDictionary<TKey,TValue>.GetItem(const Key: TKey): TValue;
651 procedure TDictionary<TKey,TValue>.SetItem(const Key: TKey; const Value: TValue);
654 oldValue: TValue;
664 procedure TDictionary<TKey,TValue>.RehashAdd(HashCode: Integer; const Key: TKey; const Value: TValue);
674 function TDictionary<TKey, TValue>.QueryInterface(const IID: TGUID;
683 function TDictionary<TKey, TValue>._AddRef: Integer;
688 function TDictionary<TKey, TValue>._Release: Integer;
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<TKey>);
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);
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;
845 Value := Default(TValue);
848 procedure TDictionary<TKey,TValue>.DoAdd(HashCode, Index: Integer; const Key: TKey; const Value: TValue);
856 function TDictionary<TKey, TValue>.DoGetEnumerator: TEnumerator<TPair<TKey, TValue>>;
861 procedure TDictionary<TKey,TValue>.AddOrSetValue(const Key: TKey; const Value: TValue);
869 function TDictionary<TKey,TValue>.ContainsKey(const Key: TKey): Boolean;
874 function TDictionary<TKey,TValue>.ContainsValue(const Value: TValue): Boolean;
877 c: IEqualityComparer<TValue>;
879 c := TEqualityComparer<TValue>.Default;
887 function TDictionary<TKey,TValue>.GetEnumerator: TPairEnumerator;
894 constructor TDictionary<TKey,TValue>.TPairEnumerator.Create(ADictionary: TDictionary<TKey,TValue>);
901 function TDictionary<TKey, TValue>.TPairEnumerator.DoGetCurrent: TPair<TKey, TValue>;
906 function TDictionary<TKey, TValue>.TPairEnumerator.DoMoveNext: Boolean;
911 function TDictionary<TKey,TValue>.TPairEnumerator.GetCurrent: TPair<TKey,TValue>;
917 function TDictionary<TKey,TValue>.TPairEnumerator.MoveNext: Boolean;