libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::sftp::DirectoryIterator Class Reference

InputIterator over a Directory. Skips "." and ".." by default. More...

#include <directory.hpp>

Public Types

using value_type = Attributes
 
using difference_type = std::ptrdiff_t
 
using pointer = const Attributes *
 
using reference = const Attributes &
 
using iterator_category = std::input_iterator_tag
 

Public Member Functions

 DirectoryIterator ()=default
 
 DirectoryIterator (Directory &dir, bool skip_dot_entries=true)
 
const Attributesoperator* () const
 
const Attributesoperator-> () const
 
DirectoryIteratoroperator++ ()
 
bool operator== (const DirectoryIterator &other) const noexcept
 
bool operator!= (const DirectoryIterator &other) const noexcept
 

Detailed Description

InputIterator over a Directory. Skips "." and ".." by default.

Member Typedef Documentation

◆ value_type

◆ difference_type

◆ pointer

◆ reference

◆ iterator_category

using sshpp::sftp::DirectoryIterator::iterator_category = std::input_iterator_tag

Constructor & Destructor Documentation

◆ DirectoryIterator() [1/2]

sshpp::sftp::DirectoryIterator::DirectoryIterator ( )
default

◆ DirectoryIterator() [2/2]

sshpp::sftp::DirectoryIterator::DirectoryIterator ( Directory dir,
bool  skip_dot_entries = true 
)
inlineexplicit

Member Function Documentation

◆ operator*()

const Attributes & sshpp::sftp::DirectoryIterator::operator* ( ) const
inline

◆ operator->()

const Attributes * sshpp::sftp::DirectoryIterator::operator-> ( ) const
inline

◆ operator++()

DirectoryIterator & sshpp::sftp::DirectoryIterator::operator++ ( )
inline

◆ operator==()

bool sshpp::sftp::DirectoryIterator::operator== ( const DirectoryIterator other) const
inlinenoexcept

◆ operator!=()

bool sshpp::sftp::DirectoryIterator::operator!= ( const DirectoryIterator other) const
inlinenoexcept

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