An iterator that visits child documents in a directory.
More...
#include <juce_AndroidDocument.h>
|
| std::shared_ptr< Pimpl > | pimpl |
| |
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:
{
if (child.getInfo().getName() == name)
return child;
}
std::vector<AndroidDocument> findAllChildrenRecursive (
const AndroidDocument& parent)
{
std::vector<AndroidDocument> children;
std::back_inserter (children));
return children;
}
An iterator that visits child documents in a directory.
Definition juce_AndroidDocument.h:449
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.
AndroidDocumentIterator()=default
Creates an end/sentinel iterator.
Provides access to a document on Android devices.
Definition juce_AndroidDocument.h:254
The JUCE String class!
Definition juce_String.h:67
@tags{Core}
◆ difference_type
◆ iterator_category
◆ pointer
◆ AndroidDocumentIterator() [1/2]
| juce::AndroidDocumentIterator::AndroidDocumentIterator |
( |
| ) |
|
|
default |
Creates an end/sentinel iterator.
◆ AndroidDocumentIterator() [2/2]
| juce::AndroidDocumentIterator::AndroidDocumentIterator |
( |
std::unique_ptr< Pimpl > |
| ) |
|
|
explicitprivate |
◆ begin()
Allows this iterator to be used directly in a range-for.
◆ end()
Allows this iterator to be used directly in a range-for.
◆ makeNonRecursive()
Create an iterator that will visit each item in this directory.
◆ makeRecursive()
Create an iterator that will visit each item in this directory, and all nested directories.
◆ operator!=()
◆ operator*()
Returns the document to which this iterator points.
◆ operator++()
Moves this iterator to the next position.
◆ operator==()
◆ pimpl
| std::shared_ptr<Pimpl> juce::AndroidDocumentIterator::pimpl |
|
private |
The documentation for this class was generated from the following file: