Go to the documentation of this file.
66 return prev_ != 0 && next_ != 0;
176 return replace(oldIter.
curElmt_, newLink);
229 if (curLink_.next_ == curElmt_ || curList_.last_ == 0)
235 curElmt_ = curLink_.next_;
236 curLink_ = *curElmt_;
287 curList_(iter.curList_),
288 curElmt_(iter.curElmt_)
292 inline void Foam::DLListBase::const_iterator::operator=
297 curElmt_ = iter.curElmt_;
301 inline bool Foam::DLListBase::const_iterator::operator==
306 return curElmt_ == iter.curElmt_;
310 inline bool Foam::DLListBase::const_iterator::operator!=
315 return curElmt_ != iter.curElmt_;
329 if (curElmt_ == curList_.last_)
335 curElmt_ = curElmt_->next_;
399 inline void Foam::DLListBase::const_reverse_iterator::operator=
404 curElmt_ = iter.curElmt_;
408 inline bool Foam::DLListBase::const_reverse_iterator::operator==
413 return curElmt_ == iter.curElmt_;
417 inline bool Foam::DLListBase::const_reverse_iterator::operator!=
422 return curElmt_ != iter.curElmt_;
436 if (curElmt_ == curList_.first_)
442 curElmt_ = curElmt_->prev_;
friend class const_reverse_iterator
void operator=(const iterator &)
bool operator==(const iterator &) const
iterator(DLListBase &)
Construct for a given SLListBase with NULL element and link.
A class for managing temporary objects.
link * last()
Return last entry.
DLListBase()
Null construct.
const const_reverse_iterator & crend() const
const const_reverse_iterator & rend() const
void deregister()
Deregister the link after removal.
An STL-conforming iterator.
bool operator!=(const iterator &) const
bool empty() const
Return true if the list is empty.
const_reverse_iterator(const DLListBase &, const link *)
Construct for a given DLListBase and link.
An STL-conforming const_reverse_iterator.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const_reverse_iterator endConstRevIter_
const_reverse_iterator returned by end()
friend class const_iterator
link curLink_
Copy of the link.
link * curElmt_
Current element.
const_iterator(const DLListBase &, const link *)
Construct for a given DLListBase and link.
link * first_
first_ points to first element and last_ points to last element.
const const_iterator & cend() const
link * prev_
Pointer to next entry in list.
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))
const_reverse_iterator rbegin() const
bool registered() const
Check if the link is registered with the DLListBase.
link * remove(link *)
Remove and return element.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const_iterator endConstIter_
const_iterator returned by end()
void transfer(DLListBase &)
Transfer the contents of the argument into this List.
const_iterator cbegin() const
const_reverse_iterator & operator++()
link * first()
Return first entry.
label size() const
Return number of elements in list.
link * replace(link *oldLink, link *newLink)
Replace oldLink with newLink and return element.
const_iterator & operator++()
const_reverse_iterator crbegin() const
void clear()
Clear the list.
label nElmts_
Number of elements in in list.
An STL-conforming const_iterator.
static iterator endIter_
Iterator returned by end()