Go to the documentation of this file.
33 template<
class LListBase,
class T>
38 for (
const auto& item : lst)
40 this->
append(item.clone().ptr());
45 template<
class LListBase,
class T>
50 LListBase::transfer(lst);
54 template<
class LListBase,
class T>
55 template<
class CloneArg>
59 const CloneArg& cloneArg
64 for (
const auto& item :lst)
66 this->
append(item.clone(cloneArg).ptr());
73 template<
class LListBase,
class T>
82 template<
class LListBase,
class T>
85 T*
p = this->removeHead();
96 template<
class LListBase,
class T>
111 template<
class LListBase,
class T>
114 const label len = this->size();
116 for (label i=0; i<len; ++i)
125 template<
class LListBase,
class T>
129 LListBase::transfer(lst);
135 template<
class LListBase,
class T>
140 for (
const auto& item : lst)
142 this->
append(item.clone().ptr());
147 template<
class LListBase,
class T>
151 LListBase::transfer(lst);
bool eraseHead()
Remove the head element specified from the list and delete it.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void clear()
Clear the contents of the list.
Template class for intrusive linked lists.
ILList()=default
Default construct.
bool erase(T *item)
Remove the specified element from the list and delete it.
Template class for intrusive linked lists.
void operator=(const ILList< LListBase, T > &lst)
Copy assignment using the 'clone()' method for each element.
void transfer(ILList< LListBase, T > &lst)