Intel Threading Building Blocks 2.1 for Open Source

Public Types | Public Member Functions | Friends

tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor Class Reference

Combines data access, locking, and garbage collection.

#include <concurrent_hash_map.h>

Inheritance diagram for tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor:
Inheritance graph
[legend]

List of all members.

Public Types

typedef const
concurrent_hash_map::value_type 
value_type
 Type of value.

Public Member Functions

 const_accessor ()
 Create empty result.
bool empty () const
 True if result is empty.
const_reference operator* () const
 Return reference to associated value in hash table.
const_pointer operator-> () const
 Return pointer to associated value in hash table.
void release ()
 Set to null.
 ~const_accessor ()
 Destroy result after releasing the underlying reference.

Friends

class accessor
class concurrent_hash_map< Key, T, HashCompare, Allocator >

Detailed Description

template<typename Key, typename T, typename HashCompare, typename Allocator>
class tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor

Definition at line 694 of file concurrent_hash_map.h.


Member Typedef Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
typedef const concurrent_hash_map::value_type tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::value_type

Constructor & Destructor Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::const_accessor (  )  [inline]

Definition at line 726 of file concurrent_hash_map.h.

: my_node(NULL) {}

template<typename Key , typename T , typename HashCompare , typename Allocator >
tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::~const_accessor (  )  [inline]

Definition at line 729 of file concurrent_hash_map.h.

                         : my_node(NULL) {}


Member Function Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
bool tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::empty (  )  const [inline]

Definition at line 704 of file concurrent_hash_map.h.

template<typename Key , typename T , typename HashCompare , typename Allocator >
const_reference tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::operator* (  )  const [inline]
template<typename Key , typename T , typename HashCompare , typename Allocator >
const_pointer tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::operator-> (  )  const [inline]
template<typename Key , typename T , typename HashCompare , typename Allocator >
void tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::const_accessor::release (  )  [inline]

Definition at line 707 of file concurrent_hash_map.h.

                           {return !my_node;}

        void release() {
            if( my_node ) {


Friends And Related Function Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
friend class accessor [friend]

Definition at line 696 of file concurrent_hash_map.h.

template<typename Key , typename T , typename HashCompare , typename Allocator >
friend class concurrent_hash_map< Key, T, HashCompare, Allocator > [friend]

Definition at line 695 of file concurrent_hash_map.h.


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

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

Licensed under the GNU General Public License 2 with the runtime exception.

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.