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.

144 lines
12 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::cache_aligned_allocator&lt; T &gt; Class Template 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"><a class="el" href="a00029.html">cache_aligned_allocator</a></li> </ul>
  37. </div>
  38. </div><!-- top -->
  39. <div class="header">
  40. <div class="summary">
  41. <a href="#nested-classes">Classes</a> &#124;
  42. <a href="#pub-types">Public Types</a> &#124;
  43. <a href="#pub-methods">Public Member Functions</a> &#124;
  44. <a href="a00250.html">List of all members</a> </div>
  45. <div class="headertitle">
  46. <div class="title">tbb::cache_aligned_allocator&lt; T &gt; Class Template Reference<div class="ingroups"><a class="el" href="a00236.html">Memory Allocation</a></div></div> </div>
  47. </div><!--header-->
  48. <div class="contents">
  49. <p>Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5.
  50. <a href="a00029.html#details">More...</a></p>
  51. <p><code>#include &lt;cache_aligned_allocator.h&gt;</code></p>
  52. <table class="memberdecls">
  53. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  54. Classes</h2></td></tr>
  55. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00104.html">rebind</a></td></tr>
  56. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  57. </table><table class="memberdecls">
  58. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  59. Public Types</h2></td></tr>
  60. <tr class="memitem:a7aba3042b0a1c934879d5299f0c20e7e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7aba3042b0a1c934879d5299f0c20e7e"></a>
  61. typedef <br class="typebreak"/>
  62. internal::allocator_type&lt; T &gt;<br class="typebreak"/>
  63. ::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
  64. <tr class="separator:a7aba3042b0a1c934879d5299f0c20e7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  65. <tr class="memitem:a6fabbb51a8fd7b270b94fc4d9548847b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fabbb51a8fd7b270b94fc4d9548847b"></a>
  66. typedef value_type *&#160;</td><td class="memItemRight" valign="bottom"><b>pointer</b></td></tr>
  67. <tr class="separator:a6fabbb51a8fd7b270b94fc4d9548847b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  68. <tr class="memitem:a35edf40f1bb3418f61e7d33c9f796824"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35edf40f1bb3418f61e7d33c9f796824"></a>
  69. typedef const value_type *&#160;</td><td class="memItemRight" valign="bottom"><b>const_pointer</b></td></tr>
  70. <tr class="separator:a35edf40f1bb3418f61e7d33c9f796824"><td class="memSeparator" colspan="2">&#160;</td></tr>
  71. <tr class="memitem:ac9f2f6c7ca74e1f3968d838eec2c4dcb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9f2f6c7ca74e1f3968d838eec2c4dcb"></a>
  72. typedef value_type &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>reference</b></td></tr>
  73. <tr class="separator:ac9f2f6c7ca74e1f3968d838eec2c4dcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  74. <tr class="memitem:af50d27e385aea41dbb8a9cd0734f1c84"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af50d27e385aea41dbb8a9cd0734f1c84"></a>
  75. typedef const value_type &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>const_reference</b></td></tr>
  76. <tr class="separator:af50d27e385aea41dbb8a9cd0734f1c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
  77. <tr class="memitem:a51eed827a49fd636d1d6c73908f9635b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51eed827a49fd636d1d6c73908f9635b"></a>
  78. typedef size_t&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
  79. <tr class="separator:a51eed827a49fd636d1d6c73908f9635b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. <tr class="memitem:a8bf47c52cdeee1bc0dcd410cc97faeec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8bf47c52cdeee1bc0dcd410cc97faeec"></a>
  81. typedef ptrdiff_t&#160;</td><td class="memItemRight" valign="bottom"><b>difference_type</b></td></tr>
  82. <tr class="separator:a8bf47c52cdeee1bc0dcd410cc97faeec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. </table><table class="memberdecls">
  84. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  85. Public Member Functions</h2></td></tr>
  86. <tr class="memitem:a11b1921251262137671599e99fbe8d4e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11b1921251262137671599e99fbe8d4e"></a>
  87. &#160;</td><td class="memItemRight" valign="bottom"><b>cache_aligned_allocator</b> (const <a class="el" href="a00029.html">cache_aligned_allocator</a> &amp;) throw ()</td></tr>
  88. <tr class="separator:a11b1921251262137671599e99fbe8d4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ab5a78cc56dcc0851117b3c88bb3af16a"><td class="memTemplParams" colspan="2"><a class="anchor" id="ab5a78cc56dcc0851117b3c88bb3af16a"></a>
  90. template&lt;typename U &gt; </td></tr>
  91. <tr class="memitem:ab5a78cc56dcc0851117b3c88bb3af16a"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><b>cache_aligned_allocator</b> (const <a class="el" href="a00029.html">cache_aligned_allocator</a>&lt; U &gt; &amp;) throw ()</td></tr>
  92. <tr class="separator:ab5a78cc56dcc0851117b3c88bb3af16a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a39aa68042abff22210f801eab98f6dfa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39aa68042abff22210f801eab98f6dfa"></a>
  94. pointer&#160;</td><td class="memItemRight" valign="bottom"><b>address</b> (reference x) const </td></tr>
  95. <tr class="separator:a39aa68042abff22210f801eab98f6dfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a5bd8fe0e5de894404c8b868b37a0fe53"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5bd8fe0e5de894404c8b868b37a0fe53"></a>
  97. const_pointer&#160;</td><td class="memItemRight" valign="bottom"><b>address</b> (const_reference x) const </td></tr>
  98. <tr class="separator:a5bd8fe0e5de894404c8b868b37a0fe53"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a99d05096f80877849cb31d80247e0f85"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99d05096f80877849cb31d80247e0f85"></a>
  100. pointer&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html#a99d05096f80877849cb31d80247e0f85">allocate</a> (size_type n, const void *hint=0)</td></tr>
  101. <tr class="memdesc:a99d05096f80877849cb31d80247e0f85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate space for n objects, starting on a cache/sector line. <br/></td></tr>
  102. <tr class="separator:a99d05096f80877849cb31d80247e0f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a7f7310e046c4b6b8618864de8e27a471"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f7310e046c4b6b8618864de8e27a471"></a>
  104. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html#a7f7310e046c4b6b8618864de8e27a471">deallocate</a> (pointer p, size_type)</td></tr>
  105. <tr class="memdesc:a7f7310e046c4b6b8618864de8e27a471"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free block of memory that starts on a cache line. <br/></td></tr>
  106. <tr class="separator:a7f7310e046c4b6b8618864de8e27a471"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a4b945b3180ea3dfe16dfa048f4591c6d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4b945b3180ea3dfe16dfa048f4591c6d"></a>
  108. size_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html#a4b945b3180ea3dfe16dfa048f4591c6d">max_size</a> () const throw ()</td></tr>
  109. <tr class="memdesc:a4b945b3180ea3dfe16dfa048f4591c6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Largest value for which method allocate might succeed. <br/></td></tr>
  110. <tr class="separator:a4b945b3180ea3dfe16dfa048f4591c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:ab316f80a66b991801b4ec4ea88b852d9"><td class="memTemplParams" colspan="2"><a class="anchor" id="ab316f80a66b991801b4ec4ea88b852d9"></a>
  112. template&lt;typename U , typename... Args&gt; </td></tr>
  113. <tr class="memitem:ab316f80a66b991801b4ec4ea88b852d9"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00029.html#ab316f80a66b991801b4ec4ea88b852d9">construct</a> (U *p, Args &amp;&amp;...args)</td></tr>
  114. <tr class="memdesc:ab316f80a66b991801b4ec4ea88b852d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy-construct value at location pointed to by p. <br/></td></tr>
  115. <tr class="separator:ab316f80a66b991801b4ec4ea88b852d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a5086d395a952eb13eb7d72bb0cb26937"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5086d395a952eb13eb7d72bb0cb26937"></a>
  117. void&#160;</td><td class="memItemRight" valign="bottom"><b>construct</b> (pointer p, const value_type &amp;value)</td></tr>
  118. <tr class="separator:a5086d395a952eb13eb7d72bb0cb26937"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:af2fd054d055403d4ea669fd3af661cc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2fd054d055403d4ea669fd3af661cc8"></a>
  120. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00029.html#af2fd054d055403d4ea669fd3af661cc8">destroy</a> (pointer p)</td></tr>
  121. <tr class="memdesc:af2fd054d055403d4ea669fd3af661cc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy value at location pointed to by p. <br/></td></tr>
  122. <tr class="separator:af2fd054d055403d4ea669fd3af661cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. </table>
  124. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  125. <div class="textblock"><h3>template&lt;typename T&gt;<br/>
  126. class tbb::cache_aligned_allocator&lt; T &gt;</h3>
  127. <p>Meets "allocator" requirements of ISO C++ Standard, Section 20.1.5. </p>
  128. <p>The members are ordered the same way they are in section 20.4.1 of the ISO C++ standard. </p>
  129. </div><hr/>The documentation for this class was generated from the following file:<ul>
  130. <li>cache_aligned_allocator.h</li>
  131. </ul>
  132. </div><!-- contents -->
  133. <hr>
  134. <p></p>
  135. Copyright &copy; 2005-2014 Intel Corporation. All Rights Reserved.
  136. <p></p>
  137. Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
  138. registered trademarks or trademarks of Intel Corporation or its
  139. subsidiaries in the United States and other countries.
  140. <p></p>
  141. * Other names and brands may be claimed as the property of others.