void operator=(const iterator &)
bool swapDown(link *)
Swap this element with the one below unless it is at the bottom.
bool operator==(const iterator &) const
iterator(DLListBase &)
Construct for a given SLListBase with NULL element and link.
DLListBase & curList_
Reference to the list this is an iterator for.
link * last()
Return last entry.
DLListBase()
Null construct.
void operator=(const const_reverse_iterator &)
const const_reverse_iterator & crend() const
const DLListBase & curList_
Reference to the list this is an reverse_iterator for.
const const_reverse_iterator & rend() const
void deregister()
Deregister the link after removal.
An STL-conforming iterator.
bool operator!=(const iterator &) const
bool empty() const
Return true if the list is empty.
const_reverse_iterator(const DLListBase &, const link *)
Construct for a given DLListBase and link.
const DLListBase & curList_
Reference to the list this is an iterator for.
An STL-conforming const_reverse_iterator.
const link * curElmt_
Current element.
void operator=(const const_iterator &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const_reverse_iterator endConstRevIter_
const_reverse_iterator returned by end()
bool operator!=(const const_iterator &) const
link curLink_
Copy of the link.
link * curElmt_
Current element.
const_iterator(const DLListBase &, const link *)
Construct for a given DLListBase and link.
link * first_
first_ points to first element and last_ points to last element.
void append(link *)
Add at tail of list.
const const_iterator & cend() const
link * prev_
Pointer to next entry in list.
const_reverse_iterator rbegin() const
bool registered() const
Check if the link is registered with the DLListBase.
link * removeHead()
Remove and return head.
link * remove(link *)
Remove and return element.
static const_iterator endConstIter_
const_iterator returned by end()
void transfer(DLListBase &)
Transfer the contents of the argument into this List.
const_iterator cbegin() const
const_reverse_iterator & operator++()
void operator=(const DLListBase &)
Disallow default bitwise assignment.
const link * curElmt_
Current element.
bool operator!=(const const_reverse_iterator &) const
link * first()
Return first entry.
label size() const
Return number of elements in list.
bool operator==(const const_iterator &) const
link * replace(link *oldLink, link *newLink)
Replace oldLink with newLink and return element.
const_iterator & operator++()
bool operator==(const const_reverse_iterator &) const
bool swapUp(link *)
Swap this element with the one above unless it is at the top.
void insert(link *)
Add at head of list.
const_reverse_iterator crbegin() const
void clear()
Clear the list.
label nElmts_
Number of elements in in list.
An STL-conforming const_iterator.
static iterator endIter_
Iterator returned by end()