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_)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An STL-conforming const_iterator.
An STL-conforming const_reverse_iterator.
An STL-conforming iterator.
void insert(link *)
Add at head of list.
link * remove(link *)
Remove and return element.
link * replace(link *oldLink, link *newLink)
Replace oldLink with newLink and return element.
bool swapDown(link *)
Swap this element with the one below unless it is at the bottom.
link * removeHead()
Remove and return head.
void append(link *)
Add at tail of list.
bool swapUp(link *)
Swap this element with the one above unless it is at the top.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManip< error > abort(error &err)
link * prev_
Pointer to next entry in list.
void deregister()
Deregister the link after removal.