libwreport  3.5
Public Member Functions | Data Fields
wreport::sys::Path::iterator Struct Reference

Iterator for directory entries. More...

#include <sys.h>

Inheritance diagram for wreport::sys::Path::iterator:

Public Member Functions

 iterator (Path &dir)
 
 iterator (iterator &)=delete
 
 iterator (iterator &&o)
 
iteratoroperator= (iterator &)=delete
 
iteratoroperator= (iterator &&)=delete
 
bool operator== (const iterator &i) const
 
bool operator!= (const iterator &i) const
 
struct dirent & operator* () const
 
struct dirent * operator-> () const
 
void operator++ ()
 
bool isdir () const
 
bool isblk () const
 
bool ischr () const
 
bool isfifo () const
 
bool islnk () const
 
bool isreg () const
 
bool issock () const
 

Data Fields

Pathpath = nullptr
 
DIR * dir = nullptr
 
struct dirent * cur_entry = nullptr
 

Detailed Description

Iterator for directory entries.

Member Function Documentation

bool wreport::sys::Path::iterator::isblk ( ) const
Returns
true if we refer to a block device, else false
bool wreport::sys::Path::iterator::ischr ( ) const
Returns
true if we refer to a character device, else false
bool wreport::sys::Path::iterator::isdir ( ) const
Returns
true if we refer to a directory, else false
bool wreport::sys::Path::iterator::isfifo ( ) const
Returns
true if we refer to a named pipe (FIFO).
bool wreport::sys::Path::iterator::islnk ( ) const
Returns
true if we refer to a symbolic link.
bool wreport::sys::Path::iterator::isreg ( ) const
Returns
true if we refer to a regular file.
bool wreport::sys::Path::iterator::issock ( ) const
Returns
true if we refer to a Unix domain socket.

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