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


Public Member Functions | |
| ILList ()=default | |
| Default construct. | |
| ILList (T *item) | |
| Construct and add initial item pointer. | |
| ILList (Istream &is) | |
| Construct from Istream. | |
| ILList (const ILList< LListBase, T > &lst) | |
| Copy construct using the 'clone()' method for each element. | |
| ILList (ILList< LListBase, T > &&lst) | |
| Move construct. | |
| template<class CloneArg> | |
| ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg) | |
| Copy constructor with additional argument for clone 'clone()'. | |
| template<class INew> | |
| ILList (Istream &is, const INew &inew) | |
| Construct from Istream using given Istream constructor class. | |
| ~ILList () | |
| Destructor. Calls clear(). | |
| void | clear () |
| Clear the contents of the list. | |
| void | pop_front (label n=1) |
| Remove first element(s) from the list (deletes pointers). | |
| bool | erase (T *item) |
| Remove the specified element from the list and delete it. | |
| void | transfer (ILList< LListBase, T > &lst) |
| Transfer the contents of the argument into this List and annul the argument list. | |
| void | operator= (const ILList< LListBase, T > &lst) |
| Copy assignment using the 'clone()' method for each element. | |
| void | operator= (ILList< LListBase, T > &&lst) |
| Move assignment. | |
| Public Member Functions inherited from UILList< LListBase, T > | |
| 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 | |
| Istream & | operator>> (Istream &is, ILList< LListBase, T > &list) |
| Read from Istream, discarding existing contents. | |
Additional Inherited Members | |
| Public Types inherited from UILList< LListBase, T > | |
| 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 |
Template class for intrusive linked lists.
|
default |
Default construct.
Referenced by ILList(), ILList(), ILList(), operator=(), operator=(), and transfer().

Construct from Istream.
Definition at line 123 of file ILListIO.C.
Copy construct using the 'clone()' method for each element.
Definition at line 27 of file ILList.C.
References ILList(), Foam::T(), and UILList< LListBase, T >::UILList().

Move construct.
Definition at line 39 of file ILList.C.
References ILList(), Foam::T(), and UILList< LListBase, T >::UILList().

| ILList | ( | const ILList< LListBase, T > & | lst, |
| const CloneArg & | cloneArg ) |
Copy constructor with additional argument for clone 'clone()'.
Definition at line 49 of file ILList.C.
References ILList(), Foam::T(), and UILList< LListBase, T >::UILList().

Construct from Istream using given Istream constructor class.
Definition at line 116 of file ILListIO.C.
| void clear | ( | ) |
Clear the contents of the list.
Definition at line 93 of file ILList.C.
References pop_front().

| void pop_front | ( | label | n = 1 | ) |
Remove the specified element from the list and delete it.
Definition at line 101 of file ILList.C.
References p, UILList< LListBase, T >::remove(), and Foam::T().

|
friend |
Read from Istream, discarding existing contents.