PMDK C++ bindings  1.13.0-git107.g7e59f08f
This is the C++ bindings documentation for PMDK's libpmemobj.
pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::accessor Class Reference

Allows write access to elements and combines data access, locking, and garbage collection. More...

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

Inheritance diagram for pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::accessor:

Public Types

using value_type = typename concurrent_hash_map::value_type
 Type of value.
 

Public Member Functions

reference operator* () const
 Return reference to associated value in hash table.
 
pointer operator-> () const
 Return pointer to associated value in hash table.
 
bool empty () const
 
void release ()
 Release accessor. More...
 

Protected Attributes

node_ptr_t my_node
 
hashcode_type my_hash
 

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 >::accessor

Allows write access to elements and combines data access, locking, and garbage collection.

Member Function Documentation

◆ empty()

template<typename Key , typename T , typename Hash , typename KeyEqual , typename MutexType , typename ScopedLockType >
bool pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::const_accessor::empty ( ) const
inlineinherited
Returns
true if accessor does not hold any element, false otherwise.

◆ release()

template<typename Key , typename T , typename Hash , typename KeyEqual , typename MutexType , typename ScopedLockType >
void pmem::obj::concurrent_hash_map< Key, T, Hash, KeyEqual, MutexType, ScopedLockType >::const_accessor::release ( )
inlineinherited

Release accessor.

Cannot be called inside of a transaction.

Exceptions
transaction_scope_errorif called inside transaction

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