Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator > Class Template Reference

#include <ptr_unordered_map.hpp>

Inheritance diagram for boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >:
Collaboration diagram for boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >:

Public Types

typedef base_type::size_type size_type
 
typedef BOOST_DEDUCED_TYPENAME
base_type::iterator 
iterator
 
typedef BOOST_DEDUCED_TYPENAME
base_type::const_iterator 
const_iterator
 
typedef BOOST_DEDUCED_TYPENAME
base_type::key_type 
key_type
 
typedef BOOST_DEDUCED_TYPENAME
base_type::const_reference 
const_reference
 
typedef BOOST_DEDUCED_TYPENAME
base_type::auto_type 
auto_type
 
typedef BOOST_DEDUCED_TYPENAME
boost::unordered_map< Key,
void *, Hash, Pred, Allocator >
::allocator_type 
allocator_type
 
typedef BOOST_DEDUCED_TYPENAME
base_type::mapped_type 
mapped_type
 
typedef BOOST_DEDUCED_TYPENAME
base_type::reference 
mapped_reference
 
typedef BOOST_DEDUCED_TYPENAME
base_type::const_reference 
const_mapped_reference
 
typedef BOOST_DEDUCED_TYPENAME
iterator_value< iterator >
::type 
value_type
 
typedef value_type reference
 
typedef value_type pointer
 
typedef const_reference const_pointer
 

Public Member Functions

 ptr_unordered_map ()
 
 ptr_unordered_map (size_type n)
 
 ptr_unordered_map (size_type n, const Hash &comp, const Pred &pred=Pred(), const Allocator &a=Allocator())
 
template<typename InputIterator >
 ptr_unordered_map (InputIterator first, InputIterator last)
 
template<typename InputIterator >
 ptr_unordered_map (InputIterator first, InputIterator last, const Hash &comp, const Pred &pred=Pred(), const Allocator &a=Allocator())
 
 BOOST_PTR_CONTAINER_DEFINE_RELEASE_AND_CLONE (ptr_unordered_map, base_type, this_type) template< class U > ptr_unordered_map(const ptr_unordered_map< Key
 
void insert (InputIterator first, InputIterator last)
 
void insert (const Range &r)
 
std::pair< iterator, bool > insert (key_type &key, mapped_type x)
 
std::pair< iterator, bool > insert (const key_type &key, std::auto_ptr< U > x)
 
iterator insert (iterator before, ptr_container_detail::ref_pair< F, S > p)
 
iterator insert (iterator before, key_type &key, mapped_type x)
 
iterator insert (iterator before, const key_type &key, std::auto_ptr< U > x)
 
bool transfer (BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator object, PtrMapAdapter &from)
 
size_type transfer (BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator first, BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator last, PtrMapAdapter &from)
 
BOOST_DEDUCED_TYPENAME
boost::disable_if
< boost::is_same< Range,
BOOST_DEDUCED_TYPENAME
PtrMapAdapter::iterator >
, size_type >::type 
transfer (const Range &r, PtrMapAdapter &from)
 
size_type transfer (PtrMapAdapter &from)
 
iterator find (const key_type &x)
 
const_iterator find (const key_type &x) const
 
size_type count (const key_type &x) const
 
iterator lower_bound (const key_type &x)
 
const_iterator lower_bound (const key_type &x) const
 
iterator upper_bound (const key_type &x)
 
const_iterator upper_bound (const key_type &x) const
 
iterator_range< iteratorequal_range (const key_type &x)
 
iterator_range< const_iteratorequal_range (const key_type &x) const
 
mapped_reference at (const key_type &key)
 
const_mapped_reference at (const key_type &key) const
 
mapped_reference operator[] (const key_type &key)
 
auto_type replace (iterator where, mapped_type x)
 
auto_type replace (iterator where, std::auto_ptr< U > x)
 

Public Attributes

U & r: base_type( r ) { } ptr_unordered_map& operator=( ptr_unordered_map r ) { this->swap( r )
 
return * this
 

Protected Member Functions

size_type bucket (const key_type &key) const
 

Member Typedef Documentation

typedef BOOST_DEDUCED_TYPENAME boost::unordered_map< Key, void *, Hash, Pred, Allocator > ::allocator_type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::allocator_type
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::auto_type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::auto_type
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::const_iterator boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::const_iterator
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::const_reference boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::const_mapped_reference
inherited
typedef const_reference boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::const_pointer
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::const_reference boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::const_reference
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::iterator boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::iterator
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::key_type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::key_type
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::reference boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::mapped_reference
inherited
typedef BOOST_DEDUCED_TYPENAME base_type::mapped_type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::mapped_type
inherited
typedef value_type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::pointer
inherited
typedef value_type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::reference
inherited
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
typedef base_type::size_type boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::size_type
typedef BOOST_DEDUCED_TYPENAME iterator_value<iterator>::type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::value_type
inherited

Constructor & Destructor Documentation

template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::ptr_unordered_map ( )
inline
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::ptr_unordered_map ( size_type  n)
inlineexplicit
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::ptr_unordered_map ( size_type  n,
const Hash &  comp,
const Pred &  pred = Pred(),
const Allocator &  a = Allocator() 
)
inline
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
template<typename InputIterator >
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::ptr_unordered_map ( InputIterator  first,
InputIterator  last 
)
inline
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
template<typename InputIterator >
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::ptr_unordered_map ( InputIterator  first,
InputIterator  last,
const Hash &  comp,
const Pred &  pred = Pred(),
const Allocator &  a = Allocator() 
)
inline

Member Function Documentation

mapped_reference boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::at ( const key_type key)
inlineinherited
const_mapped_reference boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::at ( const key_type key) const
inlineinherited
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::BOOST_PTR_CONTAINER_DEFINE_RELEASE_AND_CLONE ( ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >  ,
base_type  ,
this_type   
) const
size_type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::bucket ( const key_type key) const
inlineprotectedinherited
size_type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::count ( const key_type x) const
inlineinherited
iterator_range<iterator> boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::equal_range ( const key_type x)
inlineinherited
iterator_range<const_iterator> boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::equal_range ( const key_type x) const
inlineinherited
iterator boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::find ( const key_type x)
inlineinherited
const_iterator boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::find ( const key_type x) const
inlineinherited
void boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( InputIterator  first,
InputIterator  last 
)
inlineinherited
void boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( const Range &  r)
inlineinherited
std::pair<iterator,bool> boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( key_type key,
mapped_type  x 
)
inlineinherited
std::pair<iterator,bool> boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( const key_type key,
std::auto_ptr< U >  x 
)
inlineinherited
iterator boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( iterator  before,
ptr_container_detail::ref_pair< F, S >  p 
)
inlineinherited
iterator boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( iterator  before,
key_type key,
mapped_type  x 
)
inlineinherited
iterator boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::insert ( iterator  before,
const key_type key,
std::auto_ptr< U >  x 
)
inlineinherited
iterator boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::lower_bound ( const key_type x)
inlineinherited
const_iterator boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::lower_bound ( const key_type x) const
inlineinherited
mapped_reference boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::operator[] ( const key_type key)
inlineinherited
auto_type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::replace ( iterator  where,
mapped_type  x 
)
inlineinherited
auto_type boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::replace ( iterator  where,
std::auto_ptr< U >  x 
)
inlineinherited
bool boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::transfer ( BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator  object,
PtrMapAdapter &  from 
)
inlineinherited
size_type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::transfer ( BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator  first,
BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator  last,
PtrMapAdapter &  from 
)
inlineinherited
BOOST_DEDUCED_TYPENAME boost::disable_if< boost::is_same< Range, BOOST_DEDUCED_TYPENAME PtrMapAdapter::iterator >, size_type >::type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::transfer ( const Range &  r,
PtrMapAdapter &  from 
)
inlineinherited
size_type boost::ptr_map_adapter< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::transfer ( PtrMapAdapter &  from)
inlineinherited
iterator boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::upper_bound ( const key_type x)
inlineinherited
const_iterator boost::ptr_container_detail::ptr_map_adapter_base< T, boost::unordered_map< Key, void *, Hash, Pred, Allocator > , CloneAllocator, Ordered >::upper_bound ( const key_type x) const
inlineinherited

Member Data Documentation

template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
U& boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::r
template<class Key, class T, class Hash = boost::hash<Key>, class Pred = std::equal_to<Key>, class CloneAllocator = heap_clone_allocator, class Allocator = std::allocator< std::pair<const Key,void*> >>
return* boost::ptr_unordered_map< Key, T, Hash, Pred, CloneAllocator, Allocator >::this

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