NList::iterator Class Reference

NList::iterator iterates through a NList object. More...

List of all members.

Public Member Functions

 iterator (NListNode< T > *node)
 Constructs a NList::iterator.
 iterator (const iterator &other)
 Copy constructs a NList::iterator.
 ~iterator (void)
 Destroys a NList::iterator object.
iteratoroperator= (const iterator &rhs)
 Copies another NList::iterator.
bool operator!= (const iterator &rhs) const
 Tests whether whether the current object is different of another.
bool operator== (const iterator &rhs) const
 Tests whether whether the current object equals another.
iterator operator++ (int)
 Moves forward on the list.
const iteratoroperator++ (void) const
 Moves forward on the list.
const iterator operator++ (int) const
 Moves forward on the list.
T & operator * (void)
 Gets the data of the iterator.
const T & operator * (void) const
 Gets the data of the iterator.
T * operator-> (void)
 Gets the address of the iterator's data.
const T * operator-> (void) const
 Gets the address of the iterator's data.


Detailed Description

template<typename T>
class NList< T >::iterator

NList::iterator iterates through a NList object.

Definition at line 552 of file nlist.hpp.


Constructor & Destructor Documentation

iterator ( NListNode< T > *  node  )  [inline]

Constructs a NList::iterator.

Parameters:
node The node attached to the iterator

Definition at line 558 of file nlist.hpp.

iterator ( const iterator other  )  [inline]

Copy constructs a NList::iterator.

Parameters:
other Another NList::iterator

Definition at line 566 of file nlist.hpp.

References m_node, and NList::m_node.


Member Function Documentation

iterator& operator= ( const iterator rhs  )  [inline]

Copies another NList::iterator.

Parameters:
rhs Another NList::iterator
Returns:
A reference to the current object

Definition at line 580 of file nlist.hpp.

References m_node, and NList::m_node.

bool operator!= ( const iterator rhs  )  const [inline]

Tests whether whether the current object is different of another.

Parameters:
rhs The object to be tested against
Returns:
true in case of success or false otherwise

Definition at line 592 of file nlist.hpp.

References m_node, and NList::m_node.

bool operator== ( const iterator rhs  )  const [inline]

Tests whether whether the current object equals another.

Parameters:
rhs The object to be tested against
Returns:
true in case of success or false otherwise

Definition at line 614 of file nlist.hpp.

References m_node, and NList::m_node.

iterator operator++ ( int   )  [inline]

Moves forward on the list.

Returns:
A reference to the current object

Definition at line 634 of file nlist.hpp.

const iterator& operator++ ( void   )  const [inline]

Moves forward on the list.

Returns:
A reference to the current object

Definition at line 645 of file nlist.hpp.

References NList::m_node.

const iterator operator++ ( int   )  const [inline]

Moves forward on the list.

Returns:
A reference to the current object

Definition at line 657 of file nlist.hpp.

T& operator * ( void   )  [inline]

Gets the data of the iterator.

Returns:
The data of the node

Definition at line 668 of file nlist.hpp.

References NList::m_node.

const T& operator * ( void   )  const [inline]

Gets the data of the iterator.

Returns:
A const reference to the data of the node

Definition at line 676 of file nlist.hpp.

References NList::m_node.

T* operator-> ( void   )  [inline]

Gets the address of the iterator's data.

Returns:
The address of the iterator's data

Definition at line 684 of file nlist.hpp.

References NList::m_node.

const T* operator-> ( void   )  const [inline]

Gets the address of the iterator's data.

Returns:
A const pointer to the address of the iterator's data

Definition at line 692 of file nlist.hpp.

References NList::m_node.


The documentation for this class was generated from the following file:
Generated on Wed Mar 5 23:10:36 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4