libmoost
|
#include <block_store.hpp>
Public Member Functions | |
scoped_block (block_store &block_store_) | |
scoped_block (block_store &block_store_, size_t index) | |
~scoped_block () | |
void | free () |
std::fstream & | operator* () |
std::fstream * | operator-> () |
size_t | index () |
size_t | block_size () |
Private Attributes | |
block_store & | m_block_store |
moost::container::resource_stack < std::fstream > ::scoped_resource | m_rstream |
size_t | m_index |
bool | m_free |
scoped_block secures a block from the block store, and exposes read/write functionality
Definition at line 99 of file block_store.hpp.
moost::io::block_store::scoped_block::scoped_block | ( | block_store & | block_store_ | ) | [inline] |
alloc a new block
Definition at line 108 of file block_store.hpp.
moost::io::block_store::scoped_block::scoped_block | ( | block_store & | block_store_, |
size_t | index | ||
) | [inline] |
grab a preexisting block
Definition at line 119 of file block_store.hpp.
moost::io::block_store::scoped_block::~scoped_block | ( | ) | [inline] |
size_t moost::io::block_store::scoped_block::block_size | ( | ) | [inline] |
Definition at line 140 of file block_store.hpp.
void moost::io::block_store::scoped_block::free | ( | ) | [inline] |
size_t moost::io::block_store::scoped_block::index | ( | ) | [inline] |
std::fstream& moost::io::block_store::scoped_block::operator* | ( | ) | [inline] |
Definition at line 137 of file block_store.hpp.
std::fstream* moost::io::block_store::scoped_block::operator-> | ( | ) | [inline] |
Definition at line 138 of file block_store.hpp.
Definition at line 102 of file block_store.hpp.
bool moost::io::block_store::scoped_block::m_free [private] |
Definition at line 105 of file block_store.hpp.
size_t moost::io::block_store::scoped_block::m_index [private] |
Definition at line 104 of file block_store.hpp.
moost::container::resource_stack< std::fstream >::scoped_resource moost::io::block_store::scoped_block::m_rstream [private] |
Definition at line 103 of file block_store.hpp.