Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QMap< Key, T >::iterator Class Reference

#include <qmap.h>

+ Collaboration diagram for QMap< Key, T >::iterator:

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using difference_type = qptrdiff
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 iterator ()=default
 
const Keykey () const
 
T & value () const
 
T & operator* () const
 
T * operator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 

Friends

class QMap< Key, T >
 
class const_iterator
 
bool operator== (const iterator &lhs, const iterator &rhs)
 
bool operator!= (const iterator &lhs, const iterator &rhs)
 

Detailed Description

template<class Key, class T>
class QMap< Key, T >::iterator

Definition at line 425 of file qmap.h.

Member Typedef Documentation

◆ difference_type

template<class Key , class T >
using QMap< Key, T >::iterator::difference_type = qptrdiff

Definition at line 434 of file qmap.h.

◆ iterator_category

template<class Key , class T >
using QMap< Key, T >::iterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 433 of file qmap.h.

◆ pointer

template<class Key , class T >
using QMap< Key, T >::iterator::pointer = T *

Definition at line 436 of file qmap.h.

◆ reference

template<class Key , class T >
using QMap< Key, T >::iterator::reference = T &

Definition at line 437 of file qmap.h.

◆ value_type

template<class Key , class T >
using QMap< Key, T >::iterator::value_type = T

Definition at line 435 of file qmap.h.

Constructor & Destructor Documentation

◆ iterator()

template<class Key , class T >
QMap< Key, T >::iterator::iterator ( )
default

Member Function Documentation

◆ key()

template<class Key , class T >
const Key & QMap< Key, T >::iterator::key ( ) const
inline

Definition at line 441 of file qmap.h.

References i.

Referenced by QWizardPrivate::_q_handleFieldObjectDestroyed().

+ Here is the caller graph for this function:

◆ operator*()

template<class Key , class T >
T & QMap< Key, T >::iterator::operator* ( ) const
inline

Definition at line 443 of file qmap.h.

References i.

◆ operator++() [1/2]

template<class Key , class T >
iterator & QMap< Key, T >::iterator::operator++ ( )
inline

Definition at line 448 of file qmap.h.

References i.

◆ operator++() [2/2]

template<class Key , class T >
iterator QMap< Key, T >::iterator::operator++ ( int  )
inline

Definition at line 453 of file qmap.h.

References i.

◆ operator--() [1/2]

template<class Key , class T >
iterator & QMap< Key, T >::iterator::operator-- ( )
inline

Definition at line 459 of file qmap.h.

References i.

◆ operator--() [2/2]

template<class Key , class T >
iterator QMap< Key, T >::iterator::operator-- ( int  )
inline

Definition at line 464 of file qmap.h.

References i.

◆ operator->()

template<class Key , class T >
T * QMap< Key, T >::iterator::operator-> ( ) const
inline

Definition at line 444 of file qmap.h.

References i.

◆ value()

template<class Key , class T >
T & QMap< Key, T >::iterator::value ( ) const
inline

Definition at line 442 of file qmap.h.

References i.

Referenced by QWizardPrivate::_q_handleFieldObjectDestroyed(), QApplication::notify(), and QCompletionEngine::saveInCache().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ const_iterator

template<class Key , class T >
friend class const_iterator
friend

Definition at line 428 of file qmap.h.

◆ operator!=

template<class Key , class T >
bool operator!= ( const iterator lhs,
const iterator rhs 
)
friend

Definition at line 446 of file qmap.h.

◆ operator==

template<class Key , class T >
bool operator== ( const iterator lhs,
const iterator rhs 
)
friend

Definition at line 445 of file qmap.h.

◆ QMap< Key, T >

template<class Key , class T >
friend class QMap< Key, T >
friend

Definition at line 773 of file qmap.h.


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