Go to the documentation of this file.
35 const_cast<DLListBase&
>(
static_cast<const DLListBase&
>(DLListBase()))
40 static_cast<const DLListBase&
>(DLListBase()),
41 reinterpret_cast<const link*
>(0)
46 static_cast<const DLListBase&
>(DLListBase()),
47 reinterpret_cast<const link*
>(0)
182 <<
"remove from empty list"
205 if (l == first_ && first_ == last_)
210 else if (l == first_)
212 first_ = first_->
next_;
213 first_->
prev_ = first_;
217 last_ = last_->
prev_;
218 last_->
next_ = last_;
242 if (oldLink == first_ && first_ == last_)
247 else if (oldLink == first_)
252 else if (oldLink == last_)
bool swapDown(link *)
Swap this element with the one below unless it is at the bottom.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void deregister()
Deregister the link after removal.
An STL-conforming iterator.
An STL-conforming const_reverse_iterator.
static const_reverse_iterator endConstRevIter_
const_reverse_iterator returned by end()
link * first_
first_ points to first element and last_ points to last element.
void append(link *)
Add at tail of list.
link * prev_
Pointer to next entry in list.
errorManip< error > abort(error &err)
link * removeHead()
Remove and return head.
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()
link * replace(link *oldLink, link *newLink)
Replace oldLink with newLink and return element.
bool swapUp(link *)
Swap this element with the one above unless it is at the top.
void insert(link *)
Add at head of list.
label nElmts_
Number of elements in in list.
An STL-conforming const_iterator.
static iterator endIter_
Iterator returned by end()