Public Types | |
typedef _Ht::key_type | key_type |
typedef _Tp | data_type |
typedef _Tp | mapped_type |
typedef _Ht::value_type | value_type |
typedef _Ht::hasher | hasher |
typedef _Ht::key_equal | key_equal |
typedef _Ht::size_type | size_type |
typedef _Ht::difference_type | difference_type |
typedef _Ht::pointer | pointer |
typedef _Ht::const_pointer | const_pointer |
typedef _Ht::reference | reference |
typedef _Ht::const_reference | const_reference |
typedef _Ht::iterator | iterator |
typedef _Ht::const_iterator | const_iterator |
typedef _Ht::allocator_type | allocator_type |
Public Member Functions | |
hasher | hash_funct () const |
key_equal | key_eq () const |
allocator_type | get_allocator () const |
hash_map () | |
hash_map (size_type __n) | |
hash_map (size_type __n, const hasher &__hf) | |
hash_map (size_type __n, const hasher &__hf, const key_equal &__eql, const allocator_type &__a=allocator_type()) | |
template<class _InputIterator> | |
hash_map (_InputIterator __f, _InputIterator __l) | |
template<class _InputIterator> | |
hash_map (_InputIterator __f, _InputIterator __l, size_type __n) | |
template<class _InputIterator> | |
hash_map (_InputIterator __f, _InputIterator __l, size_type __n, const hasher &__hf) | |
template<class _InputIterator> | |
hash_map (_InputIterator __f, _InputIterator __l, size_type __n, const hasher &__hf, const key_equal &__eql, const allocator_type &__a=allocator_type()) | |
size_type | size () const |
size_type | max_size () const |
bool | empty () const |
void | swap (hash_map &__hs) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
pair< iterator, bool > | insert (const value_type &__obj) |
template<class _InputIterator> | |
void | insert (_InputIterator __f, _InputIterator __l) |
pair< iterator, bool > | insert_noresize (const value_type &__obj) |
iterator | find (const key_type &__key) |
const_iterator | find (const key_type &__key) const |
_Tp & | operator[] (const key_type &__key) |
size_type | count (const key_type &__key) const |
pair< iterator, iterator > | equal_range (const key_type &__key) |
pair< const_iterator, const_iterator > | equal_range (const key_type &__key) const |
size_type | erase (const key_type &__key) |
void | erase (iterator __it) |
void | erase (iterator __f, iterator __l) |
void | clear () |
void | resize (size_type __hint) |
size_type | bucket_count () const |
size_type | max_bucket_count () const |
size_type | elems_in_bucket (size_type __n) const |
Private Types | |
typedef hashtable< pair< const _Key, _Tp >, _Key, _HashFcn, _Select1st< pair< const _Key, _Tp > >, _EqualKey, _Alloc > | _Ht |
Private Attributes | |
_Ht | _M_ht |
Friends | |
template<class _K1, class _T1, class _HF, class _EqK, class _Al> | |
bool | operator== (const hash_map< _K1, _T1, _HF, _EqK, _Al > &, const hash_map< _K1, _T1, _HF, _EqK, _Al > &) |
Definition at line 92 of file ext/hash_map.
typedef hashtable<pair<const _Key, _Tp>,_Key, _HashFcn, _Select1st<pair<const _Key, _Tp> >, _EqualKey, _Alloc> __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::_Ht [private] |
Definition at line 97 of file ext/hash_map.
typedef _Ht::allocator_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::allocator_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 119 of file ext/hash_map.
typedef _Ht::const_iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::const_iterator |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 117 of file ext/hash_map.
typedef _Ht::const_pointer __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::const_pointer |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 112 of file ext/hash_map.
typedef _Ht::const_reference __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::const_reference |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 114 of file ext/hash_map.
typedef _Tp __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::data_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 103 of file ext/hash_map.
typedef _Ht::difference_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::difference_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 110 of file ext/hash_map.
typedef _Ht::hasher __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hasher |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 106 of file ext/hash_map.
typedef _Ht::iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::iterator |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 116 of file ext/hash_map.
typedef _Ht::key_equal __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::key_equal |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 107 of file ext/hash_map.
typedef _Ht::key_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::key_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 102 of file ext/hash_map.
typedef _Tp __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::mapped_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 104 of file ext/hash_map.
typedef _Ht::pointer __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::pointer |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 111 of file ext/hash_map.
typedef _Ht::reference __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::reference |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 113 of file ext/hash_map.
typedef _Ht::size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::size_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 109 of file ext/hash_map.
typedef _Ht::value_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::value_type |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 105 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | ) | [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 134 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | size_type | __n | ) | [inline, explicit] |
Definition at line 138 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | size_type | __n, | |
const hasher & | __hf | |||
) | [inline] |
Definition at line 141 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | size_type | __n, | |
const hasher & | __hf, | |||
const key_equal & | __eql, | |||
const allocator_type & | __a = allocator_type() | |||
) | [inline] |
Definition at line 144 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | _InputIterator | __f, | |
_InputIterator | __l | |||
) | [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 149 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | _InputIterator | __f, | |
_InputIterator | __l, | |||
size_type | __n | |||
) | [inline] |
Definition at line 154 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | _InputIterator | __f, | |
_InputIterator | __l, | |||
size_type | __n, | |||
const hasher & | __hf | |||
) | [inline] |
Definition at line 159 of file ext/hash_map.
__gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map | ( | _InputIterator | __f, | |
_InputIterator | __l, | |||
size_type | __n, | |||
const hasher & | __hf, | |||
const key_equal & | __eql, | |||
const allocator_type & | __a = allocator_type() | |||
) | [inline] |
Definition at line 165 of file ext/hash_map.
const_iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::begin | ( | ) | const [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 202 of file ext/hash_map.
iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::begin | ( | ) | [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 194 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::bucket_count | ( | ) | const [inline] |
Definition at line 268 of file ext/hash_map.
void __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::clear | ( | ) | [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 260 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::count | ( | const key_type & | __key | ) | const [inline] |
Definition at line 236 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::elems_in_bucket | ( | size_type | __n | ) | const [inline] |
Definition at line 276 of file ext/hash_map.
bool __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::empty | ( | ) | const [inline] |
Definition at line 181 of file ext/hash_map.
const_iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::end | ( | ) | const [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 206 of file ext/hash_map.
iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::end | ( | ) | [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 198 of file ext/hash_map.
pair<const_iterator, const_iterator> __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range | ( | const key_type & | __key | ) | const [inline] |
Definition at line 244 of file ext/hash_map.
pair<iterator, iterator> __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range | ( | const key_type & | __key | ) | [inline] |
Definition at line 240 of file ext/hash_map.
void __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::erase | ( | iterator | __f, | |
iterator | __l | |||
) | [inline] |
Definition at line 256 of file ext/hash_map.
void __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::erase | ( | iterator | __it | ) | [inline] |
Definition at line 252 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::erase | ( | const key_type & | __key | ) | [inline] |
Definition at line 248 of file ext/hash_map.
const_iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::find | ( | const key_type & | __key | ) | const [inline] |
Definition at line 228 of file ext/hash_map.
iterator __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::find | ( | const key_type & | __key | ) | [inline] |
Definition at line 224 of file ext/hash_map.
allocator_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::get_allocator | ( | ) | const [inline] |
Definition at line 130 of file ext/hash_map.
hasher __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_funct | ( | ) | const [inline] |
Definition at line 122 of file ext/hash_map.
void __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::insert | ( | _InputIterator | __f, | |
_InputIterator | __l | |||
) | [inline] |
Reimplemented in __gnu_debug_def::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >.
Definition at line 216 of file ext/hash_map.
pair<iterator, bool> __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::insert | ( | const value_type & | __obj | ) | [inline] |
Definition at line 211 of file ext/hash_map.
Referenced by std::insert_iterator< __gnu_cxx::hash_map< _Key, _Tp, _HashFn, _EqKey, _Alloc > >::operator=().
pair<iterator, bool> __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::insert_noresize | ( | const value_type & | __obj | ) | [inline] |
Definition at line 220 of file ext/hash_map.
key_equal __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::key_eq | ( | ) | const [inline] |
Definition at line 126 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::max_bucket_count | ( | ) | const [inline] |
Definition at line 272 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::max_size | ( | ) | const [inline] |
Definition at line 177 of file ext/hash_map.
_Tp& __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::operator[] | ( | const key_type & | __key | ) | [inline] |
Definition at line 232 of file ext/hash_map.
void __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::resize | ( | size_type | __hint | ) | [inline] |
Definition at line 264 of file ext/hash_map.
size_type __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::size | ( | ) | const [inline] |
Definition at line 173 of file ext/hash_map.
void __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::swap | ( | hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc > & | __hs | ) | [inline] |
bool operator== | ( | const hash_map< _K1, _T1, _HF, _EqK, _Al > & | , | |
const hash_map< _K1, _T1, _HF, _EqK, _Al > & | ||||
) | [friend] |
_Ht __gnu_cxx::hash_map< _Key, _Tp, _HashFcn, _EqualKey, _Alloc >::_M_ht [private] |
Definition at line 99 of file ext/hash_map.
Referenced by __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::begin(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::bucket_count(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::clear(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::count(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::elems_in_bucket(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::empty(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::end(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::equal_range(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::erase(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::find(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::get_allocator(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_funct(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::hash_map(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::insert(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::insert_noresize(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::key_eq(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::max_bucket_count(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::max_size(), __gnu_cxx::operator==(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::operator[](), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::resize(), __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::size(), and __gnu_cxx::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::swap().