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