Iterator for iterating over the pages in a file. More...
#include <file_iterator.h>
Public Member Functions | |
FileIterator () | |
FileIterator (PageFile *file) | |
FileIterator (PageFile *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.
wiscdb::FileIterator::FileIterator | ( | ) | [inline] |
Constructs an empty iterator.
Definition at line 28 of file file_iterator.h.
wiscdb::FileIterator::FileIterator | ( | PageFile * | file | ) | [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.
wiscdb::FileIterator::FileIterator | ( | PageFile * | file, |
PageId | page_number | ||
) | [inline] |
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.
Page wiscdb::FileIterator::operator* | ( | ) | const [inline] |
Dereferences the iterator, returning a copy of the current page in the file.
Definition at line 103 of file file_iterator.h.
FileIterator& wiscdb::FileIterator::operator++ | ( | ) | [inline] |
Advances the iterator to the next page in the file.
Definition at line 61 of file file_iterator.h.
bool wiscdb::FileIterator::operator== | ( | const FileIterator & | rhs | ) | const [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.