QSet< T >::iterator Class Reference

QSet< T >::iterator Class Reference

#include <qset.h>

Class Description

template<class T>
class QSet< T >::iterator

Definition at line 97 of file qset.h.

Public Types

typedef std::bidirectional_iterator_tag iterator_category
 
typedef qptrdiff difference_type
 
typedef T value_type
 
typedef const T * pointer
 
typedef const T & reference
 

Public Member Functions

 iterator ()
 
 iterator (typename Hash::iterator o)
 
 iterator (const iterator &o)
 
iteratoroperator= (const iterator &o)
 
const T & operator* () const
 
const T * operator-> () const
 
bool operator== (const iterator &o) const
 
bool operator!= (const iterator &o) const
 
bool operator== (const const_iterator &o) const
 
bool operator!= (const const_iterator &o) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iterator operator+ (int j) const
 
iterator operator- (int j) const
 
iteratoroperator+= (int j)
 
iteratoroperator-= (int j)
 

Friends

class const_iterator
 

Member Typedef Documentation

typedef std::bidirectional_iterator_tag iterator_category

Definition at line 104 of file qset.h.

typedef qptrdiff difference_type

Definition at line 105 of file qset.h.

typedef T value_type

Definition at line 106 of file qset.h.

typedef const T* pointer

Definition at line 107 of file qset.h.

typedef const T& reference

Definition at line 108 of file qset.h.

Constructor & Destructor Documentation

iterator ( )
inline

Definition at line 110 of file qset.h.

110 {}
iterator ( typename Hash::iterator  o)
inline

Definition at line 111 of file qset.h.

111 : i(o) {}
iterator ( const iterator o)
inline

Definition at line 112 of file qset.h.

112 : i(o.i) {}

Member Function Documentation

iterator& operator= ( const iterator o)
inline

Definition at line 113 of file qset.h.

113 { i = o.i; return *this; }
const T& operator* ( ) const
inline

Definition at line 114 of file qset.h.

114 { return i.key(); }
const T* operator-> ( void  ) const
inline

Definition at line 115 of file qset.h.

115 { return &i.key(); }
bool operator== ( const iterator o) const
inline

Definition at line 116 of file qset.h.

116 { return i == o.i; }
bool operator!= ( const iterator o) const
inline

Definition at line 117 of file qset.h.

117 { return i != o.i; }
bool operator== ( const const_iterator o) const
inline

Definition at line 118 of file qset.h.

119  { return i == o.i; }
bool operator!= ( const const_iterator o) const
inline

Definition at line 120 of file qset.h.

121  { return i != o.i; }
iterator& operator++ ( )
inline

Definition at line 122 of file qset.h.

122 { ++i; return *this; }
iterator operator++ ( int  )
inline

Definition at line 123 of file qset.h.

123 { iterator r = *this; ++i; return r; }
GLdouble GLdouble GLdouble r
Definition: GLee.h:1189
iterator& operator-- ( )
inline

Definition at line 124 of file qset.h.

124 { --i; return *this; }
iterator operator-- ( int  )
inline

Definition at line 125 of file qset.h.

125 { iterator r = *this; --i; return r; }
GLdouble GLdouble GLdouble r
Definition: GLee.h:1189
iterator operator+ ( int  j) const
inline

Definition at line 126 of file qset.h.

126 { return i + j; }
iterator operator- ( int  j) const
inline

Definition at line 127 of file qset.h.

127 { return i - j; }
iterator& operator+= ( int  j)
inline

Definition at line 128 of file qset.h.

128 { i += j; return *this; }
iterator& operator-= ( int  j)
inline

Definition at line 129 of file qset.h.

129 { i -= j; return *this; }

Friends And Related Function Documentation

friend class const_iterator
friend

Definition at line 101 of file qset.h.


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