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
QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator Class Reference

#include <qflatmap_p.h>

+ Collaboration diagram for QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator:

Public Types

using difference_type = ptrdiff_t
 
using value_type = std::pair<const Key, const T>
 
using reference = std::pair<const Key &, const T &>
 
using pointer = mock_pointer<reference>
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

 const_iterator ()=default
 
 const_iterator (const containers *ac, size_type ai)
 
 const_iterator (iterator o)
 
reference operator* () const
 
pointer operator-> () const
 
bool operator== (const const_iterator &o) const
 
bool operator!= (const const_iterator &o) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator+= (size_type n)
 
const_iteratoroperator-= (size_type n)
 
reference operator[] (size_type n) const
 
bool operator< (const const_iterator &other) const
 
bool operator> (const const_iterator &other) const
 
bool operator<= (const const_iterator &other) const
 
bool operator>= (const const_iterator &other) const
 
const Keykey () const
 
const T & value () const
 

Friends

const_iterator operator+ (size_type n, const const_iterator a)
 
const_iterator operator+ (const const_iterator a, size_type n)
 
const_iterator operator- (const const_iterator a, size_type n)
 
difference_type operator- (const const_iterator b, const const_iterator a)
 

Detailed Description

template<class Key, class T, class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
class QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator

Definition at line 263 of file qflatmap_p.h.

Member Typedef Documentation

◆ difference_type

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
using QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::difference_type = ptrdiff_t

Definition at line 266 of file qflatmap_p.h.

◆ iterator_category

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
using QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::iterator_category = std::random_access_iterator_tag

Definition at line 270 of file qflatmap_p.h.

◆ pointer

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
using QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::pointer = mock_pointer<reference>

Definition at line 269 of file qflatmap_p.h.

◆ reference

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
using QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::reference = std::pair<const Key &, const T &>

Definition at line 268 of file qflatmap_p.h.

◆ value_type

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
using QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::value_type = std::pair<const Key, const T>

Definition at line 267 of file qflatmap_p.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::const_iterator ( )
default

◆ const_iterator() [2/3]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::const_iterator ( const containers * ac,
size_type ai )
inline

Definition at line 274 of file qflatmap_p.h.

◆ const_iterator() [3/3]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::const_iterator ( iterator o)
inline

Definition at line 279 of file qflatmap_p.h.

Member Function Documentation

◆ key()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const Key & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::key ( ) const
inline

Definition at line 391 of file qflatmap_p.h.

◆ operator!=()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
bool QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator!= ( const const_iterator & o) const
inline

Definition at line 299 of file qflatmap_p.h.

References o, and QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator==().

+ Here is the call graph for this function:

◆ operator*()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
reference QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator* ( ) const
inline

Definition at line 284 of file qflatmap_p.h.

Referenced by QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator->().

+ Here is the caller graph for this function:

◆ operator++() [1/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator++ ( )
inline

Definition at line 304 of file qflatmap_p.h.

◆ operator++() [2/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator++ ( int )
inline

Definition at line 310 of file qflatmap_p.h.

◆ operator+=()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator+= ( size_type n)
inline

Definition at line 331 of file qflatmap_p.h.

◆ operator--() [1/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator-- ( )
inline

Definition at line 318 of file qflatmap_p.h.

◆ operator--() [2/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator-- ( int )
inline

Definition at line 324 of file qflatmap_p.h.

◆ operator-=()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator-= ( size_type n)
inline

Definition at line 348 of file qflatmap_p.h.

◆ operator->()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
pointer QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator-> ( ) const
inline

Definition at line 289 of file qflatmap_p.h.

References QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator*().

+ Here is the call graph for this function:

◆ operator<()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
bool QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator< ( const const_iterator & other) const
inline

Definition at line 371 of file qflatmap_p.h.

References other().

+ Here is the call graph for this function:

◆ operator<=()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
bool QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator<= ( const const_iterator & other) const
inline

Definition at line 381 of file qflatmap_p.h.

References other().

+ Here is the call graph for this function:

◆ operator==()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
bool QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator== ( const const_iterator & o) const
inline

Definition at line 294 of file qflatmap_p.h.

References o.

Referenced by QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator!=().

+ Here is the caller graph for this function:

◆ operator>()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
bool QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator> ( const const_iterator & other) const
inline

Definition at line 376 of file qflatmap_p.h.

References other().

+ Here is the call graph for this function:

◆ operator>=()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
bool QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator>= ( const const_iterator & other) const
inline

Definition at line 386 of file qflatmap_p.h.

References other().

+ Here is the call graph for this function:

◆ operator[]()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
reference QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::operator[] ( size_type n) const
inline

Definition at line 365 of file qflatmap_p.h.

◆ value()

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const T & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::const_iterator::value ( ) const
inline

Definition at line 392 of file qflatmap_p.h.

Friends And Related Symbol Documentation

◆ operator+ [1/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator operator+ ( const const_iterator a,
size_type n )
friend

Definition at line 343 of file qflatmap_p.h.

◆ operator+ [2/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator operator+ ( size_type n,
const const_iterator a )
friend

Definition at line 337 of file qflatmap_p.h.

◆ operator- [1/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
const_iterator operator- ( const const_iterator a,
size_type n )
friend

Definition at line 354 of file qflatmap_p.h.

◆ operator- [2/2]

template<class Key , class T , class Compare = std::less<Key>, class KeyContainer = QList<Key>, class MappedContainer = QList<T>>
difference_type operator- ( const const_iterator b,
const const_iterator a )
friend

Definition at line 360 of file qflatmap_p.h.


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