48 #ifndef DictionaryBase_H
49 #define DictionaryBase_H
61 template<
class IDLListType,
class T>
64 template<
class IDLListType,
class T>
72 template<
class IDLListType,
class T>
177 friend Ostream& operator<< <IDLListType, T>
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it...
bool found(const word &) const
Search DictionaryBase for given keyword.
void insert(const word &, T *)
Add at head of dictionary.
const T * operator[](const word &key) const
Find and return entry.
void transfer(DictionaryBase< IDLListType, T > &)
Transfer the contents of the argument into this DictionaryBase.
void operator=(const DictionaryBase &)
HashTable< T * > hashedTs_
HashTable of the entries held on the IDLListType for quick lookup.
DictionaryBase(const label size=128)
Construct given initial table size.
void append(const word &, T *)
Add at tail of dictionary.
const T * lookup(const word &) const
Find and return entry.
const T * lookupPtr(const word &) const
Find and return an entry if present, otherwise return nullptr.
wordList sortedToc() const
Return the table of contents as a sorted list.
void clear()
Clear the dictionary.
wordList toc() const
Return the table of contents.
T * remove(const word &)
Remove and return entry specified by keyword.
A helper class when constructing from an Istream or dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)