34template<
class IteratorType>
41template<
class IteratorType>
52 return IteratorType(list,
nullptr);
56template<
class IteratorType>
67 return IteratorType(list,
nullptr);
151 std::swap(last_, lst.last_);
152 std::swap(size_, lst.size_);
175 return remove(iter.node_);
191 if (node_ !=
nullptr)
207 return (node_ !=
nullptr);
215 if (node_ == list_->last_ || list_->last_ ==
nullptr)
238 return node_ == iter.node_;
244 return node_ != iter.node_;
253 return iterator_first<iterator>();
263 return iterator_end<SLListBase::iterator>();
270 return iterator_end<SLListBase::const_iterator>();
306 return (node_ !=
nullptr);
314 if (node_ == list_->last_)
320 node_ = node_->next_;
331 return node_ == iter.node_;
340 return node_ != iter.node_;
349 return iterator_first<const_iterator>();
Forward iterator with non-const access.
unsigned int remove()
Remove and return the last element.
A primitive const node iterator.
void next()
Move forward through list.
bool good() const noexcept
Pointing at a valid storage node.
const link * get_node() const noexcept
The storage node.
A primitive non-const node iterator.
void next()
Move forward through list.
void operator=(const iterator &iter)
Copy assignment.
bool good() const noexcept
Pointing at a valid storage node.
link * get_node() const noexcept
The storage node.
Base for singly-linked lists.
const_iterator cbegin() const
Iterator to first item in list with const access.
link * first()
Return first entry.
const const_iterator & cend() const
End of list for iterators.
const iterator & end()
End of list for iterators.
bool empty() const noexcept
True if the list is empty.
link * last()
Return last entry.
IteratorType iterator_first() const
Return iterator to first item or end-iterator if list is empty.
static const IteratorType & iterator_end()
Factory method to return an iterator end.
label size() const noexcept
The number of elements in list.
IteratorType iterator_last() const
Return iterator to last item or end-iterator if list is empty.
void swap(SLListBase &lst)
Swap the contents of list.
iterator begin()
Iterator to first item in list with non-const access.
void clear()
Clear the list.
A const_iterator for iterating across on values.
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
friend bool operator!=(const refineCell &rc1, const refineCell &rc2)
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
transferModelList & transfer()
Transfer.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const NullObject * nullObjectPtr
Pointer to the unique nullObject.
errorManip< error > abort(error &err)
The structure for a singly-linked storage node.