Go to the documentation of this file.
40 #ifndef hashedWordList_H
41 #define hashedWordList_H
92 template<
class AnyType,
class AnyHash>
100 hashedWordList(
const label len,
const char** array,
bool unique=
false);
140 inline void rehash(
bool unique);
173 inline void operator=(std::initializer_list<word> list);
189 return this->
found(name);
195 inline Istream&
operator>>(Istream& is, hashedWordList& list);
A class for handling words, derived from Foam::string.
bool operator()(const word &name) const
Check hashed values for the specified name - same as found.
void append(const word &name, bool unique=false)
const word & operator[](const label index) const
Return name corresponding to specified index.
void sort()
Sort the list and rehash the indices.
Istream & operator>>(Istream &, directionInfo &)
hashedWordList()=default
Default construct an empty list.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool found(const word &name) const
Search hashed values for the specified name.
void operator=(const hashedWordList &list)
Copy assignment. Rehashes the indices.
const HashTable< label > & lookup() const
Return the hash of words/indices for inspection.
bool contains(const word &name) const
Deprecated(2019-01) Is the specified name found in the list?
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void swap(hashedWordList &list)
Swap contents.
void transfer(hashedWordList &list)
void clear()
Clear the list, i.e. set size to zero.
void rehash() const
Rebuild the lookup hash indices.