Qt 4.8
Public Types | Public Functions | Private Types | Properties | Friends | List of all members
QSet< T >::const_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

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

Private Types

typedef QHash< T, QHashDummyValueHash
 

Properties

Hash::const_iterator i
 

Friends

class iterator
 

Detailed Description

template<class T>
class QSet< T >::const_iterator

Definition at line 132 of file qset.h.

Typedefs

◆ difference_type

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

Definition at line 140 of file qset.h.

◆ Hash

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

Definition at line 134 of file qset.h.

◆ iterator_category

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

Definition at line 139 of file qset.h.

◆ pointer

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

Definition at line 142 of file qset.h.

◆ reference

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

Definition at line 143 of file qset.h.

◆ value_type

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

Definition at line 141 of file qset.h.

Constructors and Destructors

◆ const_iterator() [1/4]

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

Definition at line 145 of file qset.h.

145 {}

◆ const_iterator() [2/4]

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

Definition at line 146 of file qset.h.

146 : i(o) {}
Hash::const_iterator i
Definition: qset.h:135

◆ const_iterator() [3/4]

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

Definition at line 147 of file qset.h.

147 : i(o.i) {}
Hash::const_iterator i
Definition: qset.h:135

◆ const_iterator() [4/4]

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

Definition at line 148 of file qset.h.

149  : i(o.i) {}
Hash::const_iterator i
Definition: qset.h:135

Functions

◆ operator!=()

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

Definition at line 154 of file qset.h.

154 { return i != o.i; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator*()

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

Definition at line 151 of file qset.h.

151 { return i.key(); }
Hash::const_iterator i
Definition: qset.h:135

◆ operator+()

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

Definition at line 159 of file qset.h.

159 { return i + j; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator++() [1/2]

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

Definition at line 155 of file qset.h.

155 { ++i; return *this; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator++() [2/2]

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

Definition at line 156 of file qset.h.

156 { const_iterator r = *this; ++i; return r; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator+=()

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

Definition at line 161 of file qset.h.

161 { i += j; return *this; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator-()

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

Definition at line 160 of file qset.h.

160 { return i - j; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator--() [1/2]

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

Definition at line 157 of file qset.h.

157 { --i; return *this; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator--() [2/2]

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

Definition at line 158 of file qset.h.

158 { const_iterator r = *this; --i; return r; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator-=()

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

Definition at line 162 of file qset.h.

162 { i -= j; return *this; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator->()

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

Definition at line 152 of file qset.h.

152 { return &i.key(); }
Hash::const_iterator i
Definition: qset.h:135

◆ operator=()

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

Definition at line 150 of file qset.h.

150 { i = o.i; return *this; }
Hash::const_iterator i
Definition: qset.h:135

◆ operator==()

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

Definition at line 153 of file qset.h.

153 { return i == o.i; }
Hash::const_iterator i
Definition: qset.h:135

Friends and Related Functions

◆ iterator

template<class T>
friend class iterator
friend

Definition at line 136 of file qset.h.

Properties

◆ i

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

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