|
CeresEngine 0.2.0
A game development framework
|
An iterator that allows traversing over a file's children. More...
#include <CeresEngine/Foundation/IO/FileHandle.hpp>
Public Types | |
| using | ImplementationType = Poly< IFileIterator, sizeof(void *) *4, false > |
Public Member Functions | |
| FileIterator () | |
Creates a new empty FileIterator. | |
| FileIterator (ImplementationType &&backend) | |
Creates a new FileIterator from a concrete iterator implementation. | |
| FileIterator (FileIterator &&other) noexcept | |
| FileIterator & | operator= (FileIterator &&other) noexcept |
| FileIterator (const FileIterator &other)=delete | |
| FileIterator & | operator= (const FileIterator &other)=delete |
| ~FileIterator () noexcept | |
Destroys the FileIterator instance. | |
| FileHandle | operator* () const |
| Gets the current handle being iterated. | |
| void | operator++ () |
| Advances to the next item. | |
| bool | operator== (const FileIterator &other) const |
| Compares two iterators for equality. | |
| bool | operator!= (const FileIterator &it) const |
| Compares two iterators for inequality. | |
| IFileSystem * | getFileSystem () const |
Gets the backing IFileSystem for the iterator. | |
Private Attributes | |
| ImplementationType | mImplementation = nullptr |
| The implementation of the file iterator. | |
An iterator that allows traversing over a file's children.
| CeresEngine::FileIterator::FileIterator | ( | ) |
Creates a new empty FileIterator.
| CeresEngine::FileIterator::FileIterator | ( | ImplementationType && | backend | ) |
Creates a new FileIterator from a concrete iterator implementation.
|
noexcept |
|
delete |
|
noexcept |
Destroys the FileIterator instance.
| IFileSystem * CeresEngine::FileIterator::getFileSystem | ( | ) | const |
Gets the backing IFileSystem for the iterator.
Can be nullptr if the handle is empty.
| bool CeresEngine::FileIterator::operator!= | ( | const FileIterator & | it | ) | const |
Compares two iterators for inequality.
true if iterators are not equal, else false. | FileHandle CeresEngine::FileIterator::operator* | ( | ) | const |
Gets the current handle being iterated.
| void CeresEngine::FileIterator::operator++ | ( | ) |
Advances to the next item.
|
delete |
|
noexcept |
| bool CeresEngine::FileIterator::operator== | ( | const FileIterator & | other | ) | const |
Compares two iterators for equality.
true if iterators are equal, else false.
|
private |
The implementation of the file iterator.