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 >::iterator Class Reference

#include <qflatmap_p.h>

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

Public Types

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

Public Member Functions

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

Friends

iterator operator+ (size_type n, const iterator a)
 
iterator operator+ (const iterator a, size_type n)
 
iterator operator- (const iterator a, size_type n)
 
difference_type operator- (const iterator b, 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 >::iterator

Definition at line 131 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 >::iterator::difference_type = ptrdiff_t

Definition at line 134 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 >::iterator::iterator_category = std::random_access_iterator_tag

Definition at line 138 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 >::iterator::pointer = mock_pointer<reference>

Definition at line 137 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 >::iterator::reference = std::pair<const Key &, T &>

Definition at line 136 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 >::iterator::value_type = std::pair<const Key, T>

Definition at line 135 of file qflatmap_p.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

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

◆ iterator() [2/2]

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

Definition at line 142 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 >::iterator::key ( ) const
inline

Definition at line 254 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 >::iterator::operator!= ( const iterator & o) const
inline

Definition at line 162 of file qflatmap_p.h.

References o, and QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::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 >::iterator::operator* ( ) const
inline

Definition at line 147 of file qflatmap_p.h.

Referenced by QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::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>>
iterator & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::iterator::operator++ ( )
inline

Definition at line 167 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>>
iterator QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::iterator::operator++ ( int )
inline

Definition at line 173 of file qflatmap_p.h.

◆ operator+=()

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

Definition at line 194 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>>
iterator & QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::iterator::operator-- ( )
inline

Definition at line 181 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>>
iterator QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::iterator::operator-- ( int )
inline

Definition at line 187 of file qflatmap_p.h.

◆ operator-=()

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

Definition at line 211 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 >::iterator::operator-> ( ) const
inline

Definition at line 152 of file qflatmap_p.h.

References QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::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 >::iterator::operator< ( const iterator & other) const
inline

Definition at line 234 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 >::iterator::operator<= ( const iterator & other) const
inline

Definition at line 244 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 >::iterator::operator== ( const iterator & o) const
inline

Definition at line 157 of file qflatmap_p.h.

References o.

Referenced by QFlatMap< Key, T, Compare, KeyContainer, MappedContainer >::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 >::iterator::operator> ( const iterator & other) const
inline

Definition at line 239 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 >::iterator::operator>= ( const iterator & other) const
inline

Definition at line 249 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 >::iterator::operator[] ( size_type n) const
inline

Definition at line 228 of file qflatmap_p.h.

◆ value()

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

Definition at line 255 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>>
iterator operator+ ( const iterator a,
size_type n )
friend

Definition at line 206 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>>
iterator operator+ ( size_type n,
const iterator a )
friend

Definition at line 200 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>>
iterator operator- ( const iterator a,
size_type n )
friend

Definition at line 217 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 iterator b,
const iterator a )
friend

Definition at line 223 of file qflatmap_p.h.


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