libmoost
moost::io::map_store< Key, HashFcn >::scoped_block Class Reference

#include <map_store.hpp>

List of all members.

Public Member Functions

 scoped_block (map_store< Key, HashFcn > &map_store_, const Key &key)
 scoped_block (map_store< Key, HashFcn > &map_store_, const Key &key, size_t block_size)
 ~scoped_block ()
void free ()
std::fstream & operator* ()
std::fstream * operator-> ()
size_t index ()
size_t block_size ()
 operator bool () const
bool operator! () const

Private Attributes

map_store< Key, HashFcn > & m_map_store
const Key m_key
boost::scoped_ptr
< variable_store::scoped_block
m_pscoped_block
bool m_free

Detailed Description

template<class Key, class HashFcn = boost::hash< Key >>
class moost::io::map_store< Key, HashFcn >::scoped_block

scoped_block secures a block from the map_store, and exposes functionality of its predecessors

Definition at line 115 of file map_store.hpp.


Constructor & Destructor Documentation

template<class Key, class HashFcn = boost::hash< Key >>
moost::io::map_store< Key, HashFcn >::scoped_block::scoped_block ( map_store< Key, HashFcn > &  map_store_,
const Key &  key 
) [inline]

Definition at line 123 of file map_store.hpp.

Here is the call graph for this function:

template<class Key, class HashFcn = boost::hash< Key >>
moost::io::map_store< Key, HashFcn >::scoped_block::scoped_block ( map_store< Key, HashFcn > &  map_store_,
const Key &  key,
size_t  block_size 
) [inline]

Definition at line 131 of file map_store.hpp.

Here is the call graph for this function:

template<class Key, class HashFcn = boost::hash< Key >>
moost::io::map_store< Key, HashFcn >::scoped_block::~scoped_block ( ) [inline]

Definition at line 140 of file map_store.hpp.


Member Function Documentation

template<class Key, class HashFcn = boost::hash< Key >>
size_t moost::io::map_store< Key, HashFcn >::scoped_block::block_size ( ) [inline]

Definition at line 153 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
void moost::io::map_store< Key, HashFcn >::scoped_block::free ( ) [inline]

Definition at line 145 of file map_store.hpp.

Here is the caller graph for this function:

template<class Key, class HashFcn = boost::hash< Key >>
size_t moost::io::map_store< Key, HashFcn >::scoped_block::index ( ) [inline]

Definition at line 152 of file map_store.hpp.

Here is the caller graph for this function:

template<class Key, class HashFcn = boost::hash< Key >>
moost::io::map_store< Key, HashFcn >::scoped_block::operator bool ( ) const [inline]

Definition at line 154 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
bool moost::io::map_store< Key, HashFcn >::scoped_block::operator! ( ) const [inline]

Definition at line 155 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
std::fstream& moost::io::map_store< Key, HashFcn >::scoped_block::operator* ( ) [inline]

Definition at line 150 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
std::fstream* moost::io::map_store< Key, HashFcn >::scoped_block::operator-> ( ) [inline]

Definition at line 151 of file map_store.hpp.


Member Data Documentation

template<class Key, class HashFcn = boost::hash< Key >>
bool moost::io::map_store< Key, HashFcn >::scoped_block::m_free [private]

Definition at line 121 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
const Key moost::io::map_store< Key, HashFcn >::scoped_block::m_key [private]

Definition at line 119 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
map_store<Key, HashFcn>& moost::io::map_store< Key, HashFcn >::scoped_block::m_map_store [private]

Definition at line 118 of file map_store.hpp.

template<class Key, class HashFcn = boost::hash< Key >>
boost::scoped_ptr< variable_store::scoped_block > moost::io::map_store< Key, HashFcn >::scoped_block::m_pscoped_block [private]

Definition at line 120 of file map_store.hpp.


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