Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor Class Reference

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

#include <concurrent_hash_map.h>

Inheritance diagram for tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor:
Collaboration diagram for tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor:

Public Types

typedef
concurrent_hash_map::value_type 
value_type
 Type of value. More...
 
- Public Types inherited from tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::const_accessor
typedef const
concurrent_hash_map::value_type 
value_type
 Type of value. More...
 

Public Member Functions

reference operator* () const
 Return reference to associated value in hash table. More...
 
pointer operator-> () const
 Return pointer to associated value in hash table. More...
 
- Public Member Functions inherited from tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::const_accessor
bool empty () const
 True if result is empty. More...
 
void release ()
 Set to null. More...
 
const_reference operator* () const
 Return reference to associated value in hash table. More...
 
const_pointer operator-> () const
 Return pointer to associated value in hash table. More...
 
 const_accessor ()
 Create empty result. More...
 
 ~const_accessor ()
 Destroy result after releasing the underlying reference. More...
 

Additional Inherited Members

- Protected Member Functions inherited from tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::const_accessor
bool is_writer ()
 
- Protected Attributes inherited from tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::const_accessor
nodemy_node
 
hashcode_t my_hash
 

Detailed Description

template<typename Key, typename T, typename HashCompare = tbb_hash_compare<Key>, typename A = tbb_allocator<std::pair<const Key, T> >>
class tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor

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

Definition at line 812 of file concurrent_hash_map.h.

Member Typedef Documentation

template<typename Key, typename T, typename HashCompare = tbb_hash_compare<Key>, typename A = tbb_allocator<std::pair<const Key, T> >>
typedef concurrent_hash_map::value_type tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor::value_type

Type of value.

Definition at line 815 of file concurrent_hash_map.h.

Member Function Documentation

template<typename Key, typename T, typename HashCompare = tbb_hash_compare<Key>, typename A = tbb_allocator<std::pair<const Key, T> >>
reference tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor::operator* ( ) const
inline

Return reference to associated value in hash table.

Definition at line 818 of file concurrent_hash_map.h.

References __TBB_ASSERT, tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::const_accessor::my_node, and tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::node::value().

Referenced by tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor::operator->().

818  {
819  __TBB_ASSERT( this->my_node, "attempt to dereference empty accessor" );
820  return this->my_node->value();
821  }
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Definition: tbb_stddef.h:165

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Key, typename T, typename HashCompare = tbb_hash_compare<Key>, typename A = tbb_allocator<std::pair<const Key, T> >>
pointer tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor::operator-> ( ) const
inline

Return pointer to associated value in hash table.

Definition at line 824 of file concurrent_hash_map.h.

References tbb::interface5::concurrent_hash_map< Key, T, HashCompare, A >::accessor::operator*().

824  {
825  return &operator*();
826  }
reference operator*() const
Return reference to associated value in hash table.

Here is the call graph for this function:


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

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.