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 |
Construct from Istream.
Definition at line 33 of file LListIO.C.
References Foam::operator>>().
Copy constructor.
Definition at line 31 of file LList.C.
References LList< LListBase, T >::append(), and Foam::T().
Move constructor.
Definition at line 43 of file LList.C.
References LList< LListBase, T >::transfer().
Construct from an initialiser list.
Definition at line 52 of file LList.C.
References LList< LListBase, T >::append(), and Foam::T().
|
inline |
Return the first entry added.
Definition at line 139 of file LList.H.
References Foam::first().
Referenced by FIFOStack< T >::bottom(), ULPtrList< LListBase, T >::first(), Foam::polyMeshZipUpCells(), and LIFOStack< T >::top().
|
inline |
Return const access to the first entry added.
Definition at line 145 of file LList.H.
References Foam::first().
|
inline |
Return the last entry added.
Definition at line 151 of file LList.H.
Referenced by LIFOStack< T >::bottom(), ULPtrList< LListBase, T >::last(), Foam::polyMeshZipUpCells(), and FIFOStack< T >::top().
|
inline |
|
inline |
Add at head of list.
Definition at line 166 of file LList.H.
References Foam::vtkWriteOps::insert().
Referenced by Foam::polyMeshZipUpCells(), and LIFOStack< T >::push().
|
inline |
Add at tail of list.
Definition at line 172 of file LList.H.
Referenced by Foam::bandCompression(), LList< LListBase, T >::LList(), Foam::polyMeshZipUpCells(), FIFOStack< T >::push(), and Foam::blockMeshTools::read().
|
inline |
Remove and return head.
Definition at line 178 of file LList.H.
References LList< LListBase, T >::link::obj_, and Foam::T().
Referenced by Foam::bandCompression(), Foam::polyMeshZipUpCells(), FIFOStack< T >::pop(), and LIFOStack< T >::pop().
Remove and return element.
Definition at line 187 of file LList.H.
References LList< LListBase, T >::link::obj_, and Foam::T().
Remove and return element specified by iterator.
Definition at line 196 of file LList.H.
References LList< LListBase, T >::link::obj_, and Foam::T().
void clear |
Transfer the contents of the argument into this List.
and annul the argument list.
Definition at line 86 of file LList.C.
References clear().
Referenced by LList< LListBase, T >::LList().
|
inline |
Definition at line 281 of file LList.H.
Referenced by FixedList< T, Size >::FixedList(), LPtrList< LListBase, T >::operator=(), and List< T >::operator=().
|
inline |
Definition at line 286 of file LList.H.
Referenced by LPtrList< LListBase, T >::operator=(), and List< T >::operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |