An iterator that visits child documents in a directory. More...
Public Types | |
using | difference_type = std::ptrdiff_t |
using | pointer = void |
using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
AndroidDocumentIterator ()=default | |
Creates an end/sentinel iterator. | |
bool | operator== (const AndroidDocumentIterator &other) const noexcept |
bool | operator!= (const AndroidDocumentIterator &other) const noexcept |
AndroidDocument | operator* () const |
Returns the document to which this iterator points. | |
AndroidDocumentIterator & | operator++ () |
Moves this iterator to the next position. | |
AndroidDocumentIterator | begin () const |
Allows this iterator to be used directly in a range-for. | |
AndroidDocumentIterator | end () const |
Allows this iterator to be used directly in a range-for. | |
Static Public Member Functions | |
static AndroidDocumentIterator | makeNonRecursive (const AndroidDocument &) |
Create an iterator that will visit each item in this directory. | |
static AndroidDocumentIterator | makeRecursive (const AndroidDocument &) |
Create an iterator that will visit each item in this directory, and all nested directories. | |
An iterator that visits child documents in a directory.
Instances of this iterator can be created by calling makeRecursive() or makeNonRecursive(). The results of these functions can additionally be used in standard algorithms, and in range-for loops:
using AndroidDocumentIterator::difference_type = std::ptrdiff_t |
using AndroidDocumentIterator::pointer = void |
using AndroidDocumentIterator::iterator_category = std::input_iterator_tag |
|
default |
Creates an end/sentinel iterator.
|
static |
Create an iterator that will visit each item in this directory.
|
static |
Create an iterator that will visit each item in this directory, and all nested directories.
|
noexcept |
Referenced by operator!=().
|
noexcept |
References operator==().
AndroidDocument AndroidDocumentIterator::operator* | ( | ) | const |
Returns the document to which this iterator points.
AndroidDocumentIterator & AndroidDocumentIterator::operator++ | ( | ) |
Moves this iterator to the next position.
AndroidDocumentIterator AndroidDocumentIterator::begin | ( | ) | const |
Allows this iterator to be used directly in a range-for.
AndroidDocumentIterator AndroidDocumentIterator::end | ( | ) | const |
Allows this iterator to be used directly in a range-for.