Go to the documentation of this file.
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>
171 friend Ostream& operator<< <IDLListType, T>
void operator=(const DictionaryBase &)
A class for handling words, derived from string.
wordList toc() const
Return the table of contents.
const T * operator[](const word &key) const
Find and return entry.
const T * lookupPtr(const word &) const
Find and return an entry if present, otherwise return NULL.
void append(const word &, T *)
Add at tail of dictionary.
A helper class when constructing from an Istream or dictionary.
void insert(const word &, T *)
Add at head of dictionary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
DictionaryBase(const label size=128)
Construct given initial table size.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const edgeMesh &)
T * remove(const word &)
Remove and return entry specified by keyword.
HashTable< T * > hashedTs_
HashTable of the entries held on the IDLListType for quick lookup.
void clear()
Clear the dictionary.
T * operator[](const word &key)
Find and return entry.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it...
const T * lookup(const word &) const
Find and return entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool found(const word &) const
Search DictionaryBase for given keyword.
void transfer(DictionaryBase< IDLListType, T > &)
Transfer the contents of the argument into this DictionaryBase.