141 nElmts_ = lst.nElmts_;
152 return remove(it.curElmt_);
166 inline Foam::SLListBase::iterator::iterator(
SLListBase&
s)
176 curElmt_ = iter.curElmt_;
177 curLink_ = iter.curLink_;
183 return curElmt_ == iter.curElmt_;
189 return curElmt_ != iter.curElmt_;
201 if (curElmt_ == curList_.last_ || curList_.last_ == 0)
207 curElmt_ = curLink_.next_;
208 curLink_ = *curElmt_;
260 curList_(iter.curList_),
261 curElmt_(iter.curElmt_)
265 inline void Foam::SLListBase::const_iterator::operator=
270 curElmt_ = iter.curElmt_;
274 inline bool Foam::SLListBase::const_iterator::operator==
279 return curElmt_ == iter.curElmt_;
283 inline bool Foam::SLListBase::const_iterator::operator!=
288 return curElmt_ != iter.curElmt_;
302 if (curElmt_ == curList_.last_)
308 curElmt_ = curElmt_->next_;
333 return endConstIter_;
341 return endConstIter_;
355 return endConstIter_;
An STL-conforming const_iterator.
const_iterator & operator++()
const_iterator(const SLListBase &, const link *)
Construct for a given SLListBase and link.
An STL-conforming iterator.
bool operator!=(const iterator &) const
bool operator==(const iterator &) const
void operator=(const iterator &)
const_iterator cbegin() const
link * first()
Return first entry.
const const_iterator & cend() const
link * last()
Return last entry.
label size() const
Return number of elements in list.
bool empty() const
Return true if the list is empty.
void transfer(SLListBase &)
Transfer the contents of the argument into this List.
SLListBase()
Null construct.
friend class const_iterator
void clear()
Clear the list.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)