User Manual, Developers Guide and API Documentation

wns::container::FastListNode< T > Class Template Reference

Node of a FastList. More...

#include <container/FastListNode.hpp>

Inheritance diagram for wns::container::FastListNode< T >:

Inheritance graph
[legend]
Collaboration diagram for wns::container::FastListNode< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addToList (FastListNode &begin)
 Add this FastListNode to a FastList.
 FastListNode (const T &x)
 Constructor - Takes an object that should be stored in a FastList.
T & getData ()
 Returns the data that this FastListNode represents in the FastList.
FastListNodegetNext () const
 Returns the next node of the list.
FastListNodegetPrevious () const
 Returns the previous node of the list.
void removeFromList ()
 Remove this FastListNode from its FastList.
 ~FastListNode ()
 Destructor.

Protected Member Functions

 FastListNode ()
 this constructor will only be called for the list sentinel.

Private Attributes

data
 Data that this FastListNode represents in the FastList.
FastListNodenextNode
 The node after this node in the list.
FastListNodepreviousNode
 The node before this node in the list.

Friends

class FastList< T >
 FastList needs to modify FastListNode.


Detailed Description

template<typename T>
class wns::container::FastListNode< T >

Author:
Marc Schinnenburg <marc@schinnenburg.com>

Definition at line 40 of file FastListNode.hpp.


Constructor & Destructor Documentation

template<typename T>
wns::container::FastListNode< T >::FastListNode ( const T &  x  )  [inline, explicit]

Definition at line 51 of file FastListNode.hpp.

template<typename T>
wns::container::FastListNode< T >::~FastListNode (  )  [inline]

Definition at line 60 of file FastListNode.hpp.

template<typename T>
wns::container::FastListNode< T >::FastListNode (  )  [inline, protected]

data(T()) will not be initialized, because we don't know, if T has a default constructor and data will never be used anyway.

Definition at line 117 of file FastListNode.hpp.


Member Function Documentation

template<typename T>
void wns::container::FastListNode< T >::addToList ( FastListNode< T > &  begin  )  [inline]

Parameters:
begin The begin of the FastList where this node should be added.

Definition at line 76 of file FastListNode.hpp.

template<typename T>
T& wns::container::FastListNode< T >::getData (  )  [inline]

Definition at line 105 of file FastListNode.hpp.

template<typename T>
FastListNode* wns::container::FastListNode< T >::getNext (  )  const [inline]

Definition at line 88 of file FastListNode.hpp.

template<typename T>
FastListNode* wns::container::FastListNode< T >::getPrevious (  )  const [inline]

Definition at line 96 of file FastListNode.hpp.

template<typename T>
void wns::container::FastListNode< T >::removeFromList (  )  [inline]

Definition at line 65 of file FastListNode.hpp.


Friends And Related Function Documentation

template<typename T>
friend class FastList< T > [friend]

Definition at line 44 of file FastListNode.hpp.


Member Data Documentation

template<typename T>
T wns::container::FastListNode< T >::data [private]

Definition at line 126 of file FastListNode.hpp.

template<typename T>
FastListNode* wns::container::FastListNode< T >::nextNode [private]

Definition at line 136 of file FastListNode.hpp.

template<typename T>
FastListNode* wns::container::FastListNode< T >::previousNode [private]

Definition at line 131 of file FastListNode.hpp.


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

Generated on Sat May 26 03:32:52 2012 for openWNS by  doxygen 1.5.5