Apache Mesos
Public Member Functions | List of all members
hashmap< Key, Value, Hash, Equal > Class Template Reference

#include <hashmap.hpp>

Inheritance diagram for hashmap< Key, Value, Hash, Equal >:

Public Member Functions

 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
 

Constructor & Destructor Documentation

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 ( )
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 ( 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

Member Function Documentation

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>>
hashset<Key> hashmap< Key, Value, Hash, Equal >::keys ( ) 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>>
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: