|
libstdc++
|
#include <cc_ht_map_.hpp>
Public Types | |
| enum | { store_hash } |
| typedef _Alloc | allocator_type |
| typedef Comb_Hash_Fn | comb_hash_fn |
| typedef const_iterator_ | const_iterator |
| typedef traits_base::const_pointer | const_pointer |
| typedef traits_base::const_reference | const_reference |
| typedef _Alloc::difference_type | difference_type |
| typedef Eq_Fn | eq_fn |
| typedef Hash_Fn | hash_fn |
| typedef iterator_ | iterator |
| typedef traits_base::key_const_pointer | key_const_pointer |
| typedef traits_base::key_const_reference | key_const_reference |
| typedef traits_base::key_pointer | key_pointer |
| typedef traits_base::key_reference | key_reference |
| typedef traits_base::key_type | key_type |
| typedef traits_base::mapped_const_pointer | mapped_const_pointer |
| typedef traits_base::mapped_const_reference | mapped_const_reference |
| typedef traits_base::mapped_pointer | mapped_pointer |
| typedef traits_base::mapped_reference | mapped_reference |
| typedef traits_base::mapped_type | mapped_type |
| typedef __nothrowcopy::indicator | no_throw_indicator |
| typedef point_const_iterator_ | point_const_iterator |
| typedef point_iterator_ | point_iterator |
| typedef traits_base::pointer | pointer |
| typedef traits_base::reference | reference |
| typedef Resize_Policy | resize_policy |
| typedef _Alloc::size_type | size_type |
| typedef integral_constant< int, Store_Hash > | store_extra |
| typedef stored_data< value_type, size_type, Store_Hash > | stored_data_type |
| typedef traits_base::value_type | value_type |
Public Member Functions | |
| cc_ht_map (const cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy > &) | |
| cc_ht_map (const Hash_Fn &) | |
| cc_ht_map (const Hash_Fn &, const Eq_Fn &) | |
| cc_ht_map (const Hash_Fn &, const Eq_Fn &, const Comb_Hash_Fn &) | |
| cc_ht_map (const Hash_Fn &, const Eq_Fn &, const Comb_Hash_Fn &, const Resize_Policy &) | |
| iterator | begin () |
| const_iterator | begin () const |
| void | clear () |
| template<typename It > | |
| void | copy_from_range (It, It) |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| bool | erase (key_const_reference) |
| template<typename Pred > | |
| size_type | erase_if (Pred) |
| point_iterator | find (key_const_reference) |
| point_const_iterator | find (key_const_reference) const |
| point_iterator | find_end () |
| point_const_iterator | find_end () const |
| Comb_Hash_Fn & | get_comb_hash_fn () |
| const Comb_Hash_Fn & | get_comb_hash_fn () const |
| Eq_Fn & | get_eq_fn () |
| const Eq_Fn & | get_eq_fn () const |
| Hash_Fn & | get_hash_fn () |
| const Hash_Fn & | get_hash_fn () const |
| Resize_Policy & | get_resize_policy () |
| const Resize_Policy & | get_resize_policy () const |
| void | initialize () |
| std::pair< point_iterator, bool > | insert (const_reference r_val) |
| size_type | max_size () const |
| mapped_reference | operator[] (key_const_reference r_key) |
| size_type | size () const |
| void | swap (cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy > &) |
Public Attributes | |
| no_throw_indicator | m_no_throw_copies_indicator |
| store_extra | m_store_extra_indicator |
Friends | |
| class | const_iterator_ |
| class | iterator_ |
A collision-chaining hash-based container.
| Key | Key type. |
| Mapped | Map type. |
| Hash_Fn | Hashing functor. Default is __gnu_cxx::hash. |
| Eq_Fn | Equal functor. Default std::equal_to<Key> |
| _Alloc | Allocator type. |
| Store_Hash | If key type stores extra metadata. Defaults to false. |
| Comb_Hash_Fn | Combining hash functor. If Hash_Fn is not null_type, then this is the ranged-hash functor; otherwise, this is the range-hashing functor. XXX(See Design::Hash-Based Containers::Hash Policies.) Default direct_mask_range_hashing. |
| Resize_Policy | Resizes hash. Defaults to hash_standard_resize_policy, using hash_exponential_size_policy and hash_load_check_resize_trigger. |
Bases are: detail::hash_eq_fn, Resize_Policy, detail::ranged_hash_fn, detail::types_traits. (Optional: detail::debug_map_base.)
Definition at line 140 of file cc_ht_map_.hpp.
| typedef _Alloc __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::allocator_type |
Definition at line 194 of file cc_ht_map_.hpp.
| typedef Comb_Hash_Fn __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::comb_hash_fn |
Definition at line 199 of file cc_ht_map_.hpp.
| typedef const_iterator_ __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::const_iterator |
Definition at line 242 of file cc_ht_map_.hpp.
| typedef traits_base::const_pointer __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::const_pointer |
Definition at line 220 of file cc_ht_map_.hpp.
| typedef traits_base::const_reference __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::const_reference |
Definition at line 222 of file cc_ht_map_.hpp.
| typedef _Alloc::difference_type __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::difference_type |
Definition at line 196 of file cc_ht_map_.hpp.
| typedef Eq_Fn __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::eq_fn |
Definition at line 198 of file cc_ht_map_.hpp.
| typedef Hash_Fn __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::hash_fn |
Definition at line 197 of file cc_ht_map_.hpp.
| typedef iterator_ __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::iterator |
Definition at line 235 of file cc_ht_map_.hpp.
| typedef traits_base::key_const_pointer __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::key_const_pointer |
Definition at line 210 of file cc_ht_map_.hpp.
| typedef traits_base::key_const_reference __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::key_const_reference |
Definition at line 212 of file cc_ht_map_.hpp.
| typedef traits_base::key_pointer __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::key_pointer |
Definition at line 209 of file cc_ht_map_.hpp.
| typedef traits_base::key_reference __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::key_reference |
Definition at line 211 of file cc_ht_map_.hpp.
| typedef traits_base::key_type __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::key_type |
Definition at line 208 of file cc_ht_map_.hpp.
| typedef traits_base::mapped_const_pointer __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::mapped_const_pointer |
Definition at line 215 of file cc_ht_map_.hpp.
| typedef traits_base::mapped_const_reference __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::mapped_const_reference |
Definition at line 217 of file cc_ht_map_.hpp.
| typedef traits_base::mapped_pointer __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::mapped_pointer |
Definition at line 214 of file cc_ht_map_.hpp.
| typedef traits_base::mapped_reference __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::mapped_reference |
Definition at line 216 of file cc_ht_map_.hpp.
| typedef traits_base::mapped_type __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::mapped_type |
Definition at line 213 of file cc_ht_map_.hpp.
|
inherited |
Definition at line 189 of file types_traits.hpp.
| typedef point_const_iterator_ __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::point_const_iterator |
Definition at line 232 of file cc_ht_map_.hpp.
| typedef point_iterator_ __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::point_iterator |
Definition at line 225 of file cc_ht_map_.hpp.
| typedef traits_base::pointer __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::pointer |
Definition at line 219 of file cc_ht_map_.hpp.
| typedef traits_base::reference __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::reference |
Definition at line 221 of file cc_ht_map_.hpp.
| typedef Resize_Policy __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::resize_policy |
Definition at line 200 of file cc_ht_map_.hpp.
| typedef _Alloc::size_type __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::size_type |
Definition at line 195 of file cc_ht_map_.hpp.
|
inherited |
Definition at line 188 of file types_traits.hpp.
|
inherited |
Definition at line 181 of file types_traits.hpp.
| typedef traits_base::value_type __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::value_type |
Definition at line 218 of file cc_ht_map_.hpp.
| anonymous enum |
Value stores hash, true or false.
Definition at line 203 of file cc_ht_map_.hpp.
|
inline |
True if size() == 0.
| Comb_Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_comb_hash_fn | ( | ) |
Return current comb_hash_fn.
| const Comb_Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_comb_hash_fn | ( | ) | const |
Return current const comb_hash_fn.
| Eq_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_eq_fn | ( | ) |
Return current eq_fn.
| const Eq_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_eq_fn | ( | ) | const |
Return current const eq_fn.
| Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_hash_fn | ( | ) |
Return current hash_fn.
| const Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_hash_fn | ( | ) | const |
Return current const hash_fn.
| Resize_Policy & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_resize_policy | ( | ) |
Return current resize_policy.
| const Resize_Policy & __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::get_resize_policy | ( | ) | const |
Return current const resize_policy.
|
inline |
Definition at line 313 of file cc_ht_map_.hpp.
|
inline |
Definition at line 317 of file cc_ht_map_.hpp.
|
friend |
Definition at line 646 of file cc_ht_map_.hpp.
|
friend |
Definition at line 643 of file cc_ht_map_.hpp.
|
inherited |
Definition at line 192 of file types_traits.hpp.
|
inherited |
Definition at line 191 of file types_traits.hpp.