A double linked list object.
More...
#include <linked.h>
Detailed Description
A double linked list object.
This is used as a base class for objects that will be organized through ordered double linked lists which allow convenient insertion and deletion of list members anywhere in the list.
- Author:
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 757 of file linked.h.
Constructor & Destructor Documentation
Construct and add our object to an existing double linked list at end.
- Parameters:
-
index | of linked list we are listed in. |
Delete linked list object.
If it is a member of a list of objects, then the list is reformed around us.
Member Function Documentation
Attach our object to a linked list.
The default strategy is to add to tail.
- Parameters:
-
index | of linked list we are joining. |
Reimplemented from ucommon::OrderedObject.
Attach our object to the start of a linked list though an ordered index.
If we are already attached to a list we are delisted first.
- Parameters:
-
index | of linked list we are joining. |
Reimplemented from ucommon::OrderedObject.
Attach our object to the end of a linked list though an ordered index.
If we are already attached to a list we are delisted first.
- Parameters:
-
index | of linked list we are joining. |
Reimplemented from ucommon::OrderedObject.
Get previous node in the list for reverse iteration.
- Returns:
- previous node in list.
Definition at line 827 of file linked.h.
Insert object, method in derived object.
- Parameters:
-
Insert object in front of our object.
- Parameters:
-
Insert object behind our object.
- Parameters:
-
Test if we are at the head of a list.
- Returns:
- true if we are the first node in a list.
Definition at line 813 of file linked.h.
Test if we are at the end of a list.
- Returns:
- true if we are the last node in a list.
Definition at line 820 of file linked.h.
void ucommon::LinkedList::operator*= |
( |
LinkedList * |
object | ) |
[inline] |
Insert object in list with our object.
- Parameters:
-
Definition at line 873 of file linked.h.
void ucommon::LinkedList::operator+= |
( |
LinkedList * |
object | ) |
[inline] |
Insert object behind our object.
- Parameters:
-
Definition at line 859 of file linked.h.
void ucommon::LinkedList::operator-= |
( |
LinkedList * |
object | ) |
[inline] |
Insert object in front of our object.
- Parameters:
-
Definition at line 866 of file linked.h.
The documentation for this class was generated from the following file: