libmoost
moost::io::variable_store Class Reference

variable_store provides variable length storage by presenting a thread-safe scoped_stream given a requested size More...

#include <variable_store.hpp>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

size_t moost::io::variable_store::index_from_size ( size_t  block_size) [inline, private]

Definition at line 57 of file variable_store.hpp.


Member Data Documentation

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.

Definition at line 54 of file variable_store.hpp.

Definition at line 53 of file variable_store.hpp.


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