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

NameTypeDescription
ln_Pred LinkedList.LinkedListNode*Pointer to previous ListNode (Predecessor)
ln_Succ LinkedList.LinkedListNode*Pointer to next ListNode (Successor)

Methods

NameDescription
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