Public Types | Public Member Functions | Public Attributes | List of all members
QValueListIterator< T > Class Template Reference

#include <qvaluelist.h>

Public Types

typedef QValueListNode< T > * NodePtr
 

Public Member Functions

 QValueListIterator ()
 
 QValueListIterator (NodePtr p)
 
 QValueListIterator (const QValueListIterator< T > &it)
 
bool operator== (const QValueListIterator< T > &it) const
 
bool operator!= (const QValueListIterator< T > &it) const
 
const T & operator* () const
 
T & operator* ()
 
QValueListIterator< T > & operator++ ()
 
QValueListIterator< T > operator++ (int)
 
QValueListIterator< T > & operator-- ()
 
QValueListIterator< T > operator-- (int)
 

Public Attributes

NodePtr node
 

Detailed Description

template<class T>
class QValueListIterator< T >

Definition at line 67 of file qvaluelist.h.

Member Typedef Documentation

template<class T>
typedef QValueListNode<T>* QValueListIterator< T >::NodePtr

Typedefs

Definition at line 73 of file qvaluelist.h.

Constructor & Destructor Documentation

template<class T>
QValueListIterator< T >::QValueListIterator ( )
inline

Functions

Definition at line 83 of file qvaluelist.h.

83 : node( 0 ) {}
template<class T>
QValueListIterator< T >::QValueListIterator ( NodePtr  p)
inline

Definition at line 84 of file qvaluelist.h.

84 : node( p ) {}
template<class T>
QValueListIterator< T >::QValueListIterator ( const QValueListIterator< T > &  it)
inline

Definition at line 85 of file qvaluelist.h.

85 : node( it.node ) {}

Member Function Documentation

template<class T>
bool QValueListIterator< T >::operator!= ( const QValueListIterator< T > &  it) const
inline

Definition at line 88 of file qvaluelist.h.

88 { return node != it.node; }
template<class T>
const T& QValueListIterator< T >::operator* ( ) const
inline

Definition at line 89 of file qvaluelist.h.

89 { return node->data; }
template<class T>
T& QValueListIterator< T >::operator* ( )
inline

Definition at line 90 of file qvaluelist.h.

90 { return node->data; }
template<class T>
QValueListIterator<T>& QValueListIterator< T >::operator++ ( )
inline

Definition at line 95 of file qvaluelist.h.

95  {
96  node = node->next;
97  return *this;
98  }
QValueListNode< T > * next
Definition: qvaluelist.h:61
template<class T>
QValueListIterator<T> QValueListIterator< T >::operator++ ( int  )
inline

Definition at line 100 of file qvaluelist.h.

100  {
101  QValueListIterator<T> tmp = *this;
102  node = node->next;
103  return tmp;
104  }
string tmp
Definition: languages.py:63
QValueListNode< T > * next
Definition: qvaluelist.h:61
template<class T>
QValueListIterator<T>& QValueListIterator< T >::operator-- ( )
inline

Definition at line 106 of file qvaluelist.h.

106  {
107  node = node->prev;
108  return *this;
109  }
QValueListNode< T > * prev
Definition: qvaluelist.h:62
template<class T>
QValueListIterator<T> QValueListIterator< T >::operator-- ( int  )
inline

Definition at line 111 of file qvaluelist.h.

111  {
112  QValueListIterator<T> tmp = *this;
113  node = node->prev;
114  return tmp;
115  }
string tmp
Definition: languages.py:63
QValueListNode< T > * prev
Definition: qvaluelist.h:62
template<class T>
bool QValueListIterator< T >::operator== ( const QValueListIterator< T > &  it) const
inline

Definition at line 87 of file qvaluelist.h.

87 { return node == it.node; }

Member Data Documentation

template<class T>
NodePtr QValueListIterator< T >::node

Variables

Definition at line 78 of file qvaluelist.h.


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