40#ifndef Foam_hashedWordList_H
41#define Foam_hashedWordList_H
92 template<
class AnyType,
class AnyHash>
133 inline
void rehash(
bool unique);
147 inline label
find(const
word& val) const;
150 inline
bool found(const
word& val) const;
157 inline const
word& operator[](const label index) const;
161 inline label operator[](const
word& val) const;
165 inline
bool operator()(const
word& val) const;
174 inline
void operator=(const
wordUList& list);
177 inline
void operator=(std::initializer_list<
word> list);
183 inline
void operator=(
wordList&& list);
196inline Istream&
operator>>(Istream& is, hashedWordList& 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 transfer(hashedWordList &list)
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.
void append(const word &val)
Append an element if not already in the list.
bool contains(const word &val) const
Deprecated(2019-01) Is the specified name found in the list?
void rehash() const
Rebuild the lookup hash indices.
void clear()
Clear the list, i.e. set size to zero.
label appendUniq(const word &val)
Append an element if not already in the list.
Lookup type of boundary radiation properties.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
#define FOAM_DEPRECATED_FOR(since, replacement)