Struct LinkedList.LinkedListNode
The List Node.
struct LinkedListNode
;
This structure is the usually first element of a structure, but could be located everywhere in the structure. It can be used
Fields
Name | Type | Description |
---|---|---|
ln_Pred
|
LinkedList | Pointer to previous ListNode (Predecessor) |
ln_Succ
|
LinkedList | Pointer to next ListNode (Successor) |
Methods
Name | Description |
---|---|
addNode
(list, prevNode)
|
addNode -- insert a node into a list |
getNextNode
()
|
Some aliasing, use this with isTailNode |
getPrevNode
()
|
Some aliasing, use this with isHeadNode |
isNodeHead
()
|
The head node has no predecessor and is part of ListHead |
isNodeReal
()
|
Is a node a real node, neithe rhead nor tail |
isNodeTail
()
|
The tail node has no successor and is part of ListHead |
isNodeUnlinked
()
|
Is a not unlinked? |
linkNode
(prevNode, nextNode)
|
linkNode -- link a node into a list |
remNode
()
|
remNode -- remove a node from a list |
unlinkNode
()
|
unlinkNode -- unlink a linked node from list |