1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-01-20 09:20:13 +00:00
UltimateTrainingModpack/TrainingModpackOverlay/include/dir_iterator.hpp
2020-08-10 11:54:12 -07:00

33 lines
566 B
C++

#pragma once
#include <switch.h>
class FsDirIterator
{
private:
FsDir m_dir;
FsDirectoryEntry entry;
s64 count;
public:
FsDirIterator() = default;
FsDirIterator(FsDir dir);
~FsDirIterator() = default;
const FsDirectoryEntry& operator*() const;
const FsDirectoryEntry* operator->() const;
FsDirIterator& operator++();
bool operator!=(const FsDirIterator& rhs);
};
inline FsDirIterator begin(FsDirIterator iter) noexcept
{
return iter;
}
inline FsDirIterator end(FsDirIterator) noexcept
{
return FsDirIterator();
}