Template class for non-intrusive linked PtrLists. More...
Classes | |
class | const_iterator |
An STL-conforming const_iterator. More... | |
class | const_reverse_iterator |
class | iterator |
An STL-conforming iterator. More... | |
class | reverse_iterator |
Public Types | |
typedef T * | pointer |
Pointer for LPtrList::value_type objects. More... | |
typedef T & | reference |
Reference for LPtrList::value_type objects. More... | |
using | base_iterator = typename LListBase::iterator |
using | const_base_iterator = typename LListBase::const_iterator |
typedef LList< LListBase, T * > | parent_type |
The parent list storage. More... | |
Public Member Functions | |
LPtrList ()=default | |
Null construct. More... | |
LPtrList (T *item) | |
Construct and insert the initial T item. More... | |
LPtrList (const LPtrList &lst) | |
Copy construct by using 'clone()' for each element. More... | |
LPtrList (LPtrList &&lst) | |
Move construct. More... | |
template<class INew > | |
LPtrList (Istream &is, const INew &inew) | |
Construct from Istream using given Istream constructor class. More... | |
LPtrList (Istream &is) | |
Construct from Istream using default Istream constructor class. More... | |
~LPtrList () | |
Destructor. 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... | |
bool | eraseHead () |
Remove the head element from the list and delete the pointer. More... | |
void | clear () |
Clear the contents of the list. More... | |
void | transfer (LPtrList< LListBase, T > &lst) |
void | operator= (const LPtrList< LListBase, T > &lst) |
Copy assign by using 'clone()' for each element. More... | |
void | operator= (LPtrList< LListBase, T > &&lst) |
Move assign. 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... | |
Public Attributes | |
const typedef T * | const_pointer |
Const pointer for LPtrList::value_type objects. More... | |
const typedef T & | const_reference |
Const reference for LPtrList::value_type objects. More... | |
Friends | |
Istream & | operator>> (Istream &is, LPtrList< LListBase, T > &list) |
Ostream & | operator (Ostream &os, const LPtrList< LListBase, T > &list) |
Template class for non-intrusive linked PtrLists.
Definition at line 50 of file LPtrList.H.
Pointer for LPtrList::value_type objects.
Definition at line 90 of file LPtrList.H.
Reference for LPtrList::value_type objects.
Definition at line 96 of file LPtrList.H.
using base_iterator = typename LListBase::iterator |
Definition at line 107 of file LPtrList.H.
using const_base_iterator = typename LListBase::const_iterator |
Definition at line 108 of file LPtrList.H.
typedef LList<LListBase, T*> parent_type |
The parent list storage.
Definition at line 111 of file LPtrList.H.
|
default |
Null construct.
Construct and insert the initial T item.
Definition at line 120 of file LPtrList.H.
References insert().
Copy construct by using 'clone()' for each element.
Construct from Istream using given Istream constructor class.
Definition at line 137 of file LPtrListIO.C.
Construct from Istream using default Istream constructor class.
Definition at line 144 of file LPtrListIO.C.
~LPtrList | ( | ) |
Destructor.
Definition at line 56 of file LPtrList.C.
References clear().
|
inline |
The first entry in the list.
Definition at line 146 of file LPtrList.H.
References LList< LListBase, T >::first().
|
inline |
The first entry in the list (const access)
Definition at line 152 of file LPtrList.H.
References LList< LListBase, T >::first().
|
inline |
The last entry in the list.
Definition at line 158 of file LPtrList.H.
References LList< LListBase, T >::last().
|
inline |
The last entry in the list (const access)
Definition at line 164 of file LPtrList.H.
References LList< LListBase, T >::last().
bool eraseHead | ( | ) |
Remove the head element from the list and delete the pointer.
Definition at line 65 of file LPtrList.C.
void clear | ( | ) |
Clear the contents of the list.
Definition at line 80 of file LPtrList.C.
References clear().
Transfer the contents of the argument into this List and annul the argument list.
Definition at line 93 of file LPtrList.C.
References clear().
Copy assign by using 'clone()' for each element.
Definition at line 103 of file LPtrList.C.
References append(), LPtrList< LListBase, T >::cbegin(), LPtrList< LListBase, T >::cend(), and clear().
Move assign.
Definition at line 115 of file LPtrList.C.
|
inline |
Iterator to first item in list with non-const access.
Definition at line 346 of file LPtrList.H.
|
inline |
Iterator to first item in list with const access.
Definition at line 352 of file LPtrList.H.
Referenced by LPtrList< LListBase, T >::operator=(), and PtrList< transferModel >::PtrList().
|
inline |
Iterator to last item in list with non-const access.
Definition at line 358 of file LPtrList.H.
|
inline |
Iterator to last item in list with const access.
Definition at line 364 of file LPtrList.H.
Referenced by LPtrList< LListBase, T >::rbegin().
|
inline |
Iterator to first item in list with const access.
Definition at line 370 of file LPtrList.H.
References stdFoam::cbegin().
|
inline |
Iterator to last item in list with const access.
Definition at line 376 of file LPtrList.H.
References LPtrList< LListBase, T >::crbegin().
|
inline |
End of list for forward iterators.
Definition at line 383 of file LPtrList.H.
|
inline |
End of list for forward iterators.
Definition at line 389 of file LPtrList.H.
Referenced by LPtrList< LListBase, T >::end(), LPtrList< LListBase, T >::operator=(), and PtrList< transferModel >::PtrList().
|
inline |
End of list for reverse iterators.
Definition at line 395 of file LPtrList.H.
|
inline |
End of list for reverse iterators.
Definition at line 401 of file LPtrList.H.
Referenced by LPtrList< LListBase, T >::rend().
|
inline |
End of list for forward iterators.
Definition at line 407 of file LPtrList.H.
References LPtrList< LListBase, T >::cend().
|
inline |
End of list for reverse iterators.
Definition at line 413 of file LPtrList.H.
References LPtrList< LListBase, T >::crend().
const typedef T* const_pointer |
Const pointer for LPtrList::value_type objects.
Definition at line 93 of file LPtrList.H.
const typedef T& const_reference |
Const reference for LPtrList::value_type objects.
Definition at line 99 of file LPtrList.H.