Om
1.0.0
A universal framework for multimedia simulation
|
The class for a linked list node. More...
#include <omLinkedList.h>
Public Member Functions | |
Node (const T &newData, Node *newPrevious, Node *newNext) | |
Create a new Node. More... | |
Public Attributes | |
T | data |
The data contained by the list node. More... | |
Node * | previous |
The previous node for the list node. More... | |
Node * | next |
The next node for the list node. More... | |
The class for a linked list node.
This class is used to implement a doubly-linked list, such that each node has a reference to it's previous node and it's next node. This makes adding and removing elements more efficient.
|
inline |
Create a new Node.
The user must specifiy the node data, the previous node, and the next node.
newData | - the data for the node |
newPrevious | - the previous node in the list |
newNext | - the next node in the list |
T om::util::LinkedList< T >::Node::data |
The data contained by the list node.
Node* om::util::LinkedList< T >::Node::previous |
The previous node for the list node.
Node* om::util::LinkedList< T >::Node::next |
The next node for the list node.