libmoost
|
variable_store provides variable length storage by presenting a thread-safe scoped_stream given a requested size More...
#include <variable_store.hpp>
Classes | |
class | scoped_block |
Public Member Functions | |
variable_store (const std::string &base_path, size_t min_block_size=64, size_t max_block_size=16777216, size_t streams_per_block_size=8) | |
Constructs a block_store. | |
Private Member Functions | |
size_t | index_from_size (size_t block_size) |
Private Attributes | |
size_t | m_min_block_size |
size_t | m_max_block_size |
boost::scoped_array < boost::scoped_ptr < block_store > > | m_block_stores |
variable_store provides variable length storage by presenting a thread-safe scoped_stream given a requested size
Definition at line 49 of file variable_store.hpp.
moost::io::variable_store::variable_store | ( | const std::string & | base_path, |
size_t | min_block_size = 64 , |
||
size_t | max_block_size = 16777216 , |
||
size_t | streams_per_block_size = 8 |
||
) | [inline] |
Constructs a block_store.
Definition at line 94 of file variable_store.hpp.
size_t moost::io::variable_store::index_from_size | ( | size_t | block_size | ) | [inline, private] |
Definition at line 57 of file variable_store.hpp.
boost::scoped_array< boost::scoped_ptr< block_store > > moost::io::variable_store::m_block_stores [private] |
Definition at line 55 of file variable_store.hpp.
size_t moost::io::variable_store::m_max_block_size [private] |
Definition at line 54 of file variable_store.hpp.
size_t moost::io::variable_store::m_min_block_size [private] |
Definition at line 53 of file variable_store.hpp.