Template class for intrusive linked lists. More...
#include <UILList.H>


Classes | |
| class | iterator |
| A non-const iterator. More... | |
| class | const_iterator |
| A const_iterator. More... | |
| class | reverse_iterator |
| A reverse_iterator, for LListBase classes that support reverse iteration. More... | |
| class | const_reverse_iterator |
| A const_reverse_iterator, for LListBase classes that support reverse iteration. More... | |
Public Types | |
| typedef T | value_type |
| Type of values stored. | |
| typedef T * | pointer |
| Pointer for value_type. | |
| typedef const T * | const_pointer |
| Const pointer for value_type. | |
| typedef T & | reference |
| Reference for value_type. | |
| typedef const T & | const_reference |
| Const reference for value_type. | |
| typedef label | size_type |
| The type that can represent the container size. | |
| typedef label | difference_type |
| The difference between iterator objects. | |
| using | base_iterator = typename LListBase::iterator |
| using | const_base_iterator = typename LListBase::const_iterator |
Public Member Functions | |
| UILList ()=default | |
| Default construct. | |
| UILList (T *item) | |
| Construct and add initial item pointer. | |
| UILList (const UILList< LListBase, T > &list) | |
| Construct as copy. | |
| T * | front () |
| The first entry in the list. | |
| const T * | front () const |
| The first entry in the list (const access). | |
| T * | back () |
| The last entry in the list. | |
| const T * | back () const |
| The last entry in the list (const access). | |
| T * | removeHead () |
| Remove and return head. | |
| T * | remove (T *item) |
| Remove and return element. | |
| T * | remove (iterator &iter) |
| Remove and return item specified by iterator. | |
| void | operator= (const UILList< LListBase, T > &lst) |
| Copy assignment. | |
| bool | operator== (const UILList< LListBase, T > &lst) const |
| Equality. True both lists are element-wise equal. | |
| bool | operator!= (const UILList< LListBase, T > &lst) const |
| The opposite of the equality operation. Takes linear time. | |
| Ostream & | writeList (Ostream &os, const label shortLen=0) const |
| Write UILList with line-breaks when length exceeds shortLen. | |
| iterator | begin () |
| Iterator to first item in list with non-const access. | |
| const_iterator | cbegin () const |
| Iterator to first item in list with const access. | |
| reverse_iterator | rbegin () |
| Iterator to last item in list with non-const access. | |
| const_reverse_iterator | crbegin () const |
| Iterator to last item in list with const access. | |
| const_iterator | begin () const |
| Iterator to first item in list with const access. | |
| const_reverse_iterator | rbegin () const |
| Iterator to last item in list with const access. | |
| const iterator & | end () |
| End of list for forward iterators. | |
| const const_iterator & | cend () const |
| End of list for forward iterators. | |
| const reverse_iterator & | rend () |
| End of list for reverse iterators. | |
| const const_reverse_iterator & | crend () const |
| End of list for reverse iterators. | |
| const const_iterator & | end () const |
| End of list for forward iterators. | |
| const const_reverse_iterator & | rend () const |
| End of list for reverse iterators. | |
| T * | first () |
| The first entry in the list. | |
| const T * | first () const |
| The first entry in the list (const access). | |
| T * | last () |
| The last entry in the list. | |
| const T * | last () const |
| The last entry in the list (const access). | |
Friends | |
| Ostream & | operator (Ostream &os, const UILList< LListBase, T > &lst) |
| Write UILList to Ostream with line breaks, as per writeList() with shortLen=-1. | |
Template class for intrusive linked lists.
| typedef T value_type |
Pointer for value_type.
| typedef const T* const_pointer |
Const pointer for value_type.
Reference for value_type.
| typedef const T& const_reference |
Const reference for value_type.
| typedef label difference_type |
| using base_iterator = typename LListBase::iterator |
| using const_base_iterator = typename LListBase::const_iterator |
|
default |
Default construct.
Referenced by ILList< LListBase, T >::ILList(), ILList< LListBase, T >::ILList(), ILList< LListBase, T >::ILList(), operator!=(), operator=(), operator==(), and UILList().

The first entry in the list.
Definition at line 141 of file UILList.H.
Referenced by UILList< DLListBase, T >::first(), and UILList< DLListBase, T >::first().

The last entry in the list.
Definition at line 157 of file UILList.H.
Referenced by UILList< DLListBase, T >::last(), and UILList< DLListBase, T >::last().

Remove and return head.
Definition at line 174 of file UILList.H.
Referenced by ILList< LListBase, T >::pop_front().

Remove and return element.
Definition at line 182 of file UILList.H.
Referenced by ILList< LListBase, T >::erase().

Equality. True both lists are element-wise equal.
(using value_type::operator==). Takes linear time.
Definition at line 51 of file UILList.C.
References cbegin(), cend(), operator, Foam::rhs(), and UILList().
Referenced by operator!=().


The opposite of the equality operation. Takes linear time.
Definition at line 76 of file UILList.C.
References operator, operator==(), Foam::rhs(), and UILList().

| Foam::Ostream & writeList | ( | Ostream & | os, |
| const label | shortLen = 0 ) const |
Write UILList with line-breaks when length exceeds shortLen.
Using '0' suppresses line-breaks entirely.
Definition at line 29 of file UILListIO.C.
References token::BEGIN_LIST, token::END_LIST, FUNCTION_NAME, Foam::nl, os(), token::SPACE, and Foam::T().

|
inline |
Iterator to first item in list with const access.
Definition at line 448 of file UILList.H.
Referenced by operator=(), operator==(), and UILList().

|
inline |
|
inline |
Iterator to last item in list with const access.
Definition at line 464 of file UILList.H.
Referenced by UILList< DLListBase, T >::rbegin().

|
inline |
|
inline |
|
inline |
End of list for forward iterators.
Definition at line 497 of file UILList.H.
Referenced by UILList< DLListBase, T >::end(), operator=(), operator==(), and UILList().

|
inline |
|
inline |
End of list for reverse iterators.
Definition at line 513 of file UILList.H.
Referenced by UILList< DLListBase, T >::rend().

|
inline |
|
inline |
|
friend |
Write UILList to Ostream with line breaks, as per writeList() with shortLen=-1.
Referenced by operator!=(), and operator==().