|
AfterConstruction
|
Represents method AfterConstruction.
|
|
|
BeginUpdate
|
Defers change events and discards notify events until EndUpdate is called. This method allows faster processing of multiple items by deferring or discarding events.
There must be an equal number of EndUpdate method calls for every BeginUpdate method calls to reenable events.
|
|
|
Change
|
Calls the OnChange event
|
|
|
Clear
|
Clear all data.
Clear removes all keys and values from the dictionary. The Count property is set to 0. The capacity is also set to 0. This operation requires O(n) time, where n is Count, the number of dictionary entries.
Note
|
Clear does not free the items as they are removed. If you need to free them, use the OnKeyNotify event and the OnValueNotify event, which occur for every entry removed and provides the removed items.
|
|
|
|
ClearCache
|
Clears the index from the cache. This index is used by ItemByIndex to ensure quick iteration over the hash table.
|
|
|
ContainsItem(TValue)
|
Equivalent to ContainsValue. Retained for backward compatibility.
|
|
|
ContainsKey(TKey,TValue)
|
Overloaded. Try to get value for key.
ContainsKey returns true if the given key is in the dictionary and provides its value in FoundItem. Otherwise, it returns false and FoundItem is set to the default value type of TValue. No exception is raised if the key is not in the dictionary. This is an O(1) operation.
Note
|
Equivalent to TryGetValue method. Retained for backwards compatibility to TGHashTable.ContainsKey method.
|
|
|
|
DefineProperties(TFiler)
|
Used to discard old properties from TGHashTable. LoadFactor, HashType, and Capacity are properties from TGHashTable. We define pseudo-properties with these names so that they are recognized but do nothing with them.
|
|
|
DiscardFloatProperty(TReader)
|
Reads in and discards LoadFactor property
|
|
|
DiscardIntegerProperty(TReader)
|
Reads in and discards HashType and Capacity properties
|
|
|
DiscardProperty(TWriter)
|
Writes out nothing for LoadFactor, HashType, and Capacity properties
|
|
|
DoAdd(Integer,Integer,TKey,TValue)
|
Adds key/value pair to dictionary at the given index (Overrides RSGenerics.Collections.TRSDictionary<TKey,TValue>.DoAdd(Integer,Integer,TKey,TValue).)
|
|
|
DoRemove(TKey,Integer,TCollectionNotification)
|
Removes key/value pair from dictionary (Overrides RSGenerics.Collections.TRSDictionary<TKey,TValue>.DoRemove(TKey,Integer,TCollectionNotification).)
|
|
|
DoSetValue(Integer,TValue)
|
Overwrites value in dictionary at the given index (Overrides RSGenerics.Collections.TRSDictionary<TKey,TValue>.DoSetValue(Integer,TValue).)
|
|
|
EndUpdate
|
Reenables change events and notify events after BeginUpdate has been called.
There must be an equal number of EndUpdate method calls for every BeginUpdate method calls to reenable events.
|
|
|
Get(TKey)
|
Retrieves the value at this key.
|
|
|
KeyNotify(TKey,TCollectionNotification)
|
Triggers an OnKeyNotify event with the given parameters.
Call KeyNotify to trigger an OnKeyNotify event with the given parameters.
The meaning of the parameters is given in the following table:
|
|
Key
|
The key that is added, removed or extracted.
|
|
|
Action
|
The action that the key undergoes, which is of type TCollectionNotification.
|
|
|