Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

LINKLIST< T >::Iterator Class Reference

#include <linklist.H>

Collaboration diagram for LINKLIST< T >::Iterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Iterator ()
 Iterator (Node *n, bool rev=0)
 Iterator (const Iterator &iter)
bool is_reverse () const
bool operator== (const Iterator &iter) const
bool operator!= (const Iterator &iter) const
Iteratoroperator++ ()
Iterator operator++ (int)
Iteratoroperator-- ()
Iterator operator-- (int)
const T & operator * () const
T & operator * ()
Iteratornext ()
Iteratorprev ()

Protected Attributes

Node_node
bool _reverse

Friends

class LINKLIST< T >

Detailed Description

template<class T>
class LINKLIST< T >::Iterator

Definition at line 39 of file linklist.H.


Constructor & Destructor Documentation

template<class T>
LINKLIST< T >::Iterator::Iterator  )  [inline]
 

Definition at line 48 of file linklist.H.

template<class T>
LINKLIST< T >::Iterator::Iterator Node n,
bool  rev = 0
[inline]
 

Definition at line 49 of file linklist.H.

template<class T>
LINKLIST< T >::Iterator::Iterator const Iterator iter  )  [inline]
 

Definition at line 51 of file linklist.H.


Member Function Documentation

template<class T>
bool LINKLIST< T >::Iterator::is_reverse  )  const [inline]
 

Definition at line 53 of file linklist.H.

References LINKLIST< T >::Iterator::_reverse.

template<class T>
Iterator& LINKLIST< T >::Iterator::next  )  [inline]
 

Definition at line 94 of file linklist.H.

Referenced by LINKLIST< T >::erase().

template<class T>
T& LINKLIST< T >::Iterator::operator *  )  [inline]
 

Definition at line 91 of file linklist.H.

References LINKLIST< T >::Iterator::_node, and LINKLIST< T >::Node::data.

template<class T>
const T& LINKLIST< T >::Iterator::operator *  )  const [inline]
 

Definition at line 89 of file linklist.H.

References LINKLIST< T >::Iterator::_node, and LINKLIST< T >::Node::data.

template<class T>
bool LINKLIST< T >::Iterator::operator!= const Iterator iter  )  const [inline]
 

Definition at line 59 of file linklist.H.

References LINKLIST< T >::Iterator::_node.

template<class T>
Iterator LINKLIST< T >::Iterator::operator++ int   )  [inline]
 

Definition at line 69 of file linklist.H.

template<class T>
Iterator& LINKLIST< T >::Iterator::operator++  )  [inline]
 

Definition at line 63 of file linklist.H.

References LINKLIST< T >::Iterator::_node, LINKLIST< T >::Iterator::_reverse, LINKLIST< T >::Node::next, and LINKLIST< T >::Node::prev.

template<class T>
Iterator LINKLIST< T >::Iterator::operator-- int   )  [inline]
 

Definition at line 82 of file linklist.H.

template<class T>
Iterator& LINKLIST< T >::Iterator::operator--  )  [inline]
 

Definition at line 76 of file linklist.H.

References LINKLIST< T >::Iterator::_node, LINKLIST< T >::Iterator::_reverse, LINKLIST< T >::Node::next, and LINKLIST< T >::Node::prev.

template<class T>
bool LINKLIST< T >::Iterator::operator== const Iterator iter  )  const [inline]
 

Definition at line 55 of file linklist.H.

References LINKLIST< T >::Iterator::_node.

template<class T>
Iterator& LINKLIST< T >::Iterator::prev  )  [inline]
 

Definition at line 99 of file linklist.H.

Referenced by LINKLIST< T >::erase().


Friends And Related Function Documentation

template<class T>
friend class LINKLIST< T > [friend]
 

Definition at line 41 of file linklist.H.


Member Data Documentation

template<class T>
Node* LINKLIST< T >::Iterator::_node [protected]
 

Definition at line 42 of file linklist.H.

Referenced by LINKLIST< T >::erase(), LINKLIST< T >::find(), LINKLIST< T >::insert_after(), LINKLIST< T >::insert_before(), LINKLIST< T >::Iterator::operator *(), LINKLIST< T >::Iterator::operator!=(), LINKLIST< T >::Iterator::operator++(), LINKLIST< T >::Iterator::operator--(), LINKLIST< T >::Iterator::operator==(), and LINKLIST< T >::swap().

template<class T>
bool LINKLIST< T >::Iterator::_reverse [protected]
 

Definition at line 43 of file linklist.H.

Referenced by LINKLIST< T >::Iterator::is_reverse(), LINKLIST< T >::Iterator::operator++(), and LINKLIST< T >::Iterator::operator--().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:46:28 2006 for jot by  doxygen 1.4.4