DListNode |
A doubly linked list node.
Each node acts as a data container and stores a reference to next and previous node in the list.
DListNode | A doubly linked list node. |
Variables | |
data | The node’s data. |
next | The next node in the list being referenced. |
prev | The previous node in the list being referenced. |
Functions | |
DListNode | Creates a new node storing a given item. |
insertAfter | A helper function used solely by the DLinkedList class for inserting a given node after this node. |
insertBefore | A helper function used solely by the DLinkedList class for inserting this node in front of a given node. |
unlink | A helper function used solely by the DLinkedList class to unlink the node from the list. |
toString | Prints out a string representing the current object. |
The node’s data.
public var data: *
The next node in the list being referenced.
public var next: DListNode
The previous node in the list being referenced.
public var prev: DListNode
Creates a new node storing a given item.
public function DListNode( obj: * )
A helper function used solely by the DLinkedList class for inserting a given node after this node.
public function insertAfter( node: DListNode ):void
A helper function used solely by the DLinkedList class for inserting this node in front of a given node.
public function insertBefore( node: DListNode ):void
A helper function used solely by the DLinkedList class to unlink the node from the list.
public function unlink():void
Prints out a string representing the current object.
public function toString():String