Intrusive singly-linked list. More...
#include <OpenFOAM/ISLList.H>
Intrusive singly-linked list.
Public Member Functions | |
ISLList () | |
Null construct. | |
ISLList (const T &a) | |
Construct given initial T. | |
template<class INew > | |
ISLList (Istream &is, const INew &inewt) | |
Construct from Istream using given Istream constructor class. | |
ISLList (Istream &is) | |
Construct from Istream. | |
![]() | |
ILList () | |
Null construct. | |
ILList (T *a) | |
Construct given initial T. | |
ILList (Istream &) | |
Construct from Istream. | |
ILList (const ILList< SLListBase, T > &) | |
Construct as copy. | |
ILList (const ILList< SLListBase, T > &lst, const CloneArg &cloneArg) | |
Copy constructor with additional argument for clone. | |
ILList (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. | |
~ILList () | |
bool | eraseHead () |
Remove the head element specified from the list and delete it. | |
bool | erase (T *p) |
Remove the specified element from the list and delete it. | |
void | clear () |
Clear the contents of the list. | |
void | transfer (ILList< SLListBase, T > &) |
Transfer the contents of the argument into this List. | |
void | operator= (const ILList< SLListBase, T > &) |
![]() | |
UILList () | |
Null construct. | |
UILList (T *a) | |
Construct given initial T. | |
UILList (const UILList< SLListBase, T > &) | |
Construct as copy. | |
T * | first () |
Return the first entry. | |
const T * | first () const |
Return the first entry. | |
T * | last () |
Return the last entry. | |
const T * | last () const |
Return the last entry. | |
T * | removeHead () |
Remove and return head. | |
T * | remove (T *p) |
Remove and return element. | |
T * | remove (iterator &it) |
Remove and return specified by iterator. | |
void | operator= (const UILList< SLListBase, T > &) |
bool | operator== (const UILList< SLListBase, T > &) const |
Equality operation on ULists of the same type. | |
bool | operator!= (const UILList< SLListBase, T > &) const |
The opposite of the equality operation. Takes linear time. | |
![]() | |
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. | |
link * | remove (link *) |
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 |