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

Combines data access, locking, and garbage collection. More...

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

Inheritance diagram for pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::const_accessor:
Inheritance graph
[legend]
Collaboration diagram for pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::const_accessor:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

bool empty () const
 
void release ()
 Release accessor.
 
const_reference operator* () const
 
const_pointer operator-> () const
 
 const_accessor ()
 Create empty result.
 
 ~const_accessor ()
 Destroy result after releasing the underlying reference.
 

Detailed Description

template<typename Key, typename T, typename Hash, typename KeyEqual>
class pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::const_accessor

Combines data access, locking, and garbage collection.

Member Function Documentation

◆ empty()

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

◆ operator*()

template<typename Key, typename T, typename Hash, typename KeyEqual>
const_reference pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::const_accessor::operator* ( ) const
inline
Returns
reference to associated value in hash table.

◆ operator->()

template<typename Key, typename T, typename Hash, typename KeyEqual>
const_pointer pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::const_accessor::operator-> ( ) const
inline
Returns
pointer to associated value in hash table.

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