Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 element_type = value_type
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 119 of file qlist.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 128 of file qlist.h.

◆ element_type

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

Definition at line 133 of file qlist.h.

◆ iterator_category

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

Definition at line 134 of file qlist.h.

◆ pointer

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

Definition at line 135 of file qlist.h.

◆ reference

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

Definition at line 136 of file qlist.h.

◆ value_type

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

Definition at line 129 of file qlist.h.

Constructor & Destructor Documentation

◆ iterator()

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

Member Function Documentation

◆ operator!=() [1/3]

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

Definition at line 156 of file qlist.h.

◆ operator!=() [2/3]

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

Definition at line 150 of file qlist.h.

◆ operator!=() [3/3]

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

Definition at line 163 of file qlist.h.

◆ operator*()

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

Definition at line 142 of file qlist.h.

◆ operator+()

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

Definition at line 188 of file qlist.h.

◆ operator++() [1/2]

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

Definition at line 164 of file qlist.h.

◆ operator++() [2/2]

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

Definition at line 165 of file qlist.h.

◆ operator+=()

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

Definition at line 186 of file qlist.h.

◆ operator-() [1/2]

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

Definition at line 168 of file qlist.h.

◆ operator-() [2/2]

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

Definition at line 189 of file qlist.h.

◆ operator--() [1/2]

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

Definition at line 166 of file qlist.h.

◆ operator--() [2/2]

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

Definition at line 167 of file qlist.h.

◆ operator-=()

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

Definition at line 187 of file qlist.h.

◆ operator->()

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

Definition at line 143 of file qlist.h.

◆ operator<() [1/2]

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

Definition at line 157 of file qlist.h.

◆ operator<() [2/2]

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

Definition at line 151 of file qlist.h.

◆ operator<=() [1/2]

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

Definition at line 158 of file qlist.h.

◆ operator<=() [2/2]

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

Definition at line 152 of file qlist.h.

◆ operator==() [1/3]

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

Definition at line 155 of file qlist.h.

◆ operator==() [2/3]

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

Definition at line 149 of file qlist.h.

◆ operator==() [3/3]

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

Definition at line 162 of file qlist.h.

◆ operator>() [1/2]

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

Definition at line 159 of file qlist.h.

◆ operator>() [2/2]

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

Definition at line 153 of file qlist.h.

◆ operator>=() [1/2]

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

Definition at line 160 of file qlist.h.

◆ operator>=() [2/2]

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

Definition at line 154 of file qlist.h.

◆ operator[]()

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

Definition at line 144 of file qlist.h.

◆ const_iterator

template<typename T>
friend class const_iterator
friend

Definition at line 121 of file qlist.h.

◆ operator+

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

Definition at line 190 of file qlist.h.

◆ QList< T >

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

Definition at line 786 of file qlist.h.


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