jubilant-funicular
|
#include <Path.h>
Public Types | |
using | value_type = const Path |
using | difference_type = std::ptrdiff_t |
using | pointer = const Path * |
using | reference = const Path |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
iterator (pointer path) | |
reference | operator* () const |
reference | operator-> () const |
iterator & | operator++ () |
iterator | operator++ (int) |
bool | operator== (const iterator &rhs) const |
bool | operator!= (const iterator &rhs) const |
void | set_begin (SetBeginEndKey _) |
void | set_end (SetBeginEndKey _) |
Private Attributes | |
pointer | m_path |
node | m_node |
Custom iterator for looping over files in a path
For Directories: loops over the files (including . and ..)
For Files: one iteration returning the name of the file itself