|
|
|
DictionaryBase< IDLListType, T > Class Template ReferenceBase dictionary class templated on both the form of doubly-linked list it uses as well as the type it holds. More...
Inheritance diagram for DictionaryBase< IDLListType, T >:
![]()
Collaboration diagram for DictionaryBase< IDLListType, T >:
![]()
Detailed Descriptiontemplate<class IDLListType, class T>
Base dictionary class templated on both the form of doubly-linked list it uses as well as the type it holds.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DictionaryBase | ( | ) | [inline] |
| DictionaryBase | ( | const DictionaryBase< IDLListType, T > & | dict | ) | [inline] |
| DictionaryBase | ( | Istream & | is, | |
| const INew & | iNew | |||
| ) | [inline] |
Construct from Istream using given Istream constructor class.
Definition at line 59 of file DictionaryBase.C.
| DictionaryBase | ( | Istream & | is | ) | [inline] |
Construct from Istream using default Istream constructor class.
Definition at line 71 of file DictionaryBase.C.
| bool found | ( | const word & | keyword | ) | const [inline] |
| const T * lookupPtr | ( | const word & | keyword | ) | const [inline] |
Find and return an entry if present, otherwise return NULL.
Definition at line 92 of file DictionaryBase.C.
References HashTable< T, Key, Hash >::found().

| T * lookupPtr | ( | const word & | keyword | ) | [inline] |
Find and return an entry if present, otherwise return NULL.
Definition at line 111 of file DictionaryBase.C.
| const T * lookup | ( | const word & | keyword | ) | const [inline] |
Find and return entry.
Definition at line 128 of file DictionaryBase.C.
Referenced by DictionaryBase< IDLList< T >, T >::operator[]().

| T * lookup | ( | const word & | keyword | ) | [inline] |
| Foam::wordList toc | ( | ) | const [inline] |
| void insert | ( | const word & | keyword, | |
| T * | tPtr | |||
| ) | [inline] |
Add at head of dictionary.
Definition at line 187 of file DictionaryBase.C.
Referenced by DictionaryBase< IDLListType, T >::append().

| void append | ( | const word & | keyword, | |
| T * | tPtr | |||
| ) | [inline] |
Add at tail of dictionary.
Definition at line 197 of file DictionaryBase.C.
References DictionaryBase< IDLListType, T >::insert(), and HashTable< T, Key, Hash >::insert().
Referenced by DictionaryBase< IDLListType, T >::remove().


| T * remove | ( | const word & | keyword | ) | [inline] |
Remove and return entry specified by keyword.
Return NULL if the keyword was not found.
Definition at line 206 of file DictionaryBase.C.
References DictionaryBase< IDLListType, T >::append(), and HashTable< T, Key, Hash >::insert().

| void clear | ( | ) | [inline] |
Clear the dictionary.
Definition at line 224 of file DictionaryBase.C.
Referenced by DictionaryBase< IDLListType, T >::transfer().

| void transfer | ( | DictionaryBase< IDLListType, T > & | dict | ) | [inline] |
Transfer the contents of the argument into this DictionaryBase.
and annull the argument.
Definition at line 233 of file DictionaryBase.C.
References DictionaryBase< IDLListType, T >::clear(), and HashTable< T, Key, Hash >::clear().

| void operator= | ( | const DictionaryBase< IDLListType, T > & | ) |
| const T* operator[] | ( | const word & | key | ) | const [inline] |
| T* operator[] | ( | const word & | key | ) | [inline] |
| Ostream& operator | ( | Ostream & | , | |
| const DictionaryBase< IDLListType, T > & | ||||
| ) | [friend] |