Qt 4.8
Public Types | Public Functions | Private Types | Properties | Friends | List of all members
QSet< T >::iterator Class Reference

#include <qset.h>

Public Types

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

Public Functions

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

Private Types

typedef QHash< T, QHashDummyValueHash
 

Properties

Hash::iterator i
 

Friends

class const_iterator
 

Detailed Description

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

Definition at line 97 of file qset.h.

Typedefs

◆ difference_type

template<class T>
typedef qptrdiff QSet< T >::iterator::difference_type

Definition at line 105 of file qset.h.

◆ Hash

template<class T>
typedef QHash<T, QHashDummyValue> QSet< T >::iterator::Hash
private

Definition at line 99 of file qset.h.

◆ iterator_category

template<class T>
typedef std::bidirectional_iterator_tag QSet< T >::iterator::iterator_category

Definition at line 104 of file qset.h.

◆ pointer

template<class T>
typedef const T* QSet< T >::iterator::pointer

Definition at line 107 of file qset.h.

◆ reference

template<class T>
typedef const T& QSet< T >::iterator::reference

Definition at line 108 of file qset.h.

◆ value_type

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

Definition at line 106 of file qset.h.

Constructors and Destructors

◆ iterator() [1/3]

template<class T>
QSet< T >::iterator::iterator ( )
inline

Definition at line 110 of file qset.h.

110 {}

◆ iterator() [2/3]

template<class T>
QSet< T >::iterator::iterator ( typename Hash::iterator  o)
inline

Definition at line 111 of file qset.h.

111 : i(o) {}
Hash::iterator i
Definition: qset.h:100

◆ iterator() [3/3]

template<class T>
QSet< T >::iterator::iterator ( const iterator o)
inline

Definition at line 112 of file qset.h.

112 : i(o.i) {}
Hash::iterator i
Definition: qset.h:100

Functions

◆ operator!=() [1/2]

template<class T>
bool QSet< T >::iterator::operator!= ( const iterator o) const
inline

Definition at line 117 of file qset.h.

117 { return i != o.i; }
Hash::iterator i
Definition: qset.h:100

◆ operator!=() [2/2]

template<class T>
bool QSet< T >::iterator::operator!= ( const const_iterator o) const
inline

Definition at line 120 of file qset.h.

121  { return i != o.i; }
Hash::iterator i
Definition: qset.h:100

◆ operator*()

template<class T>
const T& QSet< T >::iterator::operator* ( ) const
inline

Definition at line 114 of file qset.h.

114 { return i.key(); }
Hash::iterator i
Definition: qset.h:100

◆ operator+()

template<class T>
iterator QSet< T >::iterator::operator+ ( int  j) const
inline

Definition at line 126 of file qset.h.

126 { return i + j; }
Hash::iterator i
Definition: qset.h:100

◆ operator++() [1/2]

template<class T>
iterator& QSet< T >::iterator::operator++ ( )
inline

Definition at line 122 of file qset.h.

122 { ++i; return *this; }
Hash::iterator i
Definition: qset.h:100

◆ operator++() [2/2]

template<class T>
iterator QSet< T >::iterator::operator++ ( int  )
inline

Definition at line 123 of file qset.h.

123 { iterator r = *this; ++i; return r; }
Hash::iterator i
Definition: qset.h:100

◆ operator+=()

template<class T>
iterator& QSet< T >::iterator::operator+= ( int  j)
inline

Definition at line 128 of file qset.h.

128 { i += j; return *this; }
Hash::iterator i
Definition: qset.h:100

◆ operator-()

template<class T>
iterator QSet< T >::iterator::operator- ( int  j) const
inline

Definition at line 127 of file qset.h.

127 { return i - j; }
Hash::iterator i
Definition: qset.h:100

◆ operator--() [1/2]

template<class T>
iterator& QSet< T >::iterator::operator-- ( )
inline

Definition at line 124 of file qset.h.

124 { --i; return *this; }
Hash::iterator i
Definition: qset.h:100

◆ operator--() [2/2]

template<class T>
iterator QSet< T >::iterator::operator-- ( int  )
inline

Definition at line 125 of file qset.h.

125 { iterator r = *this; --i; return r; }
Hash::iterator i
Definition: qset.h:100

◆ operator-=()

template<class T>
iterator& QSet< T >::iterator::operator-= ( int  j)
inline

Definition at line 129 of file qset.h.

129 { i -= j; return *this; }
Hash::iterator i
Definition: qset.h:100

◆ operator->()

template<class T>
const T* QSet< T >::iterator::operator-> ( ) const
inline

Definition at line 115 of file qset.h.

115 { return &i.key(); }
Hash::iterator i
Definition: qset.h:100

◆ operator=()

template<class T>
iterator& QSet< T >::iterator::operator= ( const iterator o)
inline

Definition at line 113 of file qset.h.

113 { i = o.i; return *this; }
Hash::iterator i
Definition: qset.h:100

◆ operator==() [1/2]

template<class T>
bool QSet< T >::iterator::operator== ( const iterator o) const
inline

Definition at line 116 of file qset.h.

116 { return i == o.i; }
Hash::iterator i
Definition: qset.h:100

◆ operator==() [2/2]

template<class T>
bool QSet< T >::iterator::operator== ( const const_iterator o) const
inline

Definition at line 118 of file qset.h.

119  { return i == o.i; }
Hash::iterator i
Definition: qset.h:100

Friends and Related Functions

◆ const_iterator

template<class T>
friend class const_iterator
friend

Definition at line 101 of file qset.h.

Properties

◆ i

template<class T>
Hash::iterator QSet< T >::iterator::i
private

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