Hash set collection.
More...
#include <base/collection/HashSet.h>
Inherits Collection.
template<class TYPE>
class HashSet< TYPE >
Hash set collection.
A hash set implementation.
- Version
- 1.2
- Examples
- testsuite/HashSet.cpp.
◆ Enumerator
◆ ReadEnumerator
Non-modifying enumerator.
◆ Value
◆ HashSet() [1/3]
◆ HashSet() [2/3]
Initializes the hash set with the specified initial capacity.
◆ HashSet() [3/3]
Initializes hash set from another hash set.
◆ add()
Adds the value to the set.
◆ copyOnWrite()
template<class TYPE >
void HashSet< TYPE >::copyOnWrite |
( |
| ) |
|
|
inline |
Copies the hash set if referenced by multiple automation pointers.
◆ getCapacity()
template<class TYPE >
MemorySize HashSet< TYPE >::getCapacity |
( |
| ) |
const |
|
inlinenoexcept |
Returns the capacity of the hash set.
◆ getEnumerator()
Returns the enumerator of the hash set.
◆ getReadEnumerator()
Returns the read enumerator of the hash set.
◆ getSize()
template<class TYPE >
MemorySize HashSet< TYPE >::getSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the number of elements in the hash set.
◆ hasKey()
Returns true if the specified value is in the set.
◆ hasValue()
Returns true if the specified value is in the set.
◆ isEmpty()
template<class TYPE >
bool HashSet< TYPE >::isEmpty |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the hash set is empty.
◆ operator bool()
template<class TYPE >
HashSet< TYPE >::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
Returns true is non-empty.
◆ operator<<() [1/2]
◆ operator<<() [2/2]
◆ operator=()
Assignment of hash set by hash set.
◆ remove()
Removes the specified value from this hash set. Raises InvalidNode if the value doesn't exist in the set.
◆ removeAll()
template<class TYPE >
void HashSet< TYPE >::removeAll |
( |
| ) |
|
|
inline |
Removes all the values from the hash set.
◆ DEFAULT_CAPACITY
template<class TYPE >
constexpr MemorySize HashSet< TYPE >::DEFAULT_CAPACITY = 16 |
|
staticconstexpr |
◆ impl
◆ MAXIMUM_CAPACITY
◆ MINIMUM_CAPACITY
template<class TYPE >
constexpr MemorySize HashSet< TYPE >::MINIMUM_CAPACITY = 16 |
|
staticconstexpr |