Go to the documentation of this file.
33 template<
class Key,
class Hash>
45 template<
class Key,
class Hash>
46 template<
class AnyType,
class AnyHash>
69 template<
class Key,
class Hash>
75 if (this->
insert(lst[elemI]))
87 template<
class Key,
class Hash>
90 return this->
found(key);
94 template<
class Key,
class Hash>
98 for (
const_iterator iter = this->cbegin(); iter != this->cend(); ++iter)
100 if (!rhs.
found(iter.key()))
109 if (!this->
found(iter.key()))
119 template<
class Key,
class Hash>
126 template<
class Key,
class Hash>
137 template<
class Key,
class Hash>
141 for (
iterator iter = this->begin(); iter != this->end(); ++iter)
143 if (!rhs.
found(iter.key()))
151 template<
class Key,
class Hash>
157 if (this->
found(iter.key()))
159 this->
erase(iter.key());
170 template<
class Key,
class Hash>
176 this->
erase(iter.key());
183 template<
class Key,
class Hash>
197 template<
class Key,
class Hash>
201 const HashSet<Key, Hash>& hash1,
202 const HashSet<Key, Hash>& hash2
205 HashSet<Key, Hash> out(hash1);
211 template<
class Key,
class Hash>
215 const HashSet<Key, Hash>& hash1,
216 const HashSet<Key, Hash>& hash2
219 HashSet<Key, Hash> out(hash1);
bool operator!=(const HashSet< Key, Hash > &) const
The opposite of the equality operation.
void operator-=(const HashSet< Key, Hash > &)
Remove entries listed in the given HashSet from this HashSet.
#define forAll(list, i)
Loop across all elements in list.
const_iterator cbegin() const
const_iterator set to the beginning of the HashTable
void operator^=(const HashSet< Key, Hash > &)
Only retain unique entries (xor)
An STL-conforming const_iterator.
bool operator[](const Key &) const
Return true if the entry exists, same as found()
A zero-sized class without any storage. Used, for example, in HashSet.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A HashTable with keys but without contents.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar h
Planck constant.
void operator&=(const HashSet< Key, Hash > &)
Only retain entries found in both HashSets.
void operator|=(const HashSet< Key, Hash > &)
Combine entries from HashSets.
HashTable< nil, label, Hash< label > >::const_iterator const_iterator
HashTable< nil, label, Hash< label > >::iterator iterator
bool found(const Key &) const
Return true if hashedEntry is found in table.
An STL-conforming hash table.
bool operator==(const HashSet< Key, Hash > &) const
Equality. Two hashtables are equal when their contents are equal.
HashSet(const label size=128)
Construct given initial size.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool insert(const Key &key)
Insert a new entry.
timeIndices insert(timeIndex, timeDirs[timeI].value())