Template class for intrusive linked lists. More...
Classes | |
class | const_iterator |
A const_iterator. More... | |
class | const_reverse_iterator |
A const_reverse_iterator, for LListBase classes that support reverse iteration. More... | |
class | iterator |
A non-const iterator. More... | |
class | reverse_iterator |
A reverse_iterator, for LListBase classes that support reverse iteration. More... | |
Public Types | |
typedef T | value_type |
Type of values stored. More... | |
typedef T * | pointer |
Pointer for value_type. More... | |
typedef const T * | const_pointer |
Const pointer for value_type. More... | |
typedef T & | reference |
Reference for value_type. More... | |
typedef const T & | const_reference |
Const reference for value_type. More... | |
typedef label | size_type |
The type that can represent the container size. More... | |
typedef label | difference_type |
The difference between iterator objects. More... | |
using | base_iterator = typename LListBase::iterator |
using | const_base_iterator = typename LListBase::const_iterator |
Public Member Functions | |
UILList ()=default | |
Default construct. More... | |
UILList (T *item) | |
Construct and add initial item pointer. More... | |
UILList (const UILList< LListBase, T > &list) | |
Construct as copy. More... | |
T * | front () |
The first entry in the list. More... | |
const T * | front () const |
The first entry in the list (const access) More... | |
T * | back () |
The last entry in the list. More... | |
const T * | back () const |
The last entry in the list (const access) More... | |
T * | removeHead () |
Remove and return head. More... | |
T * | remove (T *item) |
Remove and return element. More... | |
T * | remove (iterator &iter) |
Remove and return item specified by iterator. More... | |
void | operator= (const UILList< LListBase, T > &lst) |
Copy assignment. More... | |
bool | operator== (const UILList< LListBase, T > &lst) const |
Equality. True both lists are element-wise equal. More... | |
bool | operator!= (const UILList< LListBase, T > &lst) const |
The opposite of the equality operation. Takes linear time. More... | |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
Write UILList with line-breaks when length exceeds shortLen. More... | |
iterator | begin () |
Iterator to first item in list with non-const access. More... | |
const_iterator | cbegin () const |
Iterator to first item in list with const access. More... | |
reverse_iterator | rbegin () |
Iterator to last item in list with non-const access. More... | |
const_reverse_iterator | crbegin () const |
Iterator to last item in list with const access. More... | |
const_iterator | begin () const |
Iterator to first item in list with const access. More... | |
const_reverse_iterator | rbegin () const |
Iterator to last item in list with const access. More... | |
const iterator & | end () |
End of list for forward iterators. More... | |
const const_iterator & | cend () const |
End of list for forward iterators. More... | |
const reverse_iterator & | rend () |
End of list for reverse iterators. More... | |
const const_reverse_iterator & | crend () const |
End of list for reverse iterators. More... | |
const const_iterator & | end () const |
End of list for forward iterators. More... | |
const const_reverse_iterator & | rend () const |
End of list for reverse iterators. More... | |
T * | first () |
The first entry in the list. More... | |
const T * | first () const |
The first entry in the list (const access) More... | |
T * | last () |
The last entry in the list. More... | |
const T * | last () const |
The last entry in the list (const access) More... | |
Friends | |
Ostream & | operator (Ostream &os, const UILList< LListBase, T > &lst) |
Write UILList to Ostream with line breaks, as per writeList() with shortLen=-1. More... | |
Template class for intrusive linked lists.
typedef T value_type |
typedef const T* const_pointer |
typedef const T& const_reference |
typedef label size_type |
typedef label difference_type |
using base_iterator = typename LListBase::iterator |
using const_base_iterator = typename LListBase::const_iterator |
|
default |
Default construct.
Construct as copy.
Definition at line 27 of file UILList.C.
References UILList< LListBase, T >::cbegin(), and UILList< LListBase, T >::cend().
|
inline |
The first entry in the list.
Definition at line 143 of file UILList.H.
References Foam::T().
Referenced by UILList< LListBase, T >::first().
|
inline |
|
inline |
The last entry in the list.
Definition at line 159 of file UILList.H.
References Foam::T().
Referenced by UILList< LListBase, T >::last().
|
inline |
|
inline |
Copy assignment.
Definition at line 39 of file UILList.C.
References UILList< LListBase, T >::cbegin(), UILList< LListBase, T >::cend(), and clear().
Equality. True both lists are element-wise equal.
(using value_type::operator==). Takes linear time.
Definition at line 52 of file UILList.C.
References stdFoam::cbegin(), UILList< LListBase, T >::cbegin(), and stdFoam::cend().
The opposite of the equality operation. Takes linear time.
Definition at line 77 of file UILList.C.
References Foam::operator==().
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 30 of file UILListIO.C.
References FUNCTION_NAME, Foam::nl, os(), and T.
|
inline |
|
inline |
Iterator to first item in list with const access.
Definition at line 450 of file UILList.H.
Referenced by UILList< LListBase, T >::operator=(), UILList< LListBase, T >::operator==(), and UILList< LListBase, T >::UILList().
|
inline |
|
inline |
Iterator to last item in list with const access.
Definition at line 466 of file UILList.H.
Referenced by UILList< LListBase, T >::rbegin().
|
inline |
Iterator to first item in list with const access.
Definition at line 474 of file UILList.H.
References stdFoam::cbegin().
|
inline |
Iterator to last item in list with const access.
Definition at line 482 of file UILList.H.
References UILList< LListBase, T >::crbegin().
|
inline |
End of list for forward iterators.
Definition at line 491 of file UILList.H.
Referenced by KirchhoffShell::solveDisplacement().
|
inline |
End of list for forward iterators.
Definition at line 499 of file UILList.H.
Referenced by UILList< LListBase, T >::end(), UILList< LListBase, T >::operator=(), and UILList< LListBase, T >::UILList().
|
inline |
|
inline |
End of list for reverse iterators.
Definition at line 515 of file UILList.H.
Referenced by UILList< LListBase, T >::rend().
|
inline |
End of list for forward iterators.
Definition at line 523 of file UILList.H.
References UILList< LListBase, T >::cend().
|
inline |
End of list for reverse iterators.
Definition at line 531 of file UILList.H.
References UILList< LListBase, T >::crend().
|
inline |
The first entry in the list.
FOAM_DEPRECATED_FOR(2022-10, "front()")
Definition at line 544 of file UILList.H.
References UILList< LListBase, T >::front().
Referenced by bladeModel::bladeModel(), boxToCell::boxToCell(), boxToFace::boxToFace(), boxToPoint::boxToPoint(), meshRefinement::lookup(), and dictionaryEntry::startLineNumber().
|
inline |
The first entry in the list (const access)
FOAM_DEPRECATED_FOR(2022-10, "front()")
Definition at line 551 of file UILList.H.
References UILList< LListBase, T >::front().
|
inline |
The last entry in the list.
FOAM_DEPRECATED_FOR(2022-10, "back()")
Definition at line 558 of file UILList.H.
References UILList< LListBase, T >::back().
|
inline |
The last entry in the list (const access)
FOAM_DEPRECATED_FOR(2022-10, "back()")
Definition at line 565 of file UILList.H.
References UILList< LListBase, T >::back().
Write UILList to Ostream with line breaks, as per writeList() with shortLen=-1.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.