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

#include <qdirlisting.h>

Collaboration diagram for QDirListing::const_iterator:

Public Types

using iterator_category = std::input_iterator_tag
using value_type = DirEntry
using difference_type = qint64
using pointer = const value_type *
using reference = const value_type &

Public Member Functions

 const_iterator ()=default
 const_iterator (const_iterator &&) noexcept=default
const_iteratoroperator= (const_iterator &&) noexcept=default
reference operator* () const
 Returns a {const QDirListing::DirEntry &} of the directory entry this iterator points to.
pointer operator-> () const
 Returns a {const QDirListing::DirEntry *} to the directory entry this iterator points to.
const_iteratoroperator++ ()
 Pre-increment operator.
void operator++ (int)

Friends

class QDirListing
bool operator== (const const_iterator &lhs, sentinel) noexcept
bool operator!= (const const_iterator &lhs, sentinel) noexcept
bool operator== (sentinel, const const_iterator &rhs) noexcept
bool operator!= (sentinel, const const_iterator &rhs) noexcept

Detailed Description

Definition at line 110 of file qdirlisting.h.

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using QDirListing::const_iterator::iterator_category = std::input_iterator_tag

Definition at line 117 of file qdirlisting.h.

◆ pointer

Definition at line 120 of file qdirlisting.h.

◆ reference

Definition at line 121 of file qdirlisting.h.

◆ value_type

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

QDirListing::const_iterator::const_iterator ( )
default

◆ const_iterator() [2/2]

QDirListing::const_iterator::const_iterator ( const_iterator && )
defaultnoexcept

Member Function Documentation

◆ operator*()

reference QDirListing::const_iterator::operator* ( ) const
inline

Returns a {const QDirListing::DirEntry &} of the directory entry this iterator points to.

Definition at line 127 of file qdirlisting.h.

Referenced by QDirIteratorPrivate::skipToNextMatch().

Here is the caller graph for this function:

◆ operator++() [1/2]

const_iterator & QDirListing::const_iterator::operator++ ( )
inline

Pre-increment operator.

Advances the iterator and returns a reference to it.

Definition at line 129 of file qdirlisting.h.

Referenced by QDirListing::begin(), operator++(), and QDirIteratorPrivate::skipToNextMatch().

Here is the caller graph for this function:

◆ operator++() [2/2]

void QDirListing::const_iterator::operator++ ( int )
inline

Definition at line 130 of file qdirlisting.h.

References operator++().

Here is the call graph for this function:

◆ operator->()

pointer QDirListing::const_iterator::operator-> ( ) const
inline

Returns a {const QDirListing::DirEntry *} to the directory entry this iterator points to.

Definition at line 128 of file qdirlisting.h.

◆ operator=()

const_iterator & QDirListing::const_iterator::operator= ( const_iterator && )
defaultnoexcept

◆ operator!= [1/2]

bool operator!= ( const const_iterator & lhs,
sentinel  )
friend

Definition at line 135 of file qdirlisting.h.

References operator==.

◆ operator!= [2/2]

bool operator!= ( sentinel ,
const const_iterator & rhs )
friend

Definition at line 139 of file qdirlisting.h.

References operator==.

◆ operator== [1/2]

bool operator== ( const const_iterator & lhs,
sentinel  )
friend

Definition at line 133 of file qdirlisting.h.

Referenced by operator!=, and operator==.

◆ operator== [2/2]

bool operator== ( sentinel ,
const const_iterator & rhs )
friend

Definition at line 137 of file qdirlisting.h.

References operator==.

Referenced by operator!=.

◆ QDirListing

friend class QDirListing
friend

Definition at line 113 of file qdirlisting.h.


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