Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::node_handle< Key, Key, Node, Allocator > Class Template Reference

#include <_node_handle_impl.h>

Inheritance diagram for tbb::internal::node_handle< Key, Key, Node, Allocator >:
Collaboration diagram for tbb::internal::node_handle< Key, Key, Node, Allocator >:

Public Types

typedef Key value_type
 
typedef base_type::allocator_type allocator_type
 
- Public Types inherited from tbb::internal::node_handle_base< Key, Node, Allocator >
typedef Allocator allocator_type
 

Public Member Functions

 node_handle ()
 
value_typevalue () const
 
- Public Member Functions inherited from tbb::internal::node_handle_base< Key, Node, Allocator >
 node_handle_base ()
 
 node_handle_base (node_handle_base &&nh)
 
bool empty () const
 
 operator bool () const
 
 ~node_handle_base ()
 
node_handle_baseoperator= (node_handle_base &&nh)
 
void swap (node_handle_base &nh)
 
allocator_type get_allocator () const
 

Private Types

typedef node_handle_base< Key, Node, Allocator > base_type
 

Private Member Functions

 node_handle (typename base_type::node *n)
 

Friends

template<typename T , typename A >
class tbb::interface5::internal::split_ordered_list
 
template<typename Traits >
class tbb::interface5::internal::concurrent_unordered_base
 
template<typename Traits >
class tbb::interface10::internal::concurrent_skip_list
 

Additional Inherited Members

- Protected Types inherited from tbb::internal::node_handle_base< Key, Node, Allocator >
typedef Node node
 
typedef tbb::internal::allocator_traits< allocator_typetraits_type
 
- Protected Member Functions inherited from tbb::internal::node_handle_base< Key, Node, Allocator >
 node_handle_base (node *n)
 
void internal_destroy ()
 
void deactivate ()
 
- Protected Attributes inherited from tbb::internal::node_handle_base< Key, Node, Allocator >
nodemy_node
 
allocator_type my_allocator
 

Detailed Description

template<typename Key, typename Node, typename Allocator>
class tbb::internal::node_handle< Key, Key, Node, Allocator >

Definition at line 138 of file _node_handle_impl.h.

Member Typedef Documentation

◆ allocator_type

template<typename Key , typename Node , typename Allocator >
typedef base_type::allocator_type tbb::internal::node_handle< Key, Key, Node, Allocator >::allocator_type

Definition at line 142 of file _node_handle_impl.h.

◆ base_type

template<typename Key , typename Node , typename Allocator >
typedef node_handle_base<Key, Node, Allocator> tbb::internal::node_handle< Key, Key, Node, Allocator >::base_type
private

Definition at line 139 of file _node_handle_impl.h.

◆ value_type

template<typename Key , typename Node , typename Allocator >
typedef Key tbb::internal::node_handle< Key, Key, Node, Allocator >::value_type

Definition at line 141 of file _node_handle_impl.h.

Constructor & Destructor Documentation

◆ node_handle() [1/2]

template<typename Key , typename Node , typename Allocator >
tbb::internal::node_handle< Key, Key, Node, Allocator >::node_handle ( )
inline

Definition at line 144 of file _node_handle_impl.h.

144 : base_type() {}
node_handle_base< Key, Node, Allocator > base_type

◆ node_handle() [2/2]

template<typename Key , typename Node , typename Allocator >
tbb::internal::node_handle< Key, Key, Node, Allocator >::node_handle ( typename base_type::node n)
inlineprivate

Definition at line 161 of file _node_handle_impl.h.

161 : base_type(n) {}
node_handle_base< Key, Node, Allocator > base_type

Member Function Documentation

◆ value()

template<typename Key , typename Node , typename Allocator >
value_type& tbb::internal::node_handle< Key, Key, Node, Allocator >::value ( ) const
inline

Definition at line 146 of file _node_handle_impl.h.

146  {
147  __TBB_ASSERT(!this->empty(), "Cannot get value from the empty node_type object");
148  return *const_cast<value_type*>(&(this->my_node->value()));
149  }
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Definition: tbb_stddef.h:165

References __TBB_ASSERT, tbb::internal::node_handle_base< Value, Node, Allocator >::empty(), and tbb::internal::node_handle_base< Value, Node, Allocator >::my_node.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ tbb::interface10::internal::concurrent_skip_list

template<typename Key , typename Node , typename Allocator >
template<typename Traits >
friend class tbb::interface10::internal::concurrent_skip_list
friend

Definition at line 159 of file _node_handle_impl.h.

◆ tbb::interface5::internal::concurrent_unordered_base

template<typename Key , typename Node , typename Allocator >
template<typename Traits >
friend class tbb::interface5::internal::concurrent_unordered_base
friend

Definition at line 156 of file _node_handle_impl.h.

◆ tbb::interface5::internal::split_ordered_list

template<typename Key , typename Node , typename Allocator >
template<typename T , typename A >
friend class tbb::interface5::internal::split_ordered_list
friend

Definition at line 153 of file _node_handle_impl.h.


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.