Go to the documentation of this file.
50 #ifndef DictionaryBase_H
51 #define DictionaryBase_H
63 template<
class IDLListType,
class T>
66 template<
class IDLListType,
class T>
74 template<
class IDLListType,
class T>
137 template<
class Compare>
181 friend Ostream& operator<< <IDLListType, T>
void operator=(const DictionaryBase &)
Copy assigment.
A class for handling words, derived from Foam::string.
wordList toc() const
Return the table of contents (as a sorted list)
const T * operator[](const word &key) const
Find and return entry.
void transfer(DictionaryBase< IDLListType, T > &dict)
Transfer the contents of the argument into this DictionaryBase.
wordList sortedToc() const
Return the table of contents as a sorted list.
A helper class when constructing from an Istream or 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 with given or default (128) table capacity.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
T * remove(const word &keyword)
Remove and return entry specified by keyword.
bool found(const word &keyword) const
Search for given keyword.
void append(const word &keyword, T *)
Add at tail of dictionary.
const T * lookup(const word &keyword) const
Find and return entry.
void insert(const word &keyword, T *)
Add at head of dictionary.
const T * lookupPtr(const word &keyword) const
Find and return an entry if present, otherwise return nullptr.
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.
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & operator<<(Ostream &, const boundaryPatch &)