Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it holds. More...
Public Member Functions | |
DictionaryBase (const label size=128) | |
DictionaryBase (const DictionaryBase &dict) | |
template<class INew > | |
DictionaryBase (Istream &is, const INew &inew) | |
DictionaryBase (Istream &is) | |
bool | found (const word &keyword) const |
const T * | cfind (const word &keyword) const |
T * | find (const word &keyword) |
const T * | lookup (const word &keyword) const |
T * | lookup (const word &keyword) |
wordList | toc () const |
wordList | sortedToc () const |
template<class Compare > | |
wordList | sortedToc (const Compare &comp) const |
void | insert (const word &keyword, T *) |
void | append (const word &keyword, T *) |
T * | remove (const word &keyword) |
void | clear () |
void | transfer (DictionaryBase< IDLListType, T > &dict) |
void | operator= (const DictionaryBase &) |
const T * | operator[] (const word &key) const |
T * | operator[] (const word &key) |
const T * | lookupPtr (const word &keyword) const |
T * | lookupPtr (const word &keyword) |
template<class Compare > | |
Foam::wordList | sortedToc (const Compare &comp) const |
Protected Member Functions | |
void | addEntries () |
Protected Attributes | |
HashTable< T * > | hashedTs_ |
Friends | |
Ostream & | operator (Ostream &, const DictionaryBase< IDLListType, T > &) |
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it holds.
The double templating allows for the instantiation of forms with or without storage management.
Definition at line 60 of file DictionaryBase.H.
|
explicit |
DictionaryBase | ( | const DictionaryBase & | dict | ) |
Definition at line 47 of file DictionaryBase.C.
DictionaryBase | ( | Istream & | is, |
const INew & | inew | ||
) |
Definition at line 60 of file DictionaryBase.C.
DictionaryBase | ( | Istream & | is | ) |
Definition at line 72 of file DictionaryBase.C.
|
protected |
Definition at line 27 of file DictionaryBase.C.
Definition at line 83 of file DictionaryBase.C.
Definition at line 91 of file DictionaryBase.C.
Referenced by DictionaryBase< IDLList< simpleObjectRegistryEntry >, simpleObjectRegistryEntry >::lookupPtr().
Definition at line 107 of file DictionaryBase.C.
Referenced by Foam::appendNamedEntry(), DictionaryBase< IDLList< simpleObjectRegistryEntry >, simpleObjectRegistryEntry >::lookupPtr(), and Time::readDict().
Definition at line 121 of file DictionaryBase.C.
Referenced by DictionaryBase< IDLList< simpleObjectRegistryEntry >, simpleObjectRegistryEntry >::operator[]().
Definition at line 137 of file DictionaryBase.C.
Foam::wordList toc | ( | ) | const |
Definition at line 153 of file DictionaryBase.C.
Foam::wordList sortedToc | ( | ) | const |
Definition at line 163 of file DictionaryBase.C.
wordList sortedToc | ( | const Compare & | comp | ) | const |
Definition at line 181 of file DictionaryBase.C.
Definition at line 190 of file DictionaryBase.C.
Referenced by Foam::appendNamedEntry().
Definition at line 199 of file DictionaryBase.C.
void clear | ( | ) |
Definition at line 215 of file DictionaryBase.C.
void transfer | ( | DictionaryBase< IDLListType, T > & | dict | ) |
Definition at line 224 of file DictionaryBase.C.
void operator= | ( | const DictionaryBase & | ) |
Definition at line 242 of file DictionaryBase.C.
Definition at line 163 of file DictionaryBase.H.
Definition at line 169 of file DictionaryBase.H.
Definition at line 190 of file DictionaryBase.H.
Definition at line 199 of file DictionaryBase.H.
Foam::wordList sortedToc | ( | const Compare & | comp | ) | const |
Definition at line 172 of file DictionaryBase.C.
|
friend |
Definition at line 80 of file DictionaryBase.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.