libept
Public Member Functions | Public Attributes | List of all members
ept::sys::Path::iterator Struct Reference

Iterator for directory entries. More...

#include <sys.h>

Inheritance diagram for ept::sys::Path::iterator:

Public Member Functions

 iterator ()
 
 iterator (Path &dir)
 
 iterator (iterator &)=delete
 
 iterator (iterator &&o)
 
 ~iterator ()
 
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
 

Public Attributes

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

Detailed Description

Iterator for directory entries.

Constructor & Destructor Documentation

◆ iterator() [1/4]

ept::sys::Path::iterator::iterator ( )

◆ iterator() [2/4]

ept::sys::Path::iterator::iterator ( Path dir)

◆ iterator() [3/4]

ept::sys::Path::iterator::iterator ( iterator )
delete

◆ iterator() [4/4]

ept::sys::Path::iterator::iterator ( iterator &&  o)
inline

◆ ~iterator()

ept::sys::Path::iterator::~iterator ( )

References cur_entry, and dir.

Member Function Documentation

◆ isblk()

bool ept::sys::Path::iterator::isblk ( ) const
Returns
true if we refer to a block device, else false

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ ischr()

bool ept::sys::Path::iterator::ischr ( ) const
Returns
true if we refer to a character device, else false

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ isdir()

bool ept::sys::Path::iterator::isdir ( ) const
Returns
true if we refer to a directory, else false

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ isfifo()

bool ept::sys::Path::iterator::isfifo ( ) const
Returns
true if we refer to a named pipe (FIFO).

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ islnk()

bool ept::sys::Path::iterator::islnk ( ) const
Returns
true if we refer to a symbolic link.

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ isreg()

bool ept::sys::Path::iterator::isreg ( ) const
Returns
true if we refer to a regular file.

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ issock()

bool ept::sys::Path::iterator::issock ( ) const
Returns
true if we refer to a Unix domain socket.

References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().

◆ operator!=()

bool ept::sys::Path::iterator::operator!= ( const iterator i) const

References cur_entry, and dir.

◆ operator*()

struct dirent& ept::sys::Path::iterator::operator* ( ) const
inline

◆ operator++()

void ept::sys::Path::iterator::operator++ ( )

◆ operator->()

struct dirent* ept::sys::Path::iterator::operator-> ( ) const
inline

◆ operator=() [1/2]

iterator& ept::sys::Path::iterator::operator= ( iterator )
delete

◆ operator=() [2/2]

iterator& ept::sys::Path::iterator::operator= ( iterator &&  )
delete

◆ operator==()

bool ept::sys::Path::iterator::operator== ( const iterator i) const

References cur_entry, and dir.

Member Data Documentation

◆ cur_entry

struct dirent* ept::sys::Path::iterator::cur_entry = nullptr

◆ dir

DIR* ept::sys::Path::iterator::dir = nullptr

◆ path

Path* ept::sys::Path::iterator::path = nullptr

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