Intrusive Containers
|
#include <ListIn.h>
Protected Member Functions | |
ListInNode (R &root) | |
ListInNode (R *root=0) | |
~ListInNode () | |
void | addTo (R &root) |
void | addTo (R *root) |
void | addToFront (R &root) |
void | addToFront (R *root) |
void | addToEnd (R &root) |
void | addToEnd (R *root) |
void | addAfter (N &node) |
void | addAfter (N *node) |
void | remove () |
R * | root () const |
Return pointer to List we are on. More... | |
N * | next () const |
Return pointer to next Node on List. More... | |
Intrusive Singly Linked List, Node.
L | The class that will be the owner of the List. Must derive from ListInRoot<R, N, n> |
N | The class that will be the nodes of the List. Must derive from ListInNode<R, N, n> |
n | A numerical parameter to allow a give List/Node combination to have multiple list-node relationships. Defaults to 0 if not provided. |
|
protected |
Constructor.
root | list we are to be added to. |
|
protected |
Constructor.
root | Pointer to list for node to be added to (if not NULL). |
|
protected |
Destructor.
Remove us from we are on, if any.
|
inlineprotected |
Add ourself to a list after another node.
node | The node to add ourself after. If node is not on a list, do nothing. |
|
inlineprotected |
Add ourself to a list after another node.
node | The node to add ourself after. If Node is NULL, or not on a list, do nothing. |
|
protected |
Add ourself to a list at "natural" postion. Note that this is the front for singly linked lists, and the end for doubly linked lists.
root | List to add to. |
|
protected |
Add ourself to a list at "natural" postion. Note that this is the front for singly linked lists, and the end for doubly linked lists.
root | List to add to. |
|
inlineprotected |
Add ourselfs to the end of a list
root | List to add to. |
|
inlineprotected |
Add ourselfs to the End of a list
root | List to add to. If NULL, just remove from all lists. |
|
inlineprotected |
Add ourselfs to the front of a list
root | List to add to. |
|
inlineprotected |
Add ourselfs to the front of a list
root | List to add to. If NULL, just remove from all lists. |
|
inlineprotected |
Return pointer to next Node on List.
|
inlineprotected |
Remove node from whatever list it is on, if it is on a list.
|
inlineprotected |
Return pointer to List we are on.