Template class for non-intrusive linked lists. More...
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. More... | |
typedef T & | reference |
Type that can be used for storing into value_type. More... | |
typedef const T & | const_reference |
Type that can be used for storing into constant. More... | |
typedef label | size_type |
The type that can represent the size of a LList. More... | |
typedef LListBase::iterator | LListBase_iterator |
typedef LListBase::const_iterator | LListBase_const_iterator |
Public Member Functions | |
LList () | |
Null construct. More... | |
LList (T a) | |
Construct given initial T. More... | |
LList (Istream &) | |
Construct from Istream. More... | |
LList (const LList< LListBase, T > &) | |
Copy constructor. More... | |
LList (LList< LListBase, T > &&) | |
Move constructor. More... | |
LList (std::initializer_list< T >) | |
Construct from an initialiser list. More... | |
~LList () | |
Destructor. More... | |
T & | first () |
Return the first entry added. More... | |
const T & | first () const |
Return const access to the first entry added. More... | |
T & | last () |
Return the last entry added. More... | |
const T & | last () const |
Return const access to the last entry added. More... | |
void | insert (const T &a) |
Add at head of list. More... | |
void | append (const T &a) |
Add at tail of list. More... | |
T | removeHead () |
Remove and return head. More... | |
T | remove (link *l) |
Remove and return element. More... | |
T | remove (iterator &it) |
Remove and return element specified by iterator. More... | |
void | clear () |
Delete contents of list. More... | |
void | transfer (LList< LListBase, T > &) |
Transfer the contents of the argument into this List. More... | |
void | operator= (const LList< LListBase, T > &) |
Assignment operator. More... | |
void | operator= (LList< LListBase, T > &&) |
Move assignment operator. More... | |
void | operator= (std::initializer_list< T >) |
Assignment to an initialiser list. More... | |
iterator | begin () |
const iterator & | end () |
const_iterator | cbegin () const |
const const_iterator & | cend () const |
const_iterator | begin () const |
const const_iterator & | end () const |
Friends | |
class | iterator |
class | const_iterator |
Istream & | operator>> (Istream &, LList< LListBase, T > &) |
Ostream & | operator (Ostream &, const LList< LListBase, T > &) |
Template class for non-intrusive linked lists.
typedef T value_type |
typedef const T& const_reference |
Type that can be used for storing into constant.
LList::value_type objects.
typedef LListBase::iterator LListBase_iterator |
typedef LListBase::const_iterator LListBase_const_iterator |
|
inline |
Null construct.
Definition at line 108 of file LList.H.
Referenced by LList< Foam::chemPointISAT *>::LList().
~LList | ( | ) |
Destructor.
Definition at line 64 of file LList.C.
Referenced by LList< Foam::chemPointISAT *>::LList().
|
inline |
Return the first entry added.
Definition at line 139 of file LList.H.
Referenced by FIFOStack< writeData *>::bottom(), LPtrList< LListBase, T >::first(), Foam::polyMeshZipUpCells(), and LIFOStack< Foam::FvWallInfoData >::top().
|
inline |
|
inline |
Return the last entry added.
Definition at line 151 of file LList.H.
Referenced by LIFOStack< Foam::FvWallInfoData >::bottom(), LPtrList< LListBase, T >::last(), Foam::polyMeshZipUpCells(), and FIFOStack< writeData *>::top().
|
inline |
|
inline |
Add at head of list.
Definition at line 166 of file LList.H.
Referenced by Foam::polyMeshZipUpCells(), and LIFOStack< Foam::FvWallInfoData >::push().
|
inline |
Add at tail of list.
Definition at line 172 of file LList.H.
Referenced by LList< Foam::chemPointISAT *>::LList(), Foam::polyMeshZipUpCells(), FIFOStack< writeData *>::push(), Foam::blockMeshTools::read(), and PtrList< transferModel >::read().
|
inline |
Remove and return head.
Definition at line 178 of file LList.H.
Referenced by Foam::polyMeshZipUpCells(), LIFOStack< Foam::FvWallInfoData >::pop(), and FIFOStack< writeData *>::pop().
void clear | ( | ) |
Delete contents of list.
Definition at line 73 of file LList.C.
Referenced by LList< Foam::chemPointISAT *>::LList(), and LList< Foam::chemPointISAT *>::remove().
Transfer the contents of the argument into this List.
and annul the argument list.
Definition at line 86 of file LList.C.
Referenced by LList< Foam::chemPointISAT *>::remove().
Assignment operator.
Definition at line 96 of file LList.C.
Referenced by LList< Foam::chemPointISAT *>::remove().
|
inline |
Definition at line 281 of file LList.H.
Referenced by FixedList< Type, 3 >::FixedList(), FixedList< Type, 3 >::operator=(), List< Field< scalar > >::operator=(), PtrList< transferModel >::read(), and Foam::writeEntry().
|
inline |
Definition at line 286 of file LList.H.
Referenced by List< Field< scalar > >::operator=(), PtrList< transferModel >::read(), and Foam::writeEntry().
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 82 of file LList.H.
Referenced by LList< Foam::chemPointISAT *>::end().
|
friend |
Definition at line 85 of file LList.H.
Referenced by LList< Foam::chemPointISAT *>::cend(), and LList< Foam::chemPointISAT *>::end().