libmoost
moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer Class Reference

#include <hash_multimap.hpp>

Inheritance diagram for moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer:
Collaboration diagram for moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer:

List of all members.

Public Member Functions

 writer (memory_mapped_dataset::writer &wr, const std::string &name, size_t hash_bits=MMD_HASH_BITS, size_t alignment=MMD_HASH_ALIGNMENT)
writeroperator<< (const value_type &e)
void insert (const value_type &e)
size_type size () const

Protected Member Functions

void pre_commit ()

Private Attributes

size_type m_size
const size_type m_hash_mask
std::vector< std::vector
< value_type > > 
m_values

Detailed Description

template<typename Key, typename T, class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
class moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer

Definition at line 86 of file hash_multimap.hpp.


Constructor & Destructor Documentation

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::writer ( memory_mapped_dataset::writer wr,
const std::string &  name,
size_t  hash_bits = MMD_HASH_BITS,
size_t  alignment = MMD_HASH_ALIGNMENT 
) [inline]

Definition at line 89 of file hash_multimap.hpp.

Here is the call graph for this function:


Member Function Documentation

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
void moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::insert ( const value_type e) [inline]

Definition at line 114 of file hash_multimap.hpp.

Here is the caller graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
writer& moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::operator<< ( const value_type e) [inline]

Definition at line 108 of file hash_multimap.hpp.

Here is the call graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
void moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::pre_commit ( ) [inline, protected, virtual]

Reimplemented from moost::container::mmd_section_writer_base.

Definition at line 126 of file hash_multimap.hpp.

Here is the call graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
size_type moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::size ( ) const [inline]

Definition at line 120 of file hash_multimap.hpp.


Member Data Documentation

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
const size_type moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::m_hash_mask [private]

Definition at line 147 of file hash_multimap.hpp.

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
size_type moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::m_size [private]

Definition at line 146 of file hash_multimap.hpp.

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>, typename IndexType = boost::uint64_t>
std::vector< std::vector<value_type> > moost::container::mmd_hash_multimap< Key, T, HashFcn, IndexType >::writer::m_values [private]

Definition at line 148 of file hash_multimap.hpp.


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