SPH
Public Member Functions | Friends | List of all members
FileSystem::DirectoryIterator Class Reference

Iterator allowing to enumerate files and subdirectories in given directory. More...

#include <FileSystem.h>

Public Member Functions

DirectoryIteratoroperator++ ()
 Moves to the next file in the directory. More...
 
Path operator* () const
 Return the path of the file. The path is returned relative to the parent directory. More...
 
bool operator== (const DirectoryIterator &other) const
 Checks for equality. Returns true in case both iterators are nullptr. More...
 
bool operator!= (const DirectoryIterator &other) const
 Checks for inequality. Returns false in case both iterators are nullptr. More...
 

Friends

class DirectoryAdapter
 

Detailed Description

Iterator allowing to enumerate files and subdirectories in given directory.

Definition at line 112 of file FileSystem.h.

Member Function Documentation

◆ operator!=()

bool FileSystem::DirectoryIterator::operator!= ( const DirectoryIterator other) const

Checks for inequality. Returns false in case both iterators are nullptr.

Definition at line 305 of file FileSystem.cpp.

◆ operator*()

Path FileSystem::DirectoryIterator::operator* ( ) const

Return the path of the file. The path is returned relative to the parent directory.

Definition at line 296 of file FileSystem.cpp.

◆ operator++()

FileSystem::DirectoryIterator & FileSystem::DirectoryIterator::operator++ ( )

Moves to the next file in the directory.

Definition at line 286 of file FileSystem.cpp.

◆ operator==()

bool FileSystem::DirectoryIterator::operator== ( const DirectoryIterator other) const

Checks for equality. Returns true in case both iterators are nullptr.

Definition at line 301 of file FileSystem.cpp.

Friends And Related Function Documentation

◆ DirectoryAdapter

friend class DirectoryAdapter
friend

Definition at line 113 of file FileSystem.h.


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