Hashmap_Array< Key, Value > Class Template Reference

#include <Hashmap_Array.h>

List of all members.

Classes

class  iterator

Public Types

typedef unordered_map< Key, Value > act_map
typedef unordered_map< Key,
Value >::iterator 
act_map_iter

Public Member Functions

 Hashmap_Array ()
virtual ~Hashmap_Array ()
size_t size () const
size_t count (Key key) const
Value & operator[] (Key key)
void erase (Key key)
word_mutex_t * get_lock (Key key)
word_mutex_t * get_structure_lock ()
iterator begin ()
iterator end ()

Detailed Description

template<class Key, class Value>
class Hashmap_Array< Key, Value >

An array of hash maps. Reduces Contention on multi-threaded access.


Member Typedef Documentation

template<class Key, class Value>
typedef unordered_map<Key, Value> Hashmap_Array< Key, Value >::act_map
template<class Key, class Value>
typedef unordered_map<Key, Value>::iterator Hashmap_Array< Key, Value >::act_map_iter

Constructor & Destructor Documentation

template<class Key, class Value>
Hashmap_Array< Key, Value >::Hashmap_Array (  )  [inline]
template<class Key, class Value>
virtual Hashmap_Array< Key, Value >::~Hashmap_Array (  )  [inline, virtual]

Member Function Documentation

template<class Key, class Value>
iterator Hashmap_Array< Key, Value >::begin (  )  [inline]
template<class Key, class Value>
size_t Hashmap_Array< Key, Value >::count ( Key  key  )  const [inline]
template<class Key, class Value>
iterator Hashmap_Array< Key, Value >::end (  )  [inline]
template<class Key, class Value>
void Hashmap_Array< Key, Value >::erase ( Key  key  )  [inline]
template<class Key, class Value>
word_mutex_t* Hashmap_Array< Key, Value >::get_lock ( Key  key  )  [inline]
template<class Key, class Value>
word_mutex_t* Hashmap_Array< Key, Value >::get_structure_lock (  )  [inline]
template<class Key, class Value>
Value& Hashmap_Array< Key, Value >::operator[] ( Key  key  )  [inline]
template<class Key, class Value>
size_t Hashmap_Array< Key, Value >::size (  )  const [inline]

The documentation for this class was generated from the following file:
Generated on Tue Jul 19 11:45:27 2011 for Y!LDA by  doxygen 1.6.3