Intel Threading Building Blocks 2.1 for Open Source

Public Member Functions | Public Attributes

tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node Struct Reference

#include <concurrent_hash_map.h>

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

List of all members.

Public Member Functions

 node (const Key &key)
 node (const Key &key, const T &t)
void operator delete (void *ptr, node_allocator_type &a)
void * operator new (size_t, node_allocator_type &a)

Public Attributes

value_type item

Detailed Description

template<typename Key, typename T, typename HashCompare, typename Allocator>
struct tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node

Definition at line 601 of file concurrent_hash_map.h.


Constructor & Destructor Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node::node ( const Key &  key  )  [inline]

Definition at line 603 of file concurrent_hash_map.h.

: public node_base {

template<typename Key , typename T , typename HashCompare , typename Allocator >
tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node::node ( const Key &  key,
const T t 
) [inline]

Definition at line 604 of file concurrent_hash_map.h.

: public node_base {


Member Function Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
void tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node::operator delete ( void *  ptr,
node_allocator_type a 
) [inline]

Definition at line 613 of file concurrent_hash_map.h.

{return a.deallocate(static_cast<node*>(ptr),1); }

template<typename Key , typename T , typename HashCompare , typename Allocator >
void* tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node::operator new ( size_t  ,
node_allocator_type a 
) [inline]

Definition at line 606 of file concurrent_hash_map.h.

                               : item(key, T()) {}
        node( const Key &key, const T &t ) : item(key, t) {}
        // exception-safe allocation, see C++ Standard 2003, clause 5.3.4p17
        void *operator new( size_t /*size*/, node_allocator_type &a ) {
            void *ptr = a.allocate(1);


Member Data Documentation

template<typename Key , typename T , typename HashCompare , typename Allocator >
value_type tbb::interface4::concurrent_hash_map< Key, T, HashCompare, Allocator >::node::item

The documentation for this struct 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.