ValenceSet<T>
ReferencesProvides a hashset like type which also stores valences for entries. This collection is thread-safe for adding and removing, but not for enumerating.
Type parameters:
| T |
Constructors
Properties
Count
#Gets the number of values in this set, including all duplicate ones. This property is not thread safe and should not be used while Add or Remove methods are liable to be invoked from different threads.
HighestValence
#Gets the highest valence in this set. This property is not thread safe and should not be used while Add or Remove methods are liable to be invoked from different threads.
Methods
Contains
#Gets whether the given value is contained within this set.
Returns: True if value occurs at least once.
GetEnumerator
#Enumerate over all values and their associated valences in this set. This method is not thread safe and should not be used while Add or Remove methods are liable to be invoked from different threads.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| ValenceSet<T> | + | ValenceSet<T> | ValenceSet<T> | Merge two sets. |