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

#include <qlist.h>

+ Collaboration diagram for QList< T >::iterator:

Public Types

using difference_type = qsizetype
 
using value_type = T
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

constexpr iterator ()=default
 
T & operator* () const
 
T * operator-> () const
 
T & operator[] (qsizetype j) const
 
constexpr bool operator== (iterator o) const
 
constexpr bool operator!= (iterator o) const
 
constexpr bool operator< (iterator other) const
 
constexpr bool operator<= (iterator other) const
 
constexpr bool operator> (iterator other) const
 
constexpr bool operator>= (iterator other) const
 
constexpr bool operator== (const_iterator o) const
 
constexpr bool operator!= (const_iterator o) const
 
constexpr bool operator< (const_iterator other) const
 
constexpr bool operator<= (const_iterator other) const
 
constexpr bool operator> (const_iterator other) const
 
constexpr bool operator>= (const_iterator other) const
 
constexpr bool operator== (pointer p) const
 
constexpr bool operator!= (pointer p) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
qsizetype operator- (iterator j) const
 
iteratoroperator+= (qsizetype j)
 
iteratoroperator-= (qsizetype j)
 
iterator operator+ (qsizetype j) const
 
iterator operator- (qsizetype j) const
 

Friends

class QList< T >
 
class const_iterator
 
iterator operator+ (qsizetype j, iterator k)
 

Detailed Description

template<typename T>
class QList< T >::iterator

Definition at line 109 of file qlist.h.

Member Typedef Documentation

◆ difference_type

template<typename T >
using QList< T >::iterator::difference_type = qsizetype

Definition at line 118 of file qlist.h.

◆ iterator_category

template<typename T >
using QList< T >::iterator::iterator_category = std::random_access_iterator_tag

Definition at line 124 of file qlist.h.

◆ pointer

template<typename T >
using QList< T >::iterator::pointer = T *

Definition at line 125 of file qlist.h.

◆ reference

template<typename T >
using QList< T >::iterator::reference = T &

Definition at line 126 of file qlist.h.

◆ value_type

template<typename T >
using QList< T >::iterator::value_type = T

Definition at line 119 of file qlist.h.

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
constexpr QList< T >::iterator::iterator ( )
inlineconstexprdefault

Referenced by QList< T >::iterator::operator+(), and QList< T >::iterator::operator-().

+ Here is the caller graph for this function:

Member Function Documentation

◆ operator!=() [1/3]

template<typename T >
constexpr bool QList< T >::iterator::operator!= ( const_iterator o) const
inlineconstexpr

Definition at line 142 of file qlist.h.

References i, and o.

◆ operator!=() [2/3]

template<typename T >
constexpr bool QList< T >::iterator::operator!= ( iterator o) const
inlineconstexpr

Definition at line 136 of file qlist.h.

References i, and o.

◆ operator!=() [3/3]

template<typename T >
constexpr bool QList< T >::iterator::operator!= ( pointer p) const
inlineconstexpr

Definition at line 148 of file qlist.h.

References i.

◆ operator*()

template<typename T >
T & QList< T >::iterator::operator* ( ) const
inline

Definition at line 132 of file qlist.h.

References i.

◆ operator+()

template<typename T >
iterator QList< T >::iterator::operator+ ( qsizetype j) const
inline

Definition at line 173 of file qlist.h.

References QList< T >::iterator::iterator(), i, and j.

+ Here is the call graph for this function:

◆ operator++() [1/2]

template<typename T >
iterator & QList< T >::iterator::operator++ ( )
inline

Definition at line 149 of file qlist.h.

References i.

◆ operator++() [2/2]

template<typename T >
iterator QList< T >::iterator::operator++ ( int )
inline

Definition at line 150 of file qlist.h.

References copy().

+ Here is the call graph for this function:

◆ operator+=()

template<typename T >
iterator & QList< T >::iterator::operator+= ( qsizetype j)
inline

Definition at line 171 of file qlist.h.

References i, and j.

◆ operator-() [1/2]

template<typename T >
qsizetype QList< T >::iterator::operator- ( iterator j) const
inline

Definition at line 153 of file qlist.h.

References i, and j.

◆ operator-() [2/2]

template<typename T >
iterator QList< T >::iterator::operator- ( qsizetype j) const
inline

Definition at line 174 of file qlist.h.

References QList< T >::iterator::iterator(), i, and j.

+ Here is the call graph for this function:

◆ operator--() [1/2]

template<typename T >
iterator & QList< T >::iterator::operator-- ( )
inline

Definition at line 151 of file qlist.h.

References i.

◆ operator--() [2/2]

template<typename T >
iterator QList< T >::iterator::operator-- ( int )
inline

Definition at line 152 of file qlist.h.

References copy().

+ Here is the call graph for this function:

◆ operator-=()

template<typename T >
iterator & QList< T >::iterator::operator-= ( qsizetype j)
inline

Definition at line 172 of file qlist.h.

References i, and j.

◆ operator->()

template<typename T >
T * QList< T >::iterator::operator-> ( ) const
inline

Definition at line 133 of file qlist.h.

References i.

◆ operator<() [1/2]

template<typename T >
constexpr bool QList< T >::iterator::operator< ( const_iterator other) const
inlineconstexpr

Definition at line 143 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator<() [2/2]

template<typename T >
constexpr bool QList< T >::iterator::operator< ( iterator other) const
inlineconstexpr

Definition at line 137 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator<=() [1/2]

template<typename T >
constexpr bool QList< T >::iterator::operator<= ( const_iterator other) const
inlineconstexpr

Definition at line 144 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator<=() [2/2]

template<typename T >
constexpr bool QList< T >::iterator::operator<= ( iterator other) const
inlineconstexpr

Definition at line 138 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator==() [1/3]

template<typename T >
constexpr bool QList< T >::iterator::operator== ( const_iterator o) const
inlineconstexpr

Definition at line 141 of file qlist.h.

References i, and o.

◆ operator==() [2/3]

template<typename T >
constexpr bool QList< T >::iterator::operator== ( iterator o) const
inlineconstexpr

Definition at line 135 of file qlist.h.

References i, and o.

◆ operator==() [3/3]

template<typename T >
constexpr bool QList< T >::iterator::operator== ( pointer p) const
inlineconstexpr

Definition at line 147 of file qlist.h.

References i.

◆ operator>() [1/2]

template<typename T >
constexpr bool QList< T >::iterator::operator> ( const_iterator other) const
inlineconstexpr

Definition at line 145 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator>() [2/2]

template<typename T >
constexpr bool QList< T >::iterator::operator> ( iterator other) const
inlineconstexpr

Definition at line 139 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator>=() [1/2]

template<typename T >
constexpr bool QList< T >::iterator::operator>= ( const_iterator other) const
inlineconstexpr

Definition at line 146 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator>=() [2/2]

template<typename T >
constexpr bool QList< T >::iterator::operator>= ( iterator other) const
inlineconstexpr

Definition at line 140 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator[]()

template<typename T >
T & QList< T >::iterator::operator[] ( qsizetype j) const
inline

Definition at line 134 of file qlist.h.

References i, and j.

Friends And Related Symbol Documentation

◆ const_iterator

template<typename T >
friend class const_iterator
friend

Definition at line 111 of file qlist.h.

◆ operator+

template<typename T >
iterator operator+ ( qsizetype j,
iterator k )
friend

Definition at line 175 of file qlist.h.

◆ QList< T >

template<typename T >
friend class QList< T >
friend

Definition at line 729 of file qlist.h.


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