33template<
class LListBase,
class T>
38 for (
const auto& item : lst)
40 this->
append(item.clone().ptr());
45template<
class LListBase,
class T>
54template<
class LListBase,
class T>
55template<
class CloneArg>
59 const CloneArg& cloneArg
64 for (
const auto& item : lst)
66 this->
append(item.clone(cloneArg).ptr());
73template<
class LListBase,
class T>
82template<
class LListBase,
class T>
85 T*
p = this->removeHead();
91template<
class LListBase,
class T>
100template<
class LListBase,
class T>
103 label len = this->size();
114template<
class LListBase,
class T>
124template<
class LListBase,
class T>
129 for (
const auto& item : lst)
136template<
class LListBase,
class T>
Template class for intrusive linked lists.
bool eraseHead()
Remove the head element specified from the list and delete it.
ILList()=default
Default construct.
bool erase(T *item)
Remove the specified element from the list and delete it.
void clear()
Clear the contents of the list.
void operator=(const ILList< LListBase, T > &lst)
Copy assignment using the 'clone()' method for each element.
Template class for intrusive linked lists.
transferModelList & transfer()
Transfer.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))