Public Member Functions | List of all members
sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter Class Reference

A class for iterating over all items in a directory. More...

#include <Filesystem.hh>

Public Member Functions

 DirIter ()
 Constructor for end element. More...
 
 DirIter (const std::string &_in)
 Constructor. More...
 
 ~DirIter ()
 Destructor. More...
 
bool operator!= (const DirIter &_other) const
 Comparison operator to see if this iterator is at the same point as another iterator. More...
 
std::string operator* () const
 Dereference operator; returns current directory record. More...
 
const DirIteroperator++ ()
 Pre-increment operator; moves to next directory record. More...
 

Detailed Description

A class for iterating over all items in a directory.

Constructor & Destructor Documentation

◆ DirIter() [1/2]

sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter::DirIter ( const std::string &  _in)
explicit

Constructor.

Parameters
[in]_inDirectory to iterate over.

◆ DirIter() [2/2]

sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter::DirIter ( )

Constructor for end element.

◆ ~DirIter()

sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter::~DirIter ( )

Destructor.

Member Function Documentation

◆ operator!=()

bool sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter::operator!= ( const DirIter _other) const

Comparison operator to see if this iterator is at the same point as another iterator.

Parameters
[in]_otherThe other iterator to compare against.
Returns
true if the iterators are equal, false otherwise.

◆ operator*()

std::string sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter::operator* ( ) const

Dereference operator; returns current directory record.

Returns
A string representing the entire path of the directory record.

◆ operator++()

const DirIter& sdf::SDF_VERSION_NAMESPACE::filesystem::DirIter::operator++ ( )

Pre-increment operator; moves to next directory record.

Returns
This iterator.

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