PMDK C++ bindings  1.9
This is the C++ bindings documentation for PMDK's libpmemobj.
Public Member Functions | List of all members
pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::bucket_accessor Class Reference

Bucket accessor is to find, rehash, acquire a lock, and access a bucket. More...

#include <libpmemobj++/container/concurrent_hash_map.hpp>

Inherits bucket_lock_type.

Public Member Functions

void acquire (concurrent_hash_map *base, const hashcode_type h, bool writer=false)
 Find a bucket by masked hashcode, optionally rehash, and acquire the lock.
 
bool is_writer () const
 Check whether bucket is locked for write.
 
bucket * get () const
 Get bucket pointer. More...
 
bucket * operator-> () const
 Overloaded arrow operator. More...
 

Detailed Description

template<typename Key, typename T, typename Hash, typename KeyEqual, typename MutexType, typename ScopedLockType>
class pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::bucket_accessor

Bucket accessor is to find, rehash, acquire a lock, and access a bucket.

Member Function Documentation

◆ get()

template<typename Key , typename T , typename Hash , typename KeyEqual , typename MutexType , typename ScopedLockType >
bucket* pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::bucket_accessor::get ( ) const
inline

Get bucket pointer.

Returns
pointer to the underlying bucket

◆ operator->()

template<typename Key , typename T , typename Hash , typename KeyEqual , typename MutexType , typename ScopedLockType >
bucket* pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::bucket_accessor::operator-> ( ) const
inline

Overloaded arrow operator.

Returns
pointer to the underlying bucket

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