Structures_LinkedList_Double
[ class tree: Structures_LinkedList_Double ] [ index: Structures_LinkedList_Double ] [ all elements ]

Class: Structures_LinkedList_DoubleNode

Source Location: /Structures_LinkedList-0.2.2/Structures/LinkedList/Double.php

Class Overview

Structures_LinkedList_SingleNode
   |
   --Structures_LinkedList_DoubleNode

The Structures_LinkedList_DoubleNode class represents a node in a Structures_LinkedList_Double linked list structure.


Author(s):

Variables

Methods


Child classes:

LinkNodeTester
The Structures_LinkedList_DoubleNode class represents a node in a Structures_LinkedList_Double linked list structure.

Inherited Variables

Inherited Methods

Class: Structures_LinkedList_SingleNode

Structures_LinkedList_SingleNode::__construct()
Structures_LinkedList_SingleNode constructor
Structures_LinkedList_SingleNode::next()
Return the next node in the linked list
Structures_LinkedList_SingleNode::previous()
Return the previous node in the linked list
Structures_LinkedList_SingleNode::setNext()
Sets the pointer for the next node in the linked list to the specified node
Structures_LinkedList_SingleNode::setPrevious()
Sets the pointer for the next node in the linked list to the specified node
Structures_LinkedList_SingleNode::__destruct()
Removes node from the list, adjusting the related nodes accordingly.

Class Details

[line 295]
The Structures_LinkedList_DoubleNode class represents a node in a Structures_LinkedList_Double linked list structure.


[ Top ]


Class Variables

$previous =

[line 302]

Previous node in the linked list
  • Access: protected



[ Top ]



Method Detail

__construct (Constructor)   [line 309]

Structures_LinkedList_DoubleNode __construct( )

Structures_LinkedList_DoubleNode constructor
  • Access: public

Overridden in child classes as:

LinkNodeTester::__construct()

Overrides Structures_LinkedList_SingleNode::__construct() (Structures_LinkedList_SingleNode constructor)
[ Top ]

__destruct (Destructor)   [line 323]

void __destruct( )

Removes node from the list, adjusting the related nodes accordingly.

This is a problem if the node is the root node for the list. At this point, however, we do not have access to the list itself. Hmm.

  • Access: public

Overrides Structures_LinkedList_SingleNode::__destruct() (Removes node from the list, adjusting the related nodes accordingly.)
[ Top ]

previous   [line 344]

Structures_LinkedList_DoubleNode previous( )

Return the previous node in the linked list
  • Return: previous node in the linked list
  • Access: public

Overrides Structures_LinkedList_SingleNode::previous() (Return the previous node in the linked list)
[ Top ]

setPrevious   [line 365]

Structures_LinkedList_DoubleNode setPrevious( [Structures_LinkedList_DoubleNode $node = null])

Sets the pointer for the previous node in the linked list to the specified node
  • Return: new previous node in the linked list
  • Access: public

Overrides Structures_LinkedList_SingleNode::setPrevious() (Sets the pointer for the next node in the linked list to the specified node)

Parameters:

Structures_LinkedList_DoubleNode   $node   —  new previous node in the linked list

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:38:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.