Tawara
0.1.0
|
#include <tawara/file_cluster.h>
Public Member Functions | |
IteratorBase () | |
Base constructor. More... | |
IteratorBase (FileCluster const *cluster, std::istream &stream, std::streampos pos) | |
Base constructor. More... | |
template<typename OtherType > | |
IteratorBase (IteratorBase< OtherType > const &other) | |
Templated base constructor. More... | |
Protected Member Functions | |
void | load_block (std::streampos pos) |
void | increment () |
Increment the iterator to the next block. More... | |
template<typename OtherType > | |
bool | equal (IteratorBase< OtherType > const &other) const |
Test for equality with another iterator. More... | |
BlockType & | dereference () const |
Dereference the iterator to get a pointer to the block. More... | |
Protected Attributes | |
FileCluster const * | cluster_ |
std::istream * | stream_ |
boost::shared_ptr< BlockType > | block_ |
Friends | |
class | boost::iterator_core_access |
class | FileCluster |
Definition at line 80 of file file_cluster.h.
|
inline |
|
inline |
Base constructor.
[in] | cluster | The cluster containing the blocks. |
[in] | stream | The stream to read blocks from. |
[in] | pos | The position in the file of the first block to read. |
Definition at line 105 of file file_cluster.h.
|
inline |
Templated base constructor.
Used to provide interoperability with compatible iterators.
Definition at line 119 of file file_cluster.h.
|
inlineprotected |
Dereference the iterator to get a pointer to the block.
Definition at line 224 of file file_cluster.h.
|
inlineprotected |
Test for equality with another iterator.
[in] | other | The other iterator. |
Definition at line 196 of file file_cluster.h.
|
inlineprotected |
Increment the iterator to the next block.
Definition at line 181 of file file_cluster.h.
|
inlineprotected |
Definition at line 136 of file file_cluster.h.
|
friend |
Definition at line 127 of file file_cluster.h.
|
friend |
Definition at line 130 of file file_cluster.h.
|
protected |
Definition at line 134 of file file_cluster.h.
|
protected |
Definition at line 132 of file file_cluster.h.
|
protected |
Definition at line 133 of file file_cluster.h.