QtBase  v6.3.1
Public Types | Public Member Functions | Friends | List of all members
QList< T >::iterator Class Reference

#include <qlist.h>

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
 
Toperator* () const
 
Toperator-> () const
 
Toperator[] (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 137 of file qlist.h.

Member Typedef Documentation

◆ difference_type

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

Definition at line 146 of file qlist.h.

◆ iterator_category

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

Definition at line 153 of file qlist.h.

◆ pointer

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

Definition at line 154 of file qlist.h.

◆ reference

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

Definition at line 155 of file qlist.h.

◆ value_type

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

Definition at line 147 of file qlist.h.

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
constexpr QList< T >::iterator::iterator ( )
inlineconstexprdefault
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 171 of file qlist.h.

◆ operator!=() [2/3]

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

Definition at line 165 of file qlist.h.

◆ operator!=() [3/3]

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

Definition at line 177 of file qlist.h.

◆ operator*()

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

Definition at line 161 of file qlist.h.

◆ operator+()

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

Definition at line 202 of file qlist.h.

Here is the call graph for this function:

◆ operator++() [1/2]

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

Definition at line 178 of file qlist.h.

◆ operator++() [2/2]

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

Definition at line 179 of file qlist.h.

◆ operator+=()

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

Definition at line 200 of file qlist.h.

◆ operator-() [1/2]

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

Definition at line 182 of file qlist.h.

◆ operator-() [2/2]

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

Definition at line 203 of file qlist.h.

Here is the call graph for this function:

◆ operator--() [1/2]

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

Definition at line 180 of file qlist.h.

◆ operator--() [2/2]

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

Definition at line 181 of file qlist.h.

◆ operator-=()

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

Definition at line 201 of file qlist.h.

◆ operator->()

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

Definition at line 162 of file qlist.h.

◆ operator<() [1/2]

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

Definition at line 172 of file qlist.h.

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

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

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

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

◆ operator==() [2/3]

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

Definition at line 164 of file qlist.h.

◆ operator==() [3/3]

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

Definition at line 176 of file qlist.h.

◆ operator>() [1/2]

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

Definition at line 174 of file qlist.h.

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

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

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

Here is the call graph for this function:

◆ operator[]()

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

Definition at line 163 of file qlist.h.

Friends And Related Function Documentation

◆ const_iterator

template<typename T >
friend class const_iterator
friend

Definition at line 139 of file qlist.h.

◆ operator+

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

Definition at line 204 of file qlist.h.

◆ QList< T >

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

Definition at line 733 of file qlist.h.


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