![]() |
MySQL 9.0.0
Source Code Documentation
|
Directory iterator for iterating over directory entries. More...
#include <filesystem.h>
Classes | |
class | State |
Public Types | |
using | value_type = Path |
using | iterator_category = std::input_iterator_tag |
using | difference_type = std::ptrdiff_t |
using | pointer = value_type * |
using | reference = value_type & |
Public Member Functions | |
DirectoryIterator (const Path &path, const std::string &pattern=std::string()) | |
DirectoryIterator () | |
~DirectoryIterator () | |
Destructor. More... | |
DirectoryIterator (DirectoryIterator &&) | |
DirectoryIterator (const DirectoryIterator &) | |
Path | operator* () const |
Standard iterator operators. More... | |
DirectoryIterator & | operator++ () |
Path | operator-> () |
bool | operator!= (const DirectoryIterator &other) const |
bool | operator== (const DirectoryIterator &other) const |
Private Attributes | |
const Path | path_ |
Path to the root of the directory. More... | |
std::string | pattern_ |
Pattern that matches entries iterated over. More... | |
std::shared_ptr< State > | state_ |
Friends | |
class | Directory |
Directory iterator for iterating over directory entries.
A directory iterator is an input iterator.
using mysql_harness::Directory::DirectoryIterator::difference_type = std::ptrdiff_t |
using mysql_harness::Directory::DirectoryIterator::iterator_category = std::input_iterator_tag |
mysql_harness::Directory::DirectoryIterator::DirectoryIterator | ( | const Path & | path, |
const std::string & | pattern = std::string() |
||
) |
mysql_harness::Directory::DirectoryIterator::DirectoryIterator | ( | ) |
|
default |
Destructor.
|
default |
|
default |
bool mysql_harness::Directory::DirectoryIterator::operator!= | ( | const DirectoryIterator & | other | ) | const |
Path mysql_harness::Directory::DirectoryIterator::operator* | ( | ) | const |
Standard iterator operators.
Directory::DirectoryIterator & mysql_harness::Directory::DirectoryIterator::operator++ | ( | ) |
|
inline |
|
inline |
|
friend |
|
private |
Path to the root of the directory.
|
private |
Pattern that matches entries iterated over.
|
private |