Class ShardedMap
template <typename Key, typename T, class Hash>
ClassList > ShardedMap
Classes
Type |
Name |
class |
Iterator <typename ShardedMapPtr, class map_iterator>
|
Public Types
Type |
Name |
typedef std::unordered_map< Key, T, Hash > |
Map
|
typedef Iterator< const ShardedMap *, typename Map::const_iterator > |
const_iterator
|
typedef typename Map::hasher |
hasher
|
typedef Iterator< ShardedMap *, typename Map::iterator > |
iterator
|
typedef typename Map::value_type |
value_type
|
Public Functions
Type |
Name |
|
ShardedMap (size_t capacity, size_t num_shards)
|
|
ShardedMap (size_t capacity=100)
|
iterator |
begin ()
|
const_iterator |
begin () const
|
size_t |
count (const Key & key) const
|
iterator |
end ()
|
const_iterator |
end () const
|
void |
erase (iterator & pos)
|
iterator |
find (const Key & key)
|
std::pair< iterator, bool > |
insert (const value_type & val)
|
size_t |
size () const
|
Public Types Documentation
typedef Map
using ShardedMap< Key, T, Hash >::Map = std::unordered_map<Key, T, Hash>;
typedef const_iterator
using ShardedMap< Key, T, Hash >::const_iterator = Iterator<const ShardedMap*, typename Map::const_iterator>;
typedef hasher
using ShardedMap< Key, T, Hash >::hasher = typename Map::hasher;
typedef iterator
using ShardedMap< Key, T, Hash >::iterator = Iterator<ShardedMap*, typename Map::iterator>;
typedef value_type
using ShardedMap< Key, T, Hash >::value_type = typename Map::value_type;
Public Functions Documentation
function ShardedMap [1/2]
inline ShardedMap::ShardedMap (
size_t capacity,
size_t num_shards
)
function ShardedMap [2/2]
inline explicit ShardedMap::ShardedMap (
size_t capacity=100
)
function begin [1/2]
inline iterator ShardedMap::begin ()
function begin [2/2]
inline const_iterator ShardedMap::begin () const
function count
inline size_t ShardedMap::count (
const Key & key
) const
function end [1/2]
inline iterator ShardedMap::end ()
function end [2/2]
inline const_iterator ShardedMap::end () const
function erase
inline void ShardedMap::erase (
iterator & pos
)
function find
inline iterator ShardedMap::find (
const Key & key
)
function insert
inline std::pair< iterator, bool > ShardedMap::insert (
const value_type & val
)
function size
inline size_t ShardedMap::size () const
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/profiler/sharded_map.h