Go to the documentation of this file.
42 for (
label i=0; i < len; ++i)
44 wordList::operator[](i) = array[i];
66 for (
label i=0; i < len; ++i)
68 lookup_.insert(list[i], i);
78 const label len = list.size();
81 for (
label i=0; i < len; ++i)
85 if (lookup_.insert(item, i))
89 list[
count] = std::move(item);
A class for handling words, derived from Foam::string.
List< word > wordList
A List of words.
hashedWordList()=default
Construct an empty list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
void resize(const label newSize)
Adjust allocated size of list.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
void rehash() const
Rebuild the lookup hash indices.
An adapter for copying a list of C++ strings into a list of C-style strings for passing to C code tha...