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