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

#include <dense_hash_map.hpp>

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

List of all members.

Public Member Functions

 writer (memory_mapped_dataset::writer &wr, const std::string &name, const key_type &empty_key, float max_population_ratio=MAX_POPULATION_RATIO(), size_t alignment=MMD_HASH_ALIGNMENT)
writeroperator<< (const value_type &e)
writeroperator<< (const std::pair< Key, T > &e)
void insert (const value_type &e)
void insert (const std::pair< Key, T > &e)
size_type size () const

Protected Member Functions

void pre_commit ()

Private Member Functions

size_type get_optimum_table_size (size_type pop) const
size_type find (const key_type &key, const value_type *begin, size_type size) const
void empty_value (value_type &val) const
void build_dense_hash_map (std::vector< value_type > &target) const

Private Attributes

key_type m_empty_key
float m_max_pop_ratio
std::vector< value_typem_values

Detailed Description

template<typename Key, typename T, class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
class moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer

Definition at line 188 of file dense_hash_map.hpp.


Constructor & Destructor Documentation

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::writer ( memory_mapped_dataset::writer wr,
const std::string &  name,
const key_type empty_key,
float  max_population_ratio = MAX_POPULATION_RATIO(),
size_t  alignment = MMD_HASH_ALIGNMENT 
) [inline]

Definition at line 191 of file dense_hash_map.hpp.

Here is the call graph for this function:


Member Function Documentation

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
void moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::build_dense_hash_map ( std::vector< value_type > &  target) const [inline, private]

Definition at line 305 of file dense_hash_map.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
void moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::empty_value ( value_type val) const [inline, private]

Definition at line 299 of file dense_hash_map.hpp.

Here is the caller graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
size_type moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::find ( const key_type key,
const value_type begin,
size_type  size 
) const [inline, private]

Definition at line 275 of file dense_hash_map.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
size_type moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::get_optimum_table_size ( size_type  pop) const [inline, private]

Definition at line 257 of file dense_hash_map.hpp.

Here is the caller graph for this function:

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

Definition at line 218 of file dense_hash_map.hpp.

Here is the caller graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
void moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::insert ( const std::pair< Key, T > &  e) [inline]

Definition at line 227 of file dense_hash_map.hpp.

Here is the call graph for this function:

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

Definition at line 206 of file dense_hash_map.hpp.

Here is the call graph for this function:

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
writer& moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::operator<< ( const std::pair< Key, T > &  e) [inline]

Definition at line 212 of file dense_hash_map.hpp.

Here is the call graph for this function:

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

Reimplemented from moost::container::mmd_section_writer_base.

Definition at line 241 of file dense_hash_map.hpp.

Here is the call graph for this function:

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

Definition at line 235 of file dense_hash_map.hpp.

Here is the caller graph for this function:


Member Data Documentation

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
key_type moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::m_empty_key [private]

Definition at line 333 of file dense_hash_map.hpp.

template<typename Key , typename T , class HashFcn = MMD_DEFAULT_HASH_FCN<Key>>
float moost::container::mmd_dense_hash_map< Key, T, HashFcn >::writer::m_max_pop_ratio [private]

Definition at line 334 of file dense_hash_map.hpp.

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

Definition at line 335 of file dense_hash_map.hpp.


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