Intrusive Containers
|
#include <TreeIn.h>
Protected Member Functions | |
TreeInNode () | |
~TreeInNode () | |
void | addTo (R &root) |
void | addTo (R *root) |
virtual void | remove () |
R * | root () const |
Return pointer to list we are on. More... | |
N * | parent () const |
N * | left () const |
N * | right () const |
N * | next () const |
N * | prev () const |
void | check () const |
Friends | |
class | TreeInRoot< R, N, K, n > |
Intrusive Binary Tree, Node.
L | The class that will be the owner of the List. Must derive from TreeInRoot<R, N, K, n> |
N | The class that will be the nodes of the List. Must derive from TreeInNode<R, N, K, 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.
|
protected |
Destructor.
Remove us from we are on, if any.
|
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 tree
root | Tree to add to. |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Return node next in sort sequence.
|
inlineprotected |
|
inlineprotected |
Return previous node in sort sequence.
|
inlineprotectedvirtual |
Remove node from whatever tree it is on, if it is on a tree.
|
inlineprotected |
|
inlineprotected |
Return pointer to list we are on.
|
friend |