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>
145 T*
remove(
const word&);
174 friend Ostream& operator<< <IDLListType, T>
bool found(const word &) const
Search DictionaryBase for given keyword.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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 &)
void append(const word &, T *)
Add at tail of dictionary.
DictionaryBase(const label size=128)
Construct given initial table size.
const T * lookup(const word &) const
Find and return entry.
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 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)
wordList toc() const
Return the table of contents.
wordList sortedToc() const
Return the table of contents as a sorted list.
void transfer(DictionaryBase< IDLListType, T > &)
Transfer the contents of the argument into this DictionaryBase.
const T * operator[](const word &key) const
Find and return entry.
A helper class when constructing from an Istream or dictionary.
const T * lookupPtr(const word &) const
Find and return an entry if present, otherwise return NULL.