Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QMap< Key, T >::const_iterator Class Reference

#include <qmap.h>

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

Public Types

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

Public Member Functions

 const_iterator ()=default
 
Q_IMPLICIT const_iterator (const iterator &o)
 
const Keykey () const
 
const T & value () const
 
const T & operator* () const
 
const T * operator-> () const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 

Friends

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

Detailed Description

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

Definition at line 497 of file qmap.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 505 of file qmap.h.

◆ iterator_category

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

Definition at line 504 of file qmap.h.

◆ pointer

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

Definition at line 507 of file qmap.h.

◆ reference

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

Definition at line 508 of file qmap.h.

◆ value_type

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

Definition at line 506 of file qmap.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

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

◆ const_iterator() [2/2]

template<class Key , class T >
Q_IMPLICIT QMap< Key, T >::const_iterator::const_iterator ( const iterator & o)
inline

Definition at line 511 of file qmap.h.

Member Function Documentation

◆ key()

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

Definition at line 513 of file qmap.h.

References i.

Referenced by QMap< Key, T >::firstKey().

+ Here is the caller graph for this function:

◆ operator*()

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

Definition at line 515 of file qmap.h.

References i.

◆ operator++() [1/2]

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

Definition at line 520 of file qmap.h.

References i.

◆ operator++() [2/2]

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

Definition at line 525 of file qmap.h.

References i.

◆ operator--() [1/2]

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

Definition at line 531 of file qmap.h.

References i.

◆ operator--() [2/2]

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

Definition at line 536 of file qmap.h.

References i.

◆ operator->()

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

Definition at line 516 of file qmap.h.

References i.

◆ value()

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

Definition at line 514 of file qmap.h.

References i.

Referenced by QtPrivate::ResultStoreBase::clear(), and QtPrivate::ResultIteratorBase::pointer().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

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

Definition at line 518 of file qmap.h.

◆ operator==

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

Definition at line 517 of file qmap.h.

◆ QMap< Key, T >

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

Definition at line 465 of file qmap.h.


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