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

#include <qlist.h>

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

Public Types

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

Public Member Functions

constexpr const_iterator ()=default
 
constexpr const_iterator (iterator o)
 
const T & operator* () const
 
const T * operator-> () const
 
const T & operator[] (qsizetype j) 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== (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== (pointer p) const
 
constexpr bool operator!= (pointer p) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
qsizetype operator- (const_iterator j) const
 
const_iteratoroperator+= (qsizetype j)
 
const_iteratoroperator-= (qsizetype j)
 
const_iterator operator+ (qsizetype j) const
 
const_iterator operator- (qsizetype j) const
 

Friends

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

Detailed Description

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

Definition at line 179 of file qlist.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 188 of file qlist.h.

◆ iterator_category

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

Definition at line 194 of file qlist.h.

◆ pointer

template<typename T >
using QList< T >::const_iterator::pointer = const T *

Definition at line 195 of file qlist.h.

◆ reference

template<typename T >
using QList< T >::const_iterator::reference = const T &

Definition at line 196 of file qlist.h.

◆ value_type

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

Definition at line 189 of file qlist.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

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

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

+ Here is the caller graph for this function:

◆ const_iterator() [2/2]

template<typename T >
constexpr QList< T >::const_iterator::const_iterator ( iterator o)
inlineconstexpr

Definition at line 202 of file qlist.h.

Member Function Documentation

◆ operator!=() [1/3]

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

Definition at line 207 of file qlist.h.

References i, and o.

◆ operator!=() [2/3]

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

Definition at line 213 of file qlist.h.

References i, and o.

◆ operator!=() [3/3]

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

Definition at line 219 of file qlist.h.

References i.

◆ operator*()

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

Definition at line 203 of file qlist.h.

References i.

◆ operator+()

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

Definition at line 244 of file qlist.h.

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

+ Here is the call graph for this function:

◆ operator++() [1/2]

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

Definition at line 220 of file qlist.h.

References i.

◆ operator++() [2/2]

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

Definition at line 221 of file qlist.h.

References copy().

+ Here is the call graph for this function:

◆ operator+=()

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

Definition at line 242 of file qlist.h.

References i, and j.

◆ operator-() [1/2]

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

Definition at line 224 of file qlist.h.

References i, and j.

◆ operator-() [2/2]

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

Definition at line 245 of file qlist.h.

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

+ Here is the call graph for this function:

◆ operator--() [1/2]

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

Definition at line 222 of file qlist.h.

References i.

◆ operator--() [2/2]

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

Definition at line 223 of file qlist.h.

References copy().

+ Here is the call graph for this function:

◆ operator-=()

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

Definition at line 243 of file qlist.h.

References i, and j.

◆ operator->()

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

Definition at line 204 of file qlist.h.

References i.

◆ operator<() [1/2]

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

Definition at line 208 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 >::const_iterator::operator< ( iterator other) const
inlineconstexpr

Definition at line 214 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 >::const_iterator::operator<= ( const_iterator other) const
inlineconstexpr

Definition at line 209 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 >::const_iterator::operator<= ( iterator other) const
inlineconstexpr

Definition at line 215 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 >::const_iterator::operator== ( const_iterator o) const
inlineconstexpr

Definition at line 206 of file qlist.h.

References i, and o.

◆ operator==() [2/3]

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

Definition at line 212 of file qlist.h.

References i, and o.

◆ operator==() [3/3]

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

Definition at line 218 of file qlist.h.

References i.

◆ operator>() [1/2]

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

Definition at line 210 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 >::const_iterator::operator> ( iterator other) const
inlineconstexpr

Definition at line 216 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 >::const_iterator::operator>= ( const_iterator other) const
inlineconstexpr

Definition at line 211 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 >::const_iterator::operator>= ( iterator other) const
inlineconstexpr

Definition at line 217 of file qlist.h.

References i, and other().

+ Here is the call graph for this function:

◆ operator[]()

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

Definition at line 205 of file qlist.h.

References i, and j.

Friends And Related Symbol Documentation

◆ iterator

template<typename T >
friend class iterator
friend

Definition at line 181 of file qlist.h.

◆ operator+

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

Definition at line 246 of file qlist.h.

◆ QList< T >

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

Definition at line 175 of file qlist.h.


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