Template class for non-intrusive linked lists. More...
#include <OpenFOAM/LList.H>
Template class for non-intrusive linked lists.
Inheritance diagram for LList< LListBase, T >:
Collaboration diagram for LList< LListBase, T >:Classes | |
| class | const_iterator |
| An STL-conforming const_iterator. More... | |
| class | iterator |
| An STL-conforming iterator. More... | |
| struct | link |
| Link structure. More... | |
Public Types | |
| typedef T | value_type |
| Type of values the LList contains. | |
| typedef T & | reference |
| Type that can be used for storing into value_type. | |
| typedef const T & | const_reference |
| Type that can be used for storing into constant. | |
| typedef label | size_type |
| The type that can represent the size of a LList. | |
| typedef LListBase::iterator | LListBase_iterator |
| typedef LListBase::const_iterator | LListBase_const_iterator |
Public Member Functions | |
| LList () | |
| Null construct. | |
| LList (T a) | |
| Construct given initial T. | |
| LList (Istream &) | |
| Construct from Istream. | |
| LList (const LList< LListBase, T > &) | |
| Construct as copy. | |
| ~LList () | |
| 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. | |
| 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 | clear () |
| Delete contents of list. | |
| void | transfer (LList< LListBase, T > &) |
| Transfer the contents of the argument into this List. | |
| void | operator= (const LList< LListBase, T > &) |
Friends | |
| class | iterator |
| class | const_iterator |
| Istream & | operator>> (Istream &, LList< LListBase, T > &) |
| Ostream & | operator (Ostream &, const LList< LListBase, T > &) |
| typedef T value_type |
Type that can be used for storing into value_type.
objects.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, and LPtrList< DLListBase, phase >.
| typedef const T& const_reference |
Type that can be used for storing into constant.
LList::value_type objects.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, and LPtrList< DLListBase, phase >.
| typedef label size_type |
| typedef LListBase::iterator LListBase_iterator |
| typedef LListBase::const_iterator LListBase_const_iterator |
Construct as copy.
Definition at line 34 of file LList.C.
References LList< LListBase, T >::append().
|
inline |
Return the first entry added.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, and LPtrList< DLListBase, phase >.
Definition at line 135 of file LList.H.
Referenced by LList< SLListBase, word >::first(), and Foam::polyMeshZipUpCells().
|
inline |
Return const access to the first entry added.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, and LPtrList< DLListBase, phase >.
|
inline |
Return the last entry added.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, and LPtrList< DLListBase, phase >.
Definition at line 147 of file LList.H.
Referenced by LList< SLListBase, word >::last(), and Foam::polyMeshZipUpCells().
|
inline |
Return const access to the last entry added.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, and LPtrList< DLListBase, phase >.
|
inline |
Add at head of list.
Definition at line 162 of file LList.H.
Referenced by LList< SLListBase, word >::insert(), and Foam::polyMeshZipUpCells().
|
inline |
Add at tail of list.
Definition at line 168 of file LList.H.
Referenced by LList< SLListBase, word >::append(), cyclicGAMGInterface::cyclicGAMGInterface(), interpolate::init(), mag::init(), magSqr::init(), components::init(), div::init(), magGrad::init(), randomise::init(), addSubtract::init(), LList< LListBase, T >::LList(), Foam::operator>>(), Foam::polyMeshZipUpCells(), and processorGAMGInterface::processorGAMGInterface().
|
inline |
Remove and return head.
Definition at line 174 of file LList.H.
Referenced by Foam::polyMeshZipUpCells(), and LList< SLListBase, word >::removeHead().
Remove and return element.
Definition at line 183 of file LList.H.
Referenced by LList< SLListBase, word >::remove().
| void clear | ( | ) |
Delete contents of list.
Reimplemented in LPtrList< LListBase, T >, LPtrList< SLListBase, gasReaction >, LPtrList< DLListBase, T >, LPtrList< SLListBase, T >, LPtrList< SLListBase, Reaction< ThermoType > >, LPtrList< DLListBase, phase >, DictionaryBase< DLPtrList< phase >, phase >, DictionaryBase< DLList< T * >, T >, and DictionaryBase< DLPtrList< T >, T >.
Definition at line 55 of file LList.C.
References clear().
Referenced by Foam::operator>>().
|
friend |
|
friend |