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 110 of file qlist.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 119 of file qlist.h.

◆ element_type

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

Definition at line 124 of file qlist.h.

◆ iterator_category

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

Definition at line 125 of file qlist.h.

◆ pointer

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

Definition at line 126 of file qlist.h.

◆ reference

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

Definition at line 127 of file qlist.h.

◆ value_type

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

Definition at line 120 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 143 of file qlist.h.

◆ operator!=() [2/3]

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

Definition at line 137 of file qlist.h.

◆ operator!=() [3/3]

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

Definition at line 149 of file qlist.h.

◆ operator*()

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

Definition at line 133 of file qlist.h.

◆ operator+()

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

Definition at line 174 of file qlist.h.

◆ operator++() [1/2]

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

Definition at line 150 of file qlist.h.

◆ operator++() [2/2]

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

Definition at line 151 of file qlist.h.

◆ operator+=()

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

Definition at line 172 of file qlist.h.

◆ operator-() [1/2]

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

Definition at line 154 of file qlist.h.

◆ operator-() [2/2]

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

Definition at line 175 of file qlist.h.

◆ operator--() [1/2]

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

Definition at line 152 of file qlist.h.

◆ operator--() [2/2]

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

Definition at line 153 of file qlist.h.

◆ operator-=()

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

Definition at line 173 of file qlist.h.

◆ operator->()

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

Definition at line 134 of file qlist.h.

◆ operator<() [1/2]

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

Definition at line 144 of file qlist.h.

◆ operator<() [2/2]

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

Definition at line 138 of file qlist.h.

◆ operator<=() [1/2]

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

Definition at line 145 of file qlist.h.

◆ operator<=() [2/2]

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

Definition at line 139 of file qlist.h.

◆ operator==() [1/3]

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

Definition at line 142 of file qlist.h.

◆ operator==() [2/3]

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

Definition at line 136 of file qlist.h.

◆ operator==() [3/3]

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

Definition at line 148 of file qlist.h.

◆ operator>() [1/2]

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

Definition at line 146 of file qlist.h.

◆ operator>() [2/2]

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

Definition at line 140 of file qlist.h.

◆ operator>=() [1/2]

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

Definition at line 147 of file qlist.h.

◆ operator>=() [2/2]

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

Definition at line 141 of file qlist.h.

◆ operator[]()

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

Definition at line 135 of file qlist.h.

Friends And Related Symbol Documentation

◆ const_iterator

template<typename T >
friend class const_iterator
friend

Definition at line 112 of file qlist.h.

◆ operator+

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

Definition at line 176 of file qlist.h.

◆ QList< T >

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

Definition at line 731 of file qlist.h.


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