wisc_db
|
Iterator for iterating over the pages in a file. More...
#include <file_iterator.h>
Public Member Functions | |
FileIterator () | |
FileIterator (File *file) | |
FileIterator (File *file, PageId page_number) | |
FileIterator & | operator++ () |
FileIterator | operator++ (int) |
bool | operator== (const FileIterator &rhs) const |
bool | operator!= (const FileIterator &rhs) const |
Page | operator* () const |
Iterator for iterating over the pages in a file.
This class provides a forward-only iterator for iterating over all of the pages in a file.
Definition at line 23 of file file_iterator.h.
|
inline |
|
inline |
Constructors an iterator over the pages in a file, starting at the first page.
file | File to iterate over. |
Definition at line 39 of file file_iterator.h.
Constructs an iterator over the pages in a file, starting at the given page number.
file | File to iterate over. |
page_number | Number of page to start iterator at. |
Definition at line 53 of file file_iterator.h.
|
inline |
Dereferences the iterator, returning a copy of the current page in the file.
Definition at line 103 of file file_iterator.h.
|
inline |
Advances the iterator to the next page in the file.
Definition at line 61 of file file_iterator.h.
|
inline |
Returns true if this iterator is equal to the given iterator.
rhs | Iterator to compare against. |
Definition at line 87 of file file_iterator.h.