33 template<
class LListBase,
class T>
36 LList<LListBase,
T*>()
38 for (
auto iter = lst.cbegin(); iter != lst.cend(); ++iter)
45 template<
class LListBase,
class T>
48 LList<LListBase,
T*>()
56 template<
class LListBase,
class T>
65 template<
class LListBase,
class T>
75 T*
p = this->removeHead();
82 template<
class LListBase,
class T>
85 this->pop_front(this->size());
90 template<
class LListBase,
class T>
100 template<
class LListBase,
class T>
105 for (
auto iter = lst.
cbegin(); iter != lst.
cend(); ++iter)
107 this->push_back((*iter).clone().ptr());
112 template<
class LListBase,
class T>
const_iterator cbegin() const
Iterator to first item in list with const access.
void operator=(const LPtrList< LListBase, T > &lst)
Copy assign by using 'clone()' for each element.
~LPtrList()
Destructor. Calls clear()
Template class for non-intrusive linked PtrLists.
void transfer(LList< LListBase, T > &lst)
Transfer the contents of the argument into this List and annul the argument list. ...
void push_back(const T * &elem)
Add copy at back of list.
void clear()
Delete contents of list.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const const_iterator & cend() const
End of list for forward iterators.
void clear()
Clear the contents of the list.
LPtrList()=default
Default construct.
void transfer(LPtrList< LListBase, T > &lst)
Transfer the contents of the argument into this List and annul the argument list. ...
void pop_front(label n=1)
Remove first element(s) from the list (deletes pointers)