asio::detail::hash_map< K, V > Class Template Reference

#include <hash_map.hpp>

Inherits boost::noncopyable.

List of all members.

Public Types

typedef std::pair< K, V > value_type
typedef std::list< value_type >
::iterator 
iterator
typedef std::list< value_type >
::const_iterator 
const_iterator

Public Member Functions

 hash_map ()
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
bool empty () const
iterator find (const K &k)
const_iterator find (const K &k) const
std::pair< iterator, boolinsert (const value_type &v)
void erase (iterator it)
void clear ()

Private Types

enum  { num_buckets = 1021 }

Private Attributes

std::list< value_typevalues_
bucket_type buckets_ [num_buckets]

Classes

struct  bucket_type


Detailed Description

template<typename K, typename V>
class asio::detail::hash_map< K, V >

Definition at line 47 of file hash_map.hpp.


Member Typedef Documentation

template<typename K, typename V>
typedef std::pair<K, V> asio::detail::hash_map< K, V >::value_type

Definition at line 52 of file hash_map.hpp.

template<typename K, typename V>
typedef std::list<value_type>::iterator asio::detail::hash_map< K, V >::iterator

Definition at line 55 of file hash_map.hpp.

template<typename K, typename V>
typedef std::list<value_type>::const_iterator asio::detail::hash_map< K, V >::const_iterator

Definition at line 58 of file hash_map.hpp.


Member Enumeration Documentation

template<typename K, typename V>
anonymous enum [private]

Enumerator:
num_buckets 

Definition at line 198 of file hash_map.hpp.


Constructor & Destructor Documentation

template<typename K, typename V>
asio::detail::hash_map< K, V >::hash_map (  )  [inline]

Definition at line 61 of file hash_map.hpp.


Member Function Documentation

template<typename K, typename V>
iterator asio::detail::hash_map< K, V >::begin (  )  [inline]

template<typename K, typename V>
const_iterator asio::detail::hash_map< K, V >::begin (  )  const [inline]

Definition at line 75 of file hash_map.hpp.

template<typename K, typename V>
iterator asio::detail::hash_map< K, V >::end (  )  [inline]

template<typename K, typename V>
const_iterator asio::detail::hash_map< K, V >::end (  )  const [inline]

Definition at line 87 of file hash_map.hpp.

template<typename K, typename V>
bool asio::detail::hash_map< K, V >::empty (  )  const [inline]

Definition at line 93 of file hash_map.hpp.

Referenced by asio::detail::reactor_op_queue< int >::empty().

template<typename K, typename V>
iterator asio::detail::hash_map< K, V >::find ( const K &  k  )  [inline]

template<typename K, typename V>
const_iterator asio::detail::hash_map< K, V >::find ( const K &  k  )  const [inline]

Definition at line 117 of file hash_map.hpp.

template<typename K, typename V>
std::pair<iterator, bool> asio::detail::hash_map< K, V >::insert ( const value_type v  )  [inline]

template<typename K, typename V>
void asio::detail::hash_map< K, V >::erase ( iterator  it  )  [inline]

template<typename K, typename V>
void asio::detail::hash_map< K, V >::clear (  )  [inline]

Definition at line 176 of file hash_map.hpp.


Member Data Documentation

template<typename K, typename V>
std::list<value_type> asio::detail::hash_map< K, V >::values_ [private]

template<typename K, typename V>
bucket_type asio::detail::hash_map< K, V >::buckets_[num_buckets] [private]


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

Generated on Sun May 25 00:21:31 2008 by  doxygen 1.5.6