ConcurrentDictSetIEq<'TKey>
A ConcurrentDictSetIEq is an alternate implementation of a HashSet. It is implemented as a hashtable with external linking, that uses primes as the table size in order to reduce the danger of funneling.
Constructors
Constructor | Description |
new(dict)
Signature: dict:DictSetIEq<'TKey> -> unit
|
A ConcurrentDictSetIEq can only be concstructed by wrapping its non-concurrent counterpart. |
Instance members
Instance member | Description |
Add(key)
Signature: key:'TKey -> bool
|
Add the item with the supplied key to the ConcurrentDictSetIEq. |
Add(key, hash)
Signature: (key:'TKey * hash:int) -> bool
|
Add the item with the supplied key to the ConcurrentDictSetIEq. |
AddObject(objkey)
Signature: objkey:obj -> bool
|
Add the item with supplied key both supplied as generic objects, to the ConcurrentDictSetIEq. Note that the supplied key and value are cast to the concrete type of the keys and values used in the ConcurrentDictSetIEq and this will fail if they are of different types. |
AddRange(keys)
Signature: keys:IEnumerable<'TKey> -> unit
|
Add the supplied keys to the ConcurrentDictSetIEq. |
Clear()
Signature: unit -> unit
|
Remove all items. Capacity remains unchanged. |
Contains(key)
Signature: key:'TKey -> bool
|
Returns true if the ConcurrentDictSetIEq contains the item with the supplied key. |
Contains(key, hash)
Signature: (key:'TKey * hash:int) -> bool
|
Returns true if the ConcurrentDictSetIEq contains the item with the supplied key. |
CopyTo(array, index)
Signature: (array:'TKey [] * index:int) -> unit
|
Copies all keys in the dictionary to the supplied array starting at the supplied index. This may throw a ConcurrentDataModifiedException if data is modified by another task during the operation. |
Count
Signature: int
|
Returns the number of items currently contained in the ConcurrentDictSetIEq. |
LongCount
Signature: int64
|
Returns the number of items currently contained in the ConcurrentDictSetIEq as long. |
NonConcurrent
Signature: DictSetIEq<'TKey>
|
Return the non-concurrent contained ConcurrentDictSetIEq. |
Remove(key)
Signature: key:'TKey -> bool
|
Remove the item with the supplied key from the ConcurrentDictSetIEq. Returns true if the value was removed. |
Remove(key, hash)
Signature: (key:'TKey * hash:int) -> bool
|
Remove the item with the supplied key from the ConcurrentDictSetIEq. Returns true if the value was removed. |
ToArray()
Signature: unit -> 'TKey []
|
Returns all keys in the dictionary as an array. This may throw a ConcurrentDataModifiedException if data is modified by another task during the operation. |
TryAdd(key)
Signature: key:'TKey -> bool
|
Add the item with the supplied key to the ConcurrentDictSetIEq. |
TryAdd(key, hash)
Signature: (key:'TKey * hash:int) -> bool
|
Add the item with the supplied key to the ConcurrentDictSetIEq. |
TryRemove(key)
Signature: key:'TKey -> bool
|
Try to reomve the item with the supplied key. If multipe entries have the same key, the one that was inserted last is removed. Returns true if the item was found. |
TryRemove(key, hash)
Signature: (key:'TKey * hash:int) -> bool
|
Try to reomve the item with the supplied key. If multipe entries have the same key, the one that was inserted last is removed. Returns true if the item was found. |