An iterator that visits child documents in a directory.
More...
#include <juce_AndroidDocument.h>
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:452
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:257
The JUCE String class!
Definition juce_String.h:68
int UnityEventModifiers const char * name
Definition juce_UnityPluginInterface.h:204
◆ difference_type
◆ pointer
◆ iterator_category
◆ AndroidDocumentIterator()
AndroidDocumentIterator::AndroidDocumentIterator |
( |
| ) |
|
|
default |
Creates an end/sentinel iterator.
◆ 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!=()
◆ operator*()
Returns the document to which this iterator points.
◆ operator++()
Moves this iterator to the next position.
◆ begin()
Allows this iterator to be used directly in a range-for.
◆ end()
Allows this iterator to be used directly in a range-for.
The documentation for this class was generated from the following file: