40#ifndef Foam_hashedWordList_H
41#define Foam_hashedWordList_H
92 template<
class AnyType,
class AnyHash>
129 inline void rehash(
bool unique);
143 inline label
find(
const word& val)
const;
173 inline void operator=(std::initializer_list<word> list);
A HashTable similar to std::unordered_map.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
void uniq()
Adjust the list (if needed) to eliminate duplicate entries, and rehash the indices.
void transfer(hashedWordList &list)
Transfer contents of the argument into this list and annul the argument list, optionally eliminating ...
void operator=(const hashedWordList &list)
Copy assignment. Rehashes the indices.
label find(const word &val) const
Find index of the value (searches the hash).
hashedWordList()=default
Default construct an empty list.
void swap(hashedWordList &list)
Swap contents.
void sort()
Inplace sort list and rehash the indices.
label push_uniq(const word &val)
Append an element if not already in the list.
void push_back(const word &val)
Same as push_uniq().
void append(const word &val)
Same as push_uniq().
bool contains(const word &val) const
Is the value contained in the list (searches the hash).
void rehash() const
Rebuild the lookup hash indices.
bool found(const word &val) const
Same as contains(), searches the hash.
void clear()
Clear the list, i.e. set size to zero.
bool operator()(const word &val) const
Check hashed values for the specified name - same as contains().
label appendUniq(const word &val)
Same as push_uniq().
const word & operator[](const label index) const
Return name corresponding to specified index.
const HashTable< label > & lookup() const
Return the hash of words/indices for inspection.
A class for handling words, derived from Foam::string.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
List< word > wordList
List of word.
UList< word > wordUList
UList of word.
Istream & operator>>(Istream &, directionInfo &)
#define FOAM_DEPRECATED_FOR(since, replacement)