59 template<
class Key=word,
class Hash=
string::hash>
89 template<
unsigned Size>
100 template<
class AnyType,
class AnyHash>
104 HashSet(std::initializer_list<Key>);
112 bool insert(
const Key& key)
122 bool set(
const Key& key)
134 bool unset(
const Key& key)
182 template<
class Key,
class Hash>
191 template<
class Key,
class Hash>
200 template<
class Key,
class Hash>
void operator+=(const HashSet< Key, Hash > &rhs)
Add entries listed in the given HashSet to this HashSet.
A HashTable with keys but without contents.
HashTable< nil, Key, Hash >::const_iterator const_iterator
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
HashTable< nil, Key, Hash >::iterator iterator
A 1D vector of objects of type <T> with a fixed size <Size>.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool insert(const Key &key)
Insert a new entry.
label size() const
Return number of elements in table.
bool erase(const iterator &)
Erase a hashedEntry specified by given iterator.
void operator-=(const HashSet< Key, Hash > &)
Remove entries listed in the given HashSet from this HashSet.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
bool unset(const Key &key)
Unset the specified key - same as erase.
void operator &=(const HashSet< Key, Hash > &)
Only retain entries found in both HashSets.
HashSet(const label size=128)
Construct given initial size.
bool operator!=(const HashSet< Key, Hash > &) const
The opposite of the equality operation.
HashSet wordHashSet
A HashSet with word keys.
An STL-conforming hash table.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void operator|=(const HashSet< Key, Hash > &)
Combine entries from HashSets.
bool operator[](const Key &) const
Return true if the entry exists, same as found()
void operator=(const HashSet< Key, Hash > &)
Assignment operator.
bool operator==(const HashSet< Key, Hash > &) const
Equality. Two hashtables are equal when their contents are equal.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
void operator^=(const HashSet< Key, Hash > &)
Only retain unique entries (xor)
A zero-sized class without any storage. Used, for example, in HashSet.