You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
6.4 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.4"/>
  7. <title>tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <!-- end header part -->
  16. <!-- Generated by Doxygen 1.8.4 -->
  17. <div id="navrow1" class="tabs">
  18. <ul class="tablist">
  19. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  20. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  21. <li><a href="modules.html"><span>Modules</span></a></li>
  22. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  23. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  24. <li><a href="files.html"><span>Files</span></a></li>
  25. </ul>
  26. </div>
  27. <div id="navrow2" class="tabs2">
  28. <ul class="tablist">
  29. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  30. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  31. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  32. </ul>
  33. </div>
  34. <div id="nav-path" class="navpath">
  35. <ul>
  36. <li class="navelem"><a class="el" href="a00222.html">tbb</a></li><li class="navelem"><b>interface5</b></li><li class="navelem"><a class="el" href="a00035.html">concurrent_hash_map</a></li><li class="navelem"><a class="el" href="a00026.html">bucket_accessor</a></li> </ul>
  37. </div>
  38. </div><!-- top -->
  39. <div class="header">
  40. <div class="summary">
  41. <a href="#pub-methods">Public Member Functions</a> &#124;
  42. <a href="a00336.html">List of all members</a> </div>
  43. <div class="headertitle">
  44. <div class="title">tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor Class Reference</div> </div>
  45. </div><!--header-->
  46. <div class="contents">
  47. <p>bucket accessor is to find, rehash, acquire a lock, and access a bucket
  48. <a href="a00026.html#details">More...</a></p>
  49. <p><code>#include &lt;concurrent_hash_map.h&gt;</code></p>
  50. <div class="dynheader">
  51. Inheritance diagram for tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor:</div>
  52. <div class="dyncontent">
  53. <div class="center">
  54. <img src="a00026.png" usemap="#tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor_map" alt=""/>
  55. <map id="tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor_map" name="tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor_map">
  56. </map>
  57. </div></div>
  58. <table class="memberdecls">
  59. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  60. Public Member Functions</h2></td></tr>
  61. <tr class="memitem:ab8dc51ef88ff53cc6cc4e40e2c2818eb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab8dc51ef88ff53cc6cc4e40e2c2818eb"></a>
  62. &#160;</td><td class="memItemRight" valign="bottom"><b>bucket_accessor</b> (<a class="el" href="a00035.html">concurrent_hash_map</a> *base, const hashcode_t h, bool writer=false)</td></tr>
  63. <tr class="separator:ab8dc51ef88ff53cc6cc4e40e2c2818eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  64. <tr class="memitem:a0d7d8f3d101bb18056b8e5d4d2c8b079"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d7d8f3d101bb18056b8e5d4d2c8b079"></a>
  65. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00026.html#a0d7d8f3d101bb18056b8e5d4d2c8b079">acquire</a> (<a class="el" href="a00035.html">concurrent_hash_map</a> *base, const hashcode_t h, bool writer=false)</td></tr>
  66. <tr class="memdesc:a0d7d8f3d101bb18056b8e5d4d2c8b079"><td class="mdescLeft">&#160;</td><td class="mdescRight">find a bucket by masked hashcode, optionally rehash, and acquire the lock <br/></td></tr>
  67. <tr class="separator:a0d7d8f3d101bb18056b8e5d4d2c8b079"><td class="memSeparator" colspan="2">&#160;</td></tr>
  68. <tr class="memitem:aaa8167e2961330435fd23eb92127805c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa8167e2961330435fd23eb92127805c"></a>
  69. bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00026.html#aaa8167e2961330435fd23eb92127805c">is_writer</a> ()</td></tr>
  70. <tr class="memdesc:aaa8167e2961330435fd23eb92127805c"><td class="mdescLeft">&#160;</td><td class="mdescRight">check whether bucket is locked for write <br/></td></tr>
  71. <tr class="separator:aaa8167e2961330435fd23eb92127805c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr class="memitem:a16e714a5e77dbf8daf81973df30722d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16e714a5e77dbf8daf81973df30722d4"></a>
  73. bucket *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00026.html#a16e714a5e77dbf8daf81973df30722d4">operator()</a> ()</td></tr>
  74. <tr class="memdesc:a16e714a5e77dbf8daf81973df30722d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">get bucket pointer <br/></td></tr>
  75. <tr class="separator:a16e714a5e77dbf8daf81973df30722d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. </table>
  77. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  78. <div class="textblock"><h3>template&lt;typename Key, typename T, typename HashCompare = tbb_hash_compare&lt;Key&gt;, typename A = tbb_allocator&lt;std::pair&lt;Key, T&gt; &gt;&gt;<br/>
  79. class tbb::interface5::concurrent_hash_map&lt; Key, T, HashCompare, A &gt;::bucket_accessor</h3>
  80. <p>bucket accessor is to find, rehash, acquire a lock, and access a bucket </p>
  81. </div><hr/>The documentation for this class was generated from the following file:<ul>
  82. <li>concurrent_hash_map.h</li>
  83. </ul>
  84. </div><!-- contents -->
  85. <hr>
  86. <p></p>
  87. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  88. <p></p>
  89. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  90. registered trademarks or trademarks of Intel Corporation or its
  91. subsidiaries in the United States and other countries.
  92. <p></p>
  93. * Other names and brands may be claimed as the property of others.