nNode Class Reference
[Data Types]
#include <nnode.h>
Inheritance diagram for nNode:

Detailed Description
Implement a node in a doubly linked list.(C) 2002 RadonLabs GmbH
Definition at line 16 of file nnode.h.
Public Member Functions | |
| nNode () | |
| the default constructor | |
| nNode (void *ptr) | |
| constructor providing user data pointer | |
| ~nNode () | |
| the destructor | |
| nNode * | GetSucc () const |
| get the next node in the list | |
| nNode * | GetPred () const |
| get the previous node in the list | |
| void | InsertBefore (nNode *succ) |
| insert this node before 'succ' node into list | |
| void | InsertAfter (nNode *pred) |
| insert this node after 'pred' node into list | |
| void | Remove () |
| remove node from list | |
| void | SetPtr (void *p) |
| set user data pointer | |
| void * | GetPtr () const |
| get user data pointer | |
| bool | IsLinked () const |
| check if node is currently linked into a list | |
Friends | |
| class | nList |
Constructor & Destructor Documentation
|
|
the default constructor
|
|
|
constructor providing user data pointer
|
|
|
the destructor The destructor will throw an assertion if the node is still linked into a list! |
Member Function Documentation
|
|
get the next node in the list Get the node after this node in the list, return 0 if there is no next node.
Reimplemented in nRoot, nSignalBinding, nHashNode, nObjectNode< TYPE >, and nStrNode. |
|
|
get the previous node in the list Get the node before this node in the list, return 0 if there is no previous node.
Reimplemented in nRoot, nSignalBinding, nHashNode, nObjectNode< TYPE >, and nStrNode. |
|
|
insert this node before 'succ' node into list
|
|
|
insert this node after 'pred' node into list
|
|
|
remove node from list
|
|
|
set user data pointer
|
|
|
get user data pointer
|
|
|
check if node is currently linked into a list
|
Friends And Related Function Documentation
|
|
|
The documentation for this class was generated from the following file: