CppCommon
1.0.4.1
C++ Common Library
|
Filesystem directory iterator. More...
#include <directory_iterator.h>
Public Types | |
typedef std::ptrdiff_t | difference_type |
typedef Path | value_type |
typedef const Path & | reference |
typedef const Path * | pointer |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
DirectoryIterator () | |
DirectoryIterator (DirectoryIterator &it) | |
DirectoryIterator (DirectoryIterator &&it) noexcept | |
~DirectoryIterator () | |
DirectoryIterator & | operator= (DirectoryIterator &it) |
DirectoryIterator & | operator= (DirectoryIterator &&it) noexcept |
DirectoryIterator & | operator++ () |
DirectoryIterator | operator++ (int) |
const Path & | operator* () const noexcept |
const Path * | operator-> () const noexcept |
void | swap (DirectoryIterator &it) noexcept |
Swap two instances. More... | |
Friends | |
class | Directory |
bool | operator== (const DirectoryIterator &it1, const DirectoryIterator &it2) noexcept |
bool | operator!= (const DirectoryIterator &it1, const DirectoryIterator &it2) noexcept |
void | swap (DirectoryIterator &it1, DirectoryIterator &it2) noexcept |
Filesystem directory iterator.
Filesystem directory iterator is used to iterate through directory content (directories, files, symlinks).
No sort order is guarantied!
Not thread-safe.
Definition at line 27 of file directory_iterator.h.
typedef std::ptrdiff_t CppCommon::DirectoryIterator::difference_type |
Definition at line 33 of file directory_iterator.h.
typedef std::forward_iterator_tag CppCommon::DirectoryIterator::iterator_category |
Definition at line 37 of file directory_iterator.h.
typedef const Path* CppCommon::DirectoryIterator::pointer |
Definition at line 36 of file directory_iterator.h.
typedef const Path& CppCommon::DirectoryIterator::reference |
Definition at line 35 of file directory_iterator.h.
Definition at line 34 of file directory_iterator.h.
CppCommon::DirectoryIterator::DirectoryIterator | ( | ) |
Definition at line 211 of file directory_iterator.cpp.
CppCommon::DirectoryIterator::DirectoryIterator | ( | DirectoryIterator & | it | ) |
Definition at line 224 of file directory_iterator.cpp.
|
noexcept |
Definition at line 228 of file directory_iterator.cpp.
CppCommon::DirectoryIterator::~DirectoryIterator | ( | ) |
Definition at line 232 of file directory_iterator.cpp.
|
inlinenoexcept |
Definition at line 21 of file directory_iterator.inl.
DirectoryIterator & CppCommon::DirectoryIterator::operator++ | ( | ) |
Definition at line 250 of file directory_iterator.cpp.
DirectoryIterator CppCommon::DirectoryIterator::operator++ | ( | int | ) |
Definition at line 257 of file directory_iterator.cpp.
|
inlinenoexcept |
Definition at line 26 of file directory_iterator.inl.
|
noexcept |
Definition at line 243 of file directory_iterator.cpp.
DirectoryIterator & CppCommon::DirectoryIterator::operator= | ( | DirectoryIterator & | it | ) |
Definition at line 236 of file directory_iterator.cpp.
|
inlinenoexcept |
Swap two instances.
Definition at line 31 of file directory_iterator.inl.
|
friend |
Definition at line 29 of file directory_iterator.h.
|
friend |
Definition at line 16 of file directory_iterator.inl.
|
friend |
Definition at line 11 of file directory_iterator.inl.
|
friend |
Definition at line 37 of file directory_iterator.inl.