#include <hashmap.hpp>
|
| hashmap () |
|
| hashmap (const std::map< Key, Value > &map) |
|
| hashmap (std::map< Key, Value > &&map) |
|
| hashmap (std::initializer_list< std::pair< Key, Value >> list) |
|
bool | contains (const Key &key) const |
|
bool | contains_value (const Value &v) const |
|
void | put (const Key &key, Value &&value) |
|
void | put (const Key &key, const Value &value) |
|
Option< Value > | get (const Key &key) const |
|
hashset< Key > | keys () const |
|
std::vector< Value > | values () const |
|
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
hashmap< Key, Value, Hash, Equal >::hashmap |
( |
const std::map< Key, Value > & |
map | ) |
|
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
hashmap< Key, Value, Hash, Equal >::hashmap |
( |
std::map< Key, Value > && |
map | ) |
|
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
hashmap< Key, Value, Hash, Equal >::hashmap |
( |
std::initializer_list< std::pair< Key, Value >> |
list | ) |
|
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
bool hashmap< Key, Value, Hash, Equal >::contains |
( |
const Key & |
key | ) |
const |
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
bool hashmap< Key, Value, Hash, Equal >::contains_value |
( |
const Value & |
v | ) |
const |
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
Option<Value> hashmap< Key, Value, Hash, Equal >::get |
( |
const Key & |
key | ) |
const |
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
void hashmap< Key, Value, Hash, Equal >::put |
( |
const Key & |
key, |
|
|
Value && |
value |
|
) |
| |
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
void hashmap< Key, Value, Hash, Equal >::put |
( |
const Key & |
key, |
|
|
const Value & |
value |
|
) |
| |
|
inline |
template<typename Key, typename Value, typename Hash = typename std::conditional< std::is_enum<Key>::value, EnumClassHash, std::hash<Key>>::type, typename Equal = std::equal_to<Key>>
std::vector<Value> hashmap< Key, Value, Hash, Equal >::values |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: