33 template<
class Key,
class Hash>
45 template<
class Key,
class Hash>
46 template<
unsigned Size>
58 template<
class Key,
class Hash>
59 template<
class AnyType,
class AnyHash>
82 template<
class Key,
class Hash>
88 if (this->
insert(lst[elemI]))
100 template<
class Key,
class Hash>
103 return this->
found(key);
107 template<
class Key,
class Hash>
114 <<
"attempted assignment to self" 122 template<
class Key,
class Hash>
129 <<
"attempted assignment to self" 137 template<
class Key,
class Hash>
141 for (
const_iterator iter = this->cbegin(); iter != this->cend(); ++iter)
143 if (!rhs.
found(iter.key()))
152 if (!this->
found(iter.key()))
162 template<
class Key,
class Hash>
169 template<
class Key,
class Hash>
180 template<
class Key,
class Hash>
184 for (
iterator iter = this->begin(); iter != this->end(); ++iter)
186 if (!rhs.
found(iter.key()))
194 template<
class Key,
class Hash>
200 if (this->
found(iter.key()))
202 this->
erase(iter.key());
212 template<
class Key,
class Hash>
218 this->
erase(iter.key());
225 template<
class Key,
class Hash>
239 template<
class Key,
class Hash>
253 template<
class Key,
class Hash>
A HashTable with keys but without contents.
#define forAll(list, i)
Loop across all elements in list.
HashTable< nil, label, Hash< label > >::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, label, Hash< label > >::iterator iterator
An STL-conforming const_iterator.
A 1D vector of objects of type <T> with a fixed size <Size>.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool insert(const Key &key)
Insert a new entry.
label size() const
Return number of elements in table.
void operator-=(const HashSet< Key, Hash > &)
Remove entries listed in the given HashSet from this HashSet.
void operator &=(const HashSet< Key, Hash > &)
Only retain entries found in both HashSets.
HashSet(const label size=128)
Construct given initial size.
bool found(const Key &) const
Return true if hashedEntry is found in table.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
timeIndices insert(timeIndex, timeDirs[timeI].value())
bool operator!=(const HashSet< Key, Hash > &) const
The opposite of the equality operation.
An STL-conforming hash table.
errorManip< error > abort(error &err)
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)
const_iterator cbegin() const
const_iterator set to the beginning of the HashTable
static iteratorEnd cend()
iteratorEnd set to beyond the end of any HashTable
A zero-sized class without any storage. Used, for example, in HashSet.