User Manual, Developers Guide and API Documentation

wns::container::FastList< T >::iterator Class Reference

An STL-sytle iterator for the FastList. More...

#include <container/FastList.hpp>

Collaboration diagram for wns::container::FastList< T >::iterator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 iterator (FastListNode< T > *f)
 Constructor that takes a FastListNode.
 iterator ()
 Default Constructor.
bool operator!= (const iterator &i) const
 Inequality.
T & operator* ()
 Dereference operator (acces the data behind the iterator).
iterator operator++ (int)
 Postfix increment operator.
iteratoroperator++ ()
 Prefix increment operator.
iterator operator-- (int)
 Postfix decrement operator.
iteratoroperator-- ()
 Prefix decrement operator.
T & operator-> ()
 Pointer operator (acces the data behind the iterator).
bool operator== (const iterator &i) const
 Equality.

Private Attributes

FastListNode< T > * fln
 The node this iterator points to.

Friends

class FastList
 FastList needs to access the fln.


Detailed Description

template<typename T>
class wns::container::FastList< T >::iterator

Author:
Marc Schinnenburg <marc@schinnenburg.com>

Definition at line 65 of file FastList.hpp.


Constructor & Destructor Documentation

template<typename T>
wns::container::FastList< T >::iterator::iterator (  )  [inline]

The iterator is invalid after construction

Definition at line 76 of file FastList.hpp.

template<typename T>
wns::container::FastList< T >::iterator::iterator ( FastListNode< T > *  f  )  [inline, explicit]

The iterator is valid after construction

Definition at line 85 of file FastList.hpp.


Member Function Documentation

template<typename T>
bool wns::container::FastList< T >::iterator::operator!= ( const iterator i  )  const [inline]

Definition at line 100 of file FastList.hpp.

template<typename T>
T& wns::container::FastList< T >::iterator::operator* (  )  [inline]

Definition at line 109 of file FastList.hpp.

template<typename T>
iterator wns::container::FastList< T >::iterator::operator++ ( int   )  [inline]

Definition at line 136 of file FastList.hpp.

template<typename T>
iterator& wns::container::FastList< T >::iterator::operator++ (  )  [inline]

Definition at line 126 of file FastList.hpp.

template<typename T>
iterator wns::container::FastList< T >::iterator::operator-- ( int   )  [inline]

Definition at line 156 of file FastList.hpp.

template<typename T>
iterator& wns::container::FastList< T >::iterator::operator-- (  )  [inline]

Definition at line 147 of file FastList.hpp.

template<typename T>
T& wns::container::FastList< T >::iterator::operator-> (  )  [inline]

Definition at line 118 of file FastList.hpp.

template<typename T>
bool wns::container::FastList< T >::iterator::operator== ( const iterator i  )  const [inline]

Definition at line 92 of file FastList.hpp.


Friends And Related Function Documentation

template<typename T>
friend class FastList [friend]

Definition at line 69 of file FastList.hpp.


Member Data Documentation

template<typename T>
FastListNode<T>* wns::container::FastList< T >::iterator::fln [private]

Definition at line 167 of file FastList.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