Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::ConcurrentHashMap< Key, T, Cmp, Shards >::Shard Struct Reference
Collaboration diagram for Aleph::ConcurrentHashMap< Key, T, Cmp, Shards >::Shard:
[legend]

Public Member Functions

 Shard (Hash_Fct_Ptr hash_fct, const Cmp &cmp)
 

Public Attributes

std::shared_mutex mutex
 
Map map
 

Detailed Description

template<typename Key, typename T, class Cmp = Aleph::equal_to<Key>, size_t Shards = 64>
struct Aleph::ConcurrentHashMap< Key, T, Cmp, Shards >::Shard

Definition at line 173 of file tpl_concurrent_hash_map.H.

Constructor & Destructor Documentation

◆ Shard()

template<typename Key , typename T , class Cmp = Aleph::equal_to<Key>, size_t Shards = 64>
Aleph::ConcurrentHashMap< Key, T, Cmp, Shards >::Shard::Shard ( Hash_Fct_Ptr  hash_fct,
const Cmp &  cmp 
)
inline

Definition at line 178 of file tpl_concurrent_hash_map.H.

Member Data Documentation

◆ map

template<typename Key , typename T , class Cmp = Aleph::equal_to<Key>, size_t Shards = 64>
Map Aleph::ConcurrentHashMap< Key, T, Cmp, Shards >::Shard::map

Definition at line 176 of file tpl_concurrent_hash_map.H.

◆ mutex

template<typename Key , typename T , class Cmp = Aleph::equal_to<Key>, size_t Shards = 64>
std::shared_mutex Aleph::ConcurrentHashMap< Key, T, Cmp, Shards >::Shard::mutex
mutable

Definition at line 175 of file tpl_concurrent_hash_map.H.


The documentation for this struct was generated from the following file: