libmoost
moost::io::block_store::scoped_block Class Reference

#include <block_store.hpp>

Collaboration diagram for moost::io::block_store::scoped_block:

List of all members.

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_storem_block_store
moost::container::resource_stack
< std::fstream >
::scoped_resource 
m_rstream
size_t m_index
bool m_free

Detailed Description

scoped_block secures a block from the block store, and exposes read/write functionality

Definition at line 99 of file block_store.hpp.


Constructor & Destructor Documentation

alloc a new block

Definition at line 108 of file block_store.hpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Definition at line 129 of file block_store.hpp.

Here is the call graph for this function:


Member Function Documentation

Definition at line 140 of file block_store.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 136 of file block_store.hpp.

Here is the caller graph for this function:

Definition at line 139 of file block_store.hpp.

Here is the caller graph for this function:

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.


Member Data Documentation

Definition at line 105 of file block_store.hpp.

Definition at line 104 of file block_store.hpp.

Definition at line 103 of file block_store.hpp.


The documentation for this class was generated from the following file: