31 template<
class T,
class Key,
class Hash>
38 template<
class T,
class Key,
class Hash>
48 this->
insert(iter.key(),
new T(**iter));
53 template<
class T,
class Key,
class Hash>
65 template<
class T,
class Key,
class Hash>
74 template<
class T,
class Key,
class Hash>
83 template<
class T,
class Key,
class Hash>
104 template<
class T,
class Key,
class Hash>
123 template<
class T,
class Key,
class Hash>
133 <<
"attempted assignment to self"
139 for (
const_iterator iter = rhs.begin(); iter != rhs.end(); ++iter)
141 this->
insert(iter.key(),
new T(**iter));
146 template<
class T,
class Key,
class Hash>
156 <<
"attempted assignment to self"
A HashTable specialisation for hashing pointers.
bool erase(iterator &)
Erase an hashedEntry specified by given iterator.
void clear()
Clear all entries from table.
T * remove(iterator &)
Remove and return the pointer specified by given iterator.
~HashPtrTable()
Destructor.
An STL-conforming const_iterator.
An STL-conforming iterator.
An STL-conforming hash table.
bool erase(const iterator &)
Erase a hashedEntry specified by given iterator.
iterator begin()
Iterator set to the beginning of the HashTable.
bool insert(const word &, const T * &newElmt)
Insert a new hashedEntry.
friend class HashPtrTable
Declare friendship with the HashPtrTable class.
void operator=(const HashTable< T, Key, Hash > &)
Assignment operator.
void clear()
Clear all entries from table.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable