Non-intrusive singly-linked list. More...
#include <OpenFOAM/SLList.H>
Non-intrusive singly-linked list.
Public Member Functions | |
SLList () | |
Null construct. | |
SLList (T a) | |
Construct given initial T. | |
SLList (Istream &is) | |
Construct from Istream. | |
![]() | |
LList () | |
Null construct. | |
LList (T a) | |
Construct given initial T. | |
LList (Istream &) | |
Construct from Istream. | |
LList (const LList< SLListBase, 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< SLListBase, T > &) |
Transfer the contents of the argument into this List. | |
void | operator= (const LList< SLListBase, T > &) |
![]() | |
SLListBase () | |
Null construct. | |
SLListBase (link *) | |
Construct given initial entry. | |
~SLListBase () | |
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. | |
void | transfer (SLListBase &) |
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 |
Additional Inherited Members | |
![]() | |
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 SLListBase::iterator | LListBase_iterator |
typedef SLListBase::const_iterator | LListBase_const_iterator |