#include <LinkedList.h>
Public Member Functions | |
LinkedListNode (item_type item, LinkedListNode< item_type > *left=NULL) | |
Constructor. | |
~LinkedListNode () | |
Destructor. | |
item_type | item () |
Returns the item of the node. | |
const item_type | item () const |
Returns the item of the node. | |
void | item (item_type the_item) |
Sets the item of the node. | |
void | left (LinkedListNode< item_type > *node_ptr) |
Sets the left child of the node. | |
void | right (LinkedListNode< item_type > *node_ptr) |
Sets the right child of the node. | |
LinkedListNode< item_type > & | operator= (LinkedListNode< item_type > &node) |
Assignment operator. | |
Protected Member Functions | |
LinkedListNode< item_type > * | iter_next () |
++ operator. | |
LinkedListNode< item_type > * | iter_previous () |
-- operator. | |
const LinkedListNode< item_type > * | iter_next () const |
++ operator. | |
const LinkedListNode< item_type > * | iter_previous () const |
-- operator. | |
Protected Attributes | |
LinkedListNode< item_type > * | left_ |
The left child of the node. | |
LinkedListNode< item_type > * | right_ |
The right child of the node. | |
item_type | item_ |
The item of the node. | |
Friends | |
class | Iterator< LinkedListNode< item_type > > |
Allow iterators to manipulate protected members. | |
class | Const_Iterator< LinkedListNode< item_type > > |
Allow iterators to manipulate protected members. | |
class | LinkedList< item_type > |
Allow LinkedList to manipulate protected members. |
Definition at line 74 of file LinkedList.h.
DREAM::LinkedListNode< item_type >::LinkedListNode | ( | item_type | item, | |
LinkedListNode< item_type > * | left = NULL | |||
) |
DREAM::LinkedListNode< item_type >::~LinkedListNode | ( | ) |
LinkedListNode< item_type > * DREAM::LinkedListNode< item_type >::iter_next | ( | ) | [inline, protected] |
++ operator.
This operator does not actually change the node's value and should only be used from within Iterators.
Definition at line 118 of file LinkedList.cpp.
Referenced by DREAM::LinkedList< item_type >::push_back().
LinkedListNode< item_type > * DREAM::LinkedListNode< item_type >::iter_previous | ( | ) | [inline, protected] |
-- operator.
This operator does not actually change the node's value and should only be used from within Iterators.
Definition at line 124 of file LinkedList.cpp.
const LinkedListNode< item_type > * DREAM::LinkedListNode< item_type >::iter_next | ( | ) | const [inline, protected] |
++ operator.
This operator does not actually change the node's value and should only be used from within Iterators.
Definition at line 130 of file LinkedList.cpp.
const LinkedListNode< item_type > * DREAM::LinkedListNode< item_type >::iter_previous | ( | ) | const [inline, protected] |
-- operator.
This operator does not actually change the node's value and should only be used from within Iterators.
Definition at line 136 of file LinkedList.cpp.
item_type DREAM::LinkedListNode< item_type >::item | ( | ) | [inline] |
const item_type DREAM::LinkedListNode< item_type >::item | ( | ) | const [inline] |
void DREAM::LinkedListNode< item_type >::item | ( | item_type | the_item | ) | [inline] |
void DREAM::LinkedListNode< item_type >::left | ( | LinkedListNode< item_type > * | node_ptr | ) | [inline] |
void DREAM::LinkedListNode< item_type >::right | ( | LinkedListNode< item_type > * | node_ptr | ) | [inline] |
LinkedListNode< item_type > & DREAM::LinkedListNode< item_type >::operator= | ( | LinkedListNode< item_type > & | node | ) |
friend class Iterator< LinkedListNode< item_type > > [friend] |
friend class Const_Iterator< LinkedListNode< item_type > > [friend] |
friend class LinkedList< item_type > [friend] |
LinkedListNode<item_type>* DREAM::LinkedListNode< item_type >::left_ [protected] |
The left child of the node.
Definition at line 99 of file LinkedList.h.
Referenced by DREAM::LinkedList< item_type >::erase().
LinkedListNode<item_type>* DREAM::LinkedListNode< item_type >::right_ [protected] |
item_type DREAM::LinkedListNode< item_type >::item_ [protected] |