jubilant-funicular
Public Types | Public Member Functions | Private Attributes | List of all members
utils::Path::iterator Class Reference

#include <Path.h>

Collaboration diagram for utils::Path::iterator:
Collaboration graph
[legend]

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
 
iteratoroperator++ ()
 
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
 

Detailed Description

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

Definition at line 30 of file Path.h.


The documentation for this class was generated from the following file: