Quantum 3
3.0.9
A Quantum hashset-like collection which uses the frame heap. This collection relies on Frame and on its API for allocating, deallocating and resolving. More...
Public Member Functions | |
| bool | Add (T value) |
| Adds an element into the hash set. It might expand the capacity if needed. More... | |
| void | Clear () |
| Removes all elements from the hash set. It does not reset the hash set QHashSet<T>.Capacity. More... | |
| bool | Contains (T value) |
| Checks whether the hash set contains a specific value. More... | |
| QHashSetIterator< T > | GetEnumerator () |
| Returns an iterator that traverses through the QHashSet<T>. More... | |
| bool | Remove (T value) |
| Removes the element from the hash set. More... | |
Static Public Member Functions | |
| static QHashSet< T > | Allocate< THeap > (THeap heap, int capacity) |
| Allocates a QHashSet<T> in the frame heap. It must be used before trying to resolve and use the hash set. More... | |
| static implicit | operator QHashSetPtr< T > (QHashSet< T > hashSet) |
| Operator which allocates a QHashSet<T> based on another QHashSet<T>. More... | |
| static QHashSet< T > | Resolve< THeap > (THeap heap, QHashSetPtr< T > ptr) |
| Resolves a QHashSet<T> in the frame heap . More... | |
| static void | Serialize< T > (QHashSetPtr< T > *ptr, FrameSerializer serializer, FrameSerializer.Delegate valSerializer) |
| Serializes the QHashSet<T> Ptr into a FrameSerializer to write or read from a frame snapshot. More... | |
Properties | |
| readonly int | Capacity [get] |
| Gets the QHashSet<T> current capacity. The capacity automatically expands, if necessary, when adding new entries. More... | |
| readonly int | Count [get] |
| Gets the QHashSet<T> current entries amount. More... | |
A Quantum hashset-like collection which uses the frame heap. This collection relies on Frame and on its API for allocating, deallocating and resolving.
| T | : | unmanaged | |
| T | : | IEquatable<T> |
|
inlinestatic |
Operator which allocates a QHashSet<T> based on another QHashSet<T>.
|
inline |
Checks whether the hash set contains a specific value.
| value | The value to locate in the hash set. |
|
inline |
Removes all elements from the hash set. It does not reset the hash set QHashSet<T>.Capacity.
|
inline |
Adds an element into the hash set. It might expand the capacity if needed.
| value | The value to add. |
true if the element was not set in the hash set.
|
inline |
Removes the element from the hash set.
| value | The element to remove. |
true if the element is successfully removed; otherwise, false if the element is not found in the dictionary.
|
inline |
Returns an iterator that traverses through the QHashSet<T>.
|
inlinestatic |
Allocates a QHashSet<T> in the frame heap. It must be used before trying to resolve and use the hash set.
| THeap | : | FrameHeap |
|
inlinestatic |
Resolves a QHashSet<T> in the frame heap .
| heap | The FrameHeap where the collection is allocated. |
| ptr | A Ptr referencing an allocated hash-set in the heap. Must not be null. |
| THeap | : | FrameHeap |
|
inlinestatic |
Serializes the QHashSet<T> Ptr into a FrameSerializer to write or read from a frame snapshot.
| ptr | The QHashSet<T> Ptr. |
| serializer | The FrameSerializer instance into which the struct will be serialized. |
| valSerializer | A delegate for serializing the hash set values. |
| T | : | unmanaged |
|
get |
Gets the QHashSet<T> current entries amount.
|
get |
Gets the QHashSet<T> current capacity. The capacity automatically expands, if necessary, when adding new entries.