libept
|
Iterator for directory entries. More...
#include <sys.h>
Public Member Functions | |
iterator () | |
iterator (Path &dir) | |
iterator (iterator &)=delete | |
iterator (iterator &&o) | |
~iterator () | |
iterator & | operator= (iterator &)=delete |
iterator & | operator= (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 | |
Path * | path = nullptr |
DIR * | dir = nullptr |
struct dirent * | cur_entry = nullptr |
Iterator for directory entries.
ept::sys::Path::iterator::iterator | ( | ) |
ept::sys::Path::iterator::iterator | ( | Path & | dir | ) |
References cur_entry, ept::sys::FileDescriptor::fd, ept::sys::Path::fdopendir(), and operator++().
|
delete |
|
inline |
References ept::sys::MMap::operator=().
bool ept::sys::Path::iterator::isblk | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::ischr | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::isdir | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::isfifo | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::islnk | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::isreg | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::issock | ( | ) | const |
References cur_entry, ept::sys::Path::fstatat(), path, and ept::sys::stat().
bool ept::sys::Path::iterator::operator!= | ( | const iterator & | i | ) | const |
|
inline |
void ept::sys::Path::iterator::operator++ | ( | ) |
References cur_entry, dir, path, and ept::sys::NamedFileDescriptor::throw_error().
Referenced by iterator().
|
inline |
bool ept::sys::Path::iterator::operator== | ( | const iterator & | i | ) | const |
struct dirent* ept::sys::Path::iterator::cur_entry = nullptr |
Referenced by isblk(), ischr(), isdir(), isfifo(), islnk(), isreg(), issock(), iterator(), operator!=(), operator++(), operator==(), and ~iterator().
DIR* ept::sys::Path::iterator::dir = nullptr |
Referenced by operator!=(), operator++(), operator==(), and ~iterator().
Path* ept::sys::Path::iterator::path = nullptr |