openMSX
|
#include <hash_map.hh>
Public Types | |
using | key_type = Key |
using | mapped_type = Value |
using | value_type = std::pair< Key, Value > |
using | iterator = typename BaseType::iterator |
using | const_iterator = typename BaseType::const_iterator |
![]() | |
using | value_type = std::pair< Key, Value > |
using | iterator = Iter< hash_set, std::pair< Key, Value > > |
using | const_iterator = Iter< const hash_set, const std::pair< Key, Value > > |
Public Member Functions | |
hash_map (unsigned initialSize=0, Hasher hasher_=Hasher(), Equal equal_=Equal()) | |
hash_map (std::initializer_list< std::pair< Key, Value > > list) | |
template<typename K > | |
Value & | operator[] (K &&key) |
template<typename K , typename V > | |
std::pair< iterator, bool > | try_emplace (K &&key, V &&value) |
template<typename K , typename V > | |
std::pair< iterator, bool > | insert_or_assign (K &&key, V &&value) |
template<typename K > | |
bool | contains (const K &k) const |
![]() | |
hash_set (unsigned initialSize=0, hash_set_impl::ExtractFirst extract_=hash_set_impl::ExtractFirst(), std::hash< Key > hasher_=std::hash< Key >(), std::equal_to<> equal_=std::equal_to<>()) | |
hash_set (const hash_set &source) | |
hash_set (hash_set &&source) noexcept | |
hash_set (std::initializer_list< std::pair< Key, Value > > args) | |
~hash_set () | |
hash_set & | operator= (const hash_set &source) |
hash_set & | operator= (hash_set &&source) noexcept |
bool | contains (const K &key) const |
std::pair< iterator, bool > | insert (V &&value) |
std::pair< iterator, bool > | insert_noCapacityCheck (V &&value) |
iterator | insert_noDuplicateCheck (V &&value) |
iterator | insert_noCapacityCheck_noDuplicateCheck (V &&value) |
std::pair< iterator, bool > | emplace (Args &&... args) |
std::pair< iterator, bool > | emplace_noCapacityCheck (Args &&... args) |
iterator | emplace_noDuplicateCheck (Args &&... args) |
iterator | emplace_noCapacityCheck_noDuplicateCheck (Args &&... args) |
bool | erase (const K &key) |
void | erase (iterator it) |
bool | empty () const |
unsigned | size () const |
void | clear () |
iterator | find (const K &key) |
const_iterator | find (const K &key) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
unsigned | capacity () const |
void | reserve (unsigned count) |
Definition at line 31 of file hash_map.hh.
using hash_map< Key, Value, Hasher, Equal >::const_iterator = typename BaseType::const_iterator |
Definition at line 39 of file hash_map.hh.
using hash_map< Key, Value, Hasher, Equal >::iterator = typename BaseType:: iterator |
Definition at line 38 of file hash_map.hh.
using hash_map< Key, Value, Hasher, Equal >::key_type = Key |
Definition at line 35 of file hash_map.hh.
using hash_map< Key, Value, Hasher, Equal >::mapped_type = Value |
Definition at line 36 of file hash_map.hh.
using hash_map< Key, Value, Hasher, Equal >::value_type = std::pair<Key, Value> |
Definition at line 37 of file hash_map.hh.
|
inlineexplicit |
Definition at line 41 of file hash_map.hh.
|
inline |
Definition at line 48 of file hash_map.hh.
|
inline |
Definition at line 110 of file hash_map.hh.
References hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::end(), and hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::find().
Referenced by openmsx::InputArchiveBase2::addPointer().
|
inline |
Definition at line 99 of file hash_map.hh.
References hash_map< Key, Value, Hasher, Equal >::try_emplace().
Referenced by openmsx::SettingsConfig::setValueForSetting().
|
inline |
Definition at line 54 of file hash_map.hh.
References hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::end(), hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::find(), and hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::insert().
|
inline |
Definition at line 65 of file hash_map.hh.
References hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::allocMask, hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::elemCount, hash_set_impl::Pool< Value >::emplace(), hash_set_impl::Pool< Value >::get(), hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::grow(), hash_set_impl::Element< Value >::hash, hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::hasher, hash_set< Value, Extractor, Hasher, Equal >::invalidIndex, hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::pool, and hash_set< std::pair< Key, Value >, hash_set_impl::ExtractFirst, std::hash< Key >, std::equal_to<> >::table.
Referenced by hash_map< Key, Value, Hasher, Equal >::insert_or_assign().