Simpatico
v1.10
|
#include <Node.h>
Public Member Functions | |
Node () | |
Default constructor. More... | |
Node (const Node< Data > &other) | |
Copy constructor. More... | |
Node< Data > * | next () const |
Get the next pointer. More... | |
Node< Data > * | prev () const |
Get the previous pointer. More... | |
const Data & | data () const |
Get a const reference to the associated Data. More... | |
Data & | data () |
Get a reference to the associated Data object. More... | |
List< Data > & | list () const |
Get a reference to the List. More... | |
void | setNext (Node< Data > *next) |
Set pointer to the next Node. More... | |
void | setPrev (Node< Data > *prev) |
Set pointer to the previous Node. More... | |
void | setList (List< Data > &list) |
Set the list. More... | |
void | setList (List< Data > *list) |
Set the list. More... | |
void | attachNext (Node< Data > &other) |
Set pointers connecting the other node after this node. More... | |
void | attachPrev (Node< Data > &other) |
Set pointers connecting the other node before this node. More... | |
void | clear () |
Nullify previous and next pointers, and nullify the list pointer. More... | |
|
inline |
|
inline |
|
inline |
Get the next pointer.
Definition at line 52 of file Node.h.
Referenced by Util::List< Data >::insert(), Util::List< Data >::insertNext(), Util::List< Data >::isValid(), Util::List< Data >::popFront(), Util::List< Data >::remove(), and Util::Node< Data >::setNext().
|
inline |
Get the previous pointer.
Definition at line 60 of file Node.h.
Referenced by Util::List< Data >::insertPrev(), Util::List< Data >::isValid(), Util::List< Data >::popBack(), Util::List< Data >::remove(), and Util::Node< Data >::setPrev().
|
inline |
|
inline |
|
inline |
Get a reference to the List.
Definition at line 84 of file Node.h.
Referenced by Util::List< Data >::insert(), Util::List< Data >::isValid(), Util::List< Data >::remove(), and Util::Node< Data >::setList().
|
inline |
Set pointer to the next Node.
next | pointer to next Node |
Definition at line 92 of file Node.h.
References Util::Node< Data >::next().
Referenced by Util::List< Data >::insert(), Util::List< Data >::insertNext(), and Util::List< Data >::pushBack().
|
inline |
Set pointer to the previous Node.
prev | pointer to previous Node |
Definition at line 100 of file Node.h.
References Util::Node< Data >::prev().
Referenced by Util::List< Data >::insert(), Util::List< Data >::insertPrev(), and Util::List< Data >::pushFront().
|
inline |
Set the list.
list | associated List object |
Definition at line 108 of file Node.h.
References Util::Node< Data >::list().
Referenced by Util::List< Data >::insert(), Util::List< Data >::pushBack(), and Util::List< Data >::pushFront().
|
inline |
Set the list.
list | pointer to an associated List object |
Definition at line 116 of file Node.h.
References Util::Node< Data >::list().
|
inline |
Set pointers connecting the other node after this node.
This method sets the next pointer of this node to other and the previous node of other to this. It also also sets the list of the other node to this list.
It does not reset the next pointer of the other node, and so does not finish splicing the other node into the middle of this list. The next pointer of the other node is left unchanged.
other | a Node to connect to this one. |
Definition at line 132 of file Node.h.
Referenced by Util::List< Data >::insert(), and Util::List< Data >::insertNext().
|
inline |
Set pointers connecting the other node before this node.
This method sets the previous pointer of this node to other and the next node of other to this. It also also sets the list of the other node to this list.
It does not reset the previous pointer of the other node, and so does not finish splicing the other node into the middle of this list. The previous pointer of the other node is left unchanged.
other | a Node to connect to this one. |
Definition at line 152 of file Node.h.
Referenced by Util::List< Data >::insertPrev().
|
inline |
Nullify previous and next pointers, and nullify the list pointer.
This method disconnects the Node from any List, but does not modify the datum_.
Definition at line 165 of file Node.h.
Referenced by Util::List< Data >::popBack(), Util::List< Data >::popFront(), and Util::List< Data >::remove().