Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::util::LinkedList< T >::Node Class Reference

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

data
 The data contained by the list node. More...
 
Nodeprevious
 The previous node for the list node. More...
 
Nodenext
 The next node for the list node. More...
 

Detailed Description

template<typename T>
class om::util::LinkedList< T >::Node

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.

Constructor & Destructor Documentation

template<typename T >
om::util::LinkedList< T >::Node::Node ( const T &  newData,
Node newPrevious,
Node newNext 
)
inline

Create a new Node.

The user must specifiy the node data, the previous node, and the next node.

Parameters
newData- the data for the node
newPrevious- the previous node in the list
newNext- the next node in the list

Member Data Documentation

template<typename T >
T om::util::LinkedList< T >::Node::data

The data contained by the list node.

template<typename T >
Node* om::util::LinkedList< T >::Node::previous

The previous node for the list node.

template<typename T >
Node* om::util::LinkedList< T >::Node::next

The next node for the list node.


The documentation for this class was generated from the following file: