Go to the documentation of this file.
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_;
const_iterator cbegin() const
link * first()
Return first entry.
void transfer(SLListBase &)
Transfer the contents of the argument into this List.
link * curElmt_
Current element.
A class for managing temporary objects.
link * last_
last_ points to last element
SLListBase()
Null construct.
void clear()
Clear the list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
link * last()
Return last entry.
bool operator==(const iterator &) const
bool operator!=(const iterator &) const
const_iterator(const SLListBase &, const link *)
Construct for a given SLListBase and link.
errorManip< error > abort(error &err)
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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
An STL-conforming iterator.
static iterator endIter_
Iterator returned by end()
An STL-conforming const_iterator.
void operator=(const iterator &)
label nElmts_
Number of elements in in list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label size() const
Return number of elements in list.
link curLink_
Copy of the link.
bool empty() const
Return true if the list is empty.
friend class const_iterator
iterator(SLListBase &)
Construct for a given SLListBase with NULL element and link.
const const_iterator & cend() const
static const_iterator endConstIter_
const_iterator returned by end()
const_iterator & operator++()