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

Serial bucket accessor used to access bucket in a serial operations. More...

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

Public Member Functions

bool is_writer () const
 This method is added for consistency with bucket_accessor class. More...
 
bool upgrade_to_writer () const
 This method is added for consistency with bucket_accessor class. More...
 
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>
class pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::serial_bucket_accessor

Serial bucket accessor used to access bucket in a serial operations.

Member Function Documentation

◆ get()

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

Get bucket pointer.

Returns
pointer to the bucket

◆ is_writer()

template<typename Key, typename T, typename Hash, typename KeyEqual>
bool pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::serial_bucket_accessor::is_writer ( ) const
inline

This method is added for consistency with bucket_accessor class.

Returns
Always returns true

◆ operator->()

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

Overloaded arrow operator.

Returns
pointer to the underlying bucket

◆ upgrade_to_writer()

template<typename Key, typename T, typename Hash, typename KeyEqual>
bool pmem::obj::experimental::concurrent_hash_map< Key, T, Hash, KeyEqual >::serial_bucket_accessor::upgrade_to_writer ( ) const
inline

This method is added for consistency with bucket_accessor class.

Returns
Always returns true

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