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_;
link * next_
Pointer to next entry in list.
link * first()
Return first entry.
bool empty() const
Return true if the list is empty.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool operator==(const iterator &) const
void clear()
Clear the list.
void transfer(SLListBase &)
Transfer the contents of the argument into this List.
An STL-conforming const_iterator.
SLListBase()
Null construct.
bool operator!=(const iterator &) const
label size() const
Return number of elements in list.
const_iterator & operator++()
errorManip< error > abort(error &err)
const const_iterator & cend() const
const_iterator cbegin() const
void operator=(const iterator &)
const_iterator(const SLListBase &, const link *)
Construct for a given SLListBase and link.
A class for managing temporary objects.
An STL-conforming iterator.
link * last()
Return last entry.