Template dictionary class which does not manages the storage associated with it. More...
#include <OpenFOAM/PtrDictionary.H>
Template dictionary class which does not manages the storage associated with it.
It is derived from DictionaryBase instantiated on a non-memory managed form of intrusive doubly-linked list of T.
Definition at line 55 of file PtrDictionary.H.
Public Member Functions | |
PtrDictionary () | |
Null constructor. | |
PtrDictionary (const PtrDictionary &) | |
Copy construct. | |
template<class INew > | |
PtrDictionary (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. | |
PtrDictionary (Istream &) | |
Construct from Istream. | |
![]() | |
DictionaryBase () | |
Null constructor. | |
DictionaryBase (const DictionaryBase &) | |
Copy construct. | |
DictionaryBase (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. | |
DictionaryBase (Istream &) | |
Construct from Istream using default Istream constructor class. | |
bool | found (const word &) const |
Search DictionaryBase for given keyword. | |
const T * | lookupPtr (const word &) const |
Find and return an entry if present, otherwise return NULL. | |
T * | lookupPtr (const word &) |
Find and return an entry if present, otherwise return NULL. | |
const T * | lookup (const word &) const |
Find and return entry. | |
T * | lookup (const word &) |
Find and return entry. | |
wordList | toc () const |
Return the table of contents. | |
void | insert (const word &, T *) |
Add at head of dictionary. | |
void | append (const word &, T *) |
Add at tail of dictionary. | |
T * | remove (const word &) |
Remove and return entry specified by keyword. | |
void | clear () |
Clear the dictionary. | |
void | transfer (DictionaryBase< DLPtrList< T >, T > &) |
Transfer the contents of the argument into this DictionaryBase. | |
void | operator= (const DictionaryBase &) |
const T * | operator[] (const word &key) const |
Find and return entry. | |
T * | operator[] (const word &key) |
Find and return entry. | |
![]() | |
DLPtrList () | |
Null construct. | |
DLPtrList (T a) | |
Construct given initial T. | |
template<class INew > | |
DLPtrList (Istream &is, const INew &inewt) | |
Construct from Istream using given Istream constructor class. | |
DLPtrList (Istream &is) | |
Construct from Istream. | |
![]() | |
LPtrList () | |
Null construct. | |
LPtrList (T *a) | |
Construct given initial T. | |
LPtrList (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. | |
LPtrList (Istream &) | |
Construct from Istream using default Istream constructor class. | |
LPtrList (const LPtrList &) | |
Construct as copy. | |
~LPtrList () | |
T & | first () |
Return the first entry added. | |
const T & | first () const |
Return const access to the first entry added. | |
T & | last () |
Return the last entry added. | |
const T & | last () const |
Return const access to the last entry added. | |
bool | eraseHead () |
Remove the head element from the list and delete the pointer. | |
void | transfer (LPtrList< DLListBase, T > &) |
Transfer the contents of the argument into this List. | |
void | operator= (const LPtrList< DLListBase, T > &) |
Assign copy. | |
![]() | |
LList () | |
Null construct. | |
LList (T *a) | |
Construct given initial T. | |
LList (Istream &) | |
Construct from Istream. | |
LList (const LList< DLListBase, T * > &) | |
Construct as copy. | |
~LList () | |
void | insert (const T *&a) |
Add at head of list. | |
void | append (const T *&a) |
Add at tail of list. | |
T * | removeHead () |
Remove and return head. | |
T * | remove (link *l) |
Remove and return element. | |
T * | remove (iterator &it) |
Remove and return element specified by iterator. | |
void | transfer (LList< DLListBase, T * > &) |
Transfer the contents of the argument into this List. | |
void | operator= (const LList< DLListBase, T * > &) |
![]() | |
DLListBase () | |
Null construct. | |
DLListBase (link *) | |
Construct given initial entry. | |
~DLListBase () | |
label | size () const |
Return number of elements in list. | |
bool | empty () const |
Return true if the list is empty. | |
void | insert (link *) |
Add at head of list. | |
void | append (link *) |
Add at tail of list. | |
bool | swapUp (link *) |
Swap this element with the one above unless it is at the top. | |
bool | swapDown (link *) |
Swap this element with the one below unless it is at the bottom. | |
link * | replace (link *oldLink, link *newLink) |
Replace oldLink with newLink and return element. | |
link * | replace (iterator &oldIter, link *newLink) |
Replace oldIter with newLink and return element. | |
void | transfer (DLListBase &) |
Transfer the contents of the argument into this List. | |
iterator | begin () |
const iterator & | end () |
const_iterator | cbegin () const |
const const_iterator & | cend () const |
const_iterator | begin () const |
const const_iterator & | end () const |
PtrDictionary | ( | ) |
Null constructor.
Definition at line 31 of file PtrDictionary.C.
PtrDictionary | ( | const PtrDictionary< T > & | dict | ) |
Copy construct.
Definition at line 36 of file PtrDictionary.C.
PtrDictionary | ( | Istream & | is, |
const INew & | iNew | ||
) |
Construct from Istream using given Istream constructor class.
Definition at line 44 of file PtrDictionary.C.
PtrDictionary | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 51 of file PtrDictionary.C.