_s_t_l_temp_allocator_8h_source.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=11"/>
  6. <meta name="generator" content="Doxygen 1.12.0"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Jolt Physics: Jolt/Core/STLTempAllocator.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="clipboard.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript" src="resize.js"></script>
  17. <script type="text/javascript" src="cookie.js"></script>
  18. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  19. <script type="text/javascript" src="search/searchdata.js"></script>
  20. <script type="text/javascript" src="search/search.js"></script>
  21. <script type="text/x-mathjax-config">
  22. MathJax.Hub.Config({
  23. extensions: ["tex2jax.js"],
  24. jax: ["input/TeX","output/HTML-CSS"],
  25. });
  26. </script>
  27. <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
  28. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  29. </head>
  30. <body>
  31. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  32. <div id="titlearea">
  33. <table cellspacing="0" cellpadding="0">
  34. <tbody>
  35. <tr id="projectrow">
  36. <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
  37. <td id="projectalign">
  38. <div id="projectname">Jolt Physics
  39. </div>
  40. <div id="projectbrief">A multi core friendly Game Physics Engine</div>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <!-- end header part -->
  47. <!-- Generated by Doxygen 1.12.0 -->
  48. <script type="text/javascript">
  49. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  50. var searchBox = new SearchBox("searchBox", "search/",'.html');
  51. /* @license-end */
  52. </script>
  53. <script type="text/javascript">
  54. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  55. $(function() { codefold.init(0); });
  56. /* @license-end */
  57. </script>
  58. <script type="text/javascript" src="menudata.js"></script>
  59. <script type="text/javascript" src="menu.js"></script>
  60. <script type="text/javascript">
  61. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  62. $(function() {
  63. initMenu('',true,false,'search.php','Search',true);
  64. $(function() { init_search(); });
  65. });
  66. /* @license-end */
  67. </script>
  68. <div id="main-nav"></div>
  69. </div><!-- top -->
  70. <div id="side-nav" class="ui-resizable side-nav-resizable">
  71. <div id="nav-tree">
  72. <div id="nav-tree-contents">
  73. <div id="nav-sync" class="sync"></div>
  74. </div>
  75. </div>
  76. <div id="splitbar" style="-moz-user-select:none;"
  77. class="ui-resizable-handle">
  78. </div>
  79. </div>
  80. <script type="text/javascript">
  81. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  82. $(function(){initNavTree('_s_t_l_temp_allocator_8h_source.html',''); initResizable(true); });
  83. /* @license-end */
  84. </script>
  85. <div id="doc-content">
  86. <!-- window showing the filter options -->
  87. <div id="MSearchSelectWindow"
  88. onmouseover="return searchBox.OnSearchSelectShow()"
  89. onmouseout="return searchBox.OnSearchSelectHide()"
  90. onkeydown="return searchBox.OnSearchSelectKey(event)">
  91. </div>
  92. <!-- iframe showing the search results (closed by default) -->
  93. <div id="MSearchResultsWindow">
  94. <div id="MSearchResults">
  95. <div class="SRPage">
  96. <div id="SRIndex">
  97. <div id="SRResults"></div>
  98. <div class="SRStatus" id="Loading">Loading...</div>
  99. <div class="SRStatus" id="Searching">Searching...</div>
  100. <div class="SRStatus" id="NoMatches">No Matches</div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="header">
  106. <div class="headertitle"><div class="title">STLTempAllocator.h</div></div>
  107. </div><!--header-->
  108. <div class="contents">
  109. <a href="_s_t_l_temp_allocator_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)</span></div>
  110. <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// SPDX-FileCopyrightText: 2021 Jorrit Rouwe</span></div>
  111. <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// SPDX-License-Identifier: MIT</span></div>
  112. <div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
  113. <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#pragma once</span></div>
  114. <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
  115. <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;<a class="code" href="_temp_allocator_8h.html">Jolt/Core/TempAllocator.h</a>&gt;</span></div>
  116. <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
  117. <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><a class="code hl_define" href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div>
  118. <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
  119. <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
  120. <div class="foldopen" id="foldopen00013" data-start="{" data-end="};">
  121. <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html"> 13</a></span><span class="keyword">class </span><a class="code hl_class" href="class_s_t_l_temp_allocator.html">STLTempAllocator</a></div>
  122. <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span>{</div>
  123. <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">public</span>:</div>
  124. <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#af1444dc5e5d16500e2e638e41f44e72f"> 16</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#af1444dc5e5d16500e2e638e41f44e72f">value_type</a> = T;</div>
  125. <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
  126. <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a1768c0cbf15081f1ce4a9108e482c564"> 19</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a1768c0cbf15081f1ce4a9108e482c564">pointer</a> = T *;</div>
  127. <div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#abdc3ba35d2c24ea49e434a22eb3473da"> 20</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#abdc3ba35d2c24ea49e434a22eb3473da">const_pointer</a> = <span class="keyword">const</span> T *;</div>
  128. <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
  129. <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a3f90b804920b11315e04932909db7b76"> 24</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a3f90b804920b11315e04932909db7b76">reference</a> = T &amp;;</div>
  130. <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#ab5efc1d80f0e3c255c1a916474a0920d"> 25</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#ab5efc1d80f0e3c255c1a916474a0920d">const_reference</a> = <span class="keyword">const</span> T &amp;;</div>
  131. <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
  132. <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#adffaee1b8b044dae6b8390cf013eced8"> 27</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#adffaee1b8b044dae6b8390cf013eced8">size_type</a> = size_t;</div>
  133. <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a53ff9f68e553b59d0a80e9115d3d8205"> 28</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a53ff9f68e553b59d0a80e9115d3d8205">difference_type</a> = ptrdiff_t;</div>
  134. <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
  135. <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a130ebd28aed525b631e26371c7e851bb"> 31</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a130ebd28aed525b631e26371c7e851bb">is_always_equal</a> = std::false_type;</div>
  136. <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
  137. <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a96f2c3cf503f75f1deb7b97ce2d677e2"> 34</a></span> <span class="keyword">inline</span> <a class="code hl_function" href="class_s_t_l_temp_allocator.html#a96f2c3cf503f75f1deb7b97ce2d677e2">STLTempAllocator</a>(<a class="code hl_class" href="class_temp_allocator.html">TempAllocator</a> &amp;inAllocator) : mAllocator(inAllocator) { }</div>
  138. <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
  139. <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T2&gt;</div>
  140. <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a584223fe52d48aafd4ab2b9f3d30ecd8"> 38</a></span> <span class="keyword">inline</span> <span class="keyword">explicit</span> <a class="code hl_function" href="class_s_t_l_temp_allocator.html#a584223fe52d48aafd4ab2b9f3d30ecd8">STLTempAllocator</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_s_t_l_temp_allocator.html">STLTempAllocator&lt;T2&gt;</a> &amp;inRHS) : mAllocator(inRHS.<a class="code hl_function" href="class_s_t_l_temp_allocator.html#ae25b34d6dc7cb58c9108f4ba197353f2">GetAllocator</a>()) { }</div>
  141. <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
  142. <div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
  143. <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a5e6754289f3e5c92f7d3a94aaf4d9488"> 41</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a1768c0cbf15081f1ce4a9108e482c564">pointer</a> <a class="code hl_function" href="class_s_t_l_temp_allocator.html#a5e6754289f3e5c92f7d3a94aaf4d9488">allocate</a>(<a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#adffaee1b8b044dae6b8390cf013eced8">size_type</a> inN)</div>
  144. <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
  145. <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">return</span> <a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a1768c0cbf15081f1ce4a9108e482c564">pointer</a>(mAllocator.<a class="code hl_function" href="class_temp_allocator.html#aa62f890910ee965efea7244953f3c65e">Allocate</a>(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a>(inN * <span class="keyword">sizeof</span>(<a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#af1444dc5e5d16500e2e638e41f44e72f">value_type</a>))));</div>
  146. <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
  147. </div>
  148. <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
  149. <div class="foldopen" id="foldopen00047" data-start="{" data-end="}">
  150. <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#ac9000fbc979ae4fc5f7bd9f978781128"> 47</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_s_t_l_temp_allocator.html#ac9000fbc979ae4fc5f7bd9f978781128">deallocate</a>(<a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#a1768c0cbf15081f1ce4a9108e482c564">pointer</a> inPointer, <a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#adffaee1b8b044dae6b8390cf013eced8">size_type</a> inN)</div>
  151. <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> {</div>
  152. <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> mAllocator.<a class="code hl_function" href="class_temp_allocator.html#a1d9399cbf93c253a7f03d8ffea249bfe">Free</a>(inPointer, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a>(inN * <span class="keyword">sizeof</span>(<a class="code hl_typedef" href="class_s_t_l_temp_allocator.html#af1444dc5e5d16500e2e638e41f44e72f">value_type</a>)));</div>
  153. <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> }</div>
  154. </div>
  155. <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
  156. <div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
  157. <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#afe0ff9b69805be725b54c35f238f8c6f"> 53</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_t_l_temp_allocator.html#afe0ff9b69805be725b54c35f238f8c6f">operator == </a>(<span class="keyword">const</span> <a class="code hl_class" href="class_s_t_l_temp_allocator.html">STLTempAllocator&lt;T&gt;</a> &amp;inRHS)<span class="keyword"> const</span></div>
  158. <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keyword"> </span>{</div>
  159. <div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">return</span> &amp;mAllocator == &amp;inRHS.mAllocator;</div>
  160. <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
  161. </div>
  162. <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
  163. <div class="foldopen" id="foldopen00058" data-start="{" data-end="}">
  164. <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#a523ba43212ea2640c688da9b14366742"> 58</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_t_l_temp_allocator.html#a523ba43212ea2640c688da9b14366742">operator != </a>(<span class="keyword">const</span> <a class="code hl_class" href="class_s_t_l_temp_allocator.html">STLTempAllocator&lt;T&gt;</a> &amp;inRHS)<span class="keyword"> const</span></div>
  165. <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keyword"> </span>{</div>
  166. <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">return</span> &amp;mAllocator != &amp;inRHS.mAllocator;</div>
  167. <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
  168. </div>
  169. <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
  170. <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T2&gt;</div>
  171. <div class="foldopen" id="foldopen00065" data-start="{" data-end="};">
  172. <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="struct_s_t_l_temp_allocator_1_1rebind.html"> 65</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="struct_s_t_l_temp_allocator_1_1rebind.html">rebind</a></div>
  173. <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> {</div>
  174. <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="struct_s_t_l_temp_allocator_1_1rebind.html#abfdedf8e13231a72e1f193b5f70853dd"> 67</a></span> <span class="keyword">using </span><a class="code hl_class" href="class_s_t_l_temp_allocator.html">other</a> = <a class="code hl_class" href="class_s_t_l_temp_allocator.html">STLTempAllocator&lt;T2&gt;</a>;</div>
  175. <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> };</div>
  176. </div>
  177. <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
  178. <div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
  179. <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="class_s_t_l_temp_allocator.html#ae25b34d6dc7cb58c9108f4ba197353f2"> 71</a></span> <a class="code hl_class" href="class_temp_allocator.html">TempAllocator</a> &amp; <a class="code hl_function" href="class_s_t_l_temp_allocator.html#ae25b34d6dc7cb58c9108f4ba197353f2">GetAllocator</a>()<span class="keyword"> const</span></div>
  180. <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="keyword"> </span>{</div>
  181. <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> mAllocator;</div>
  182. <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
  183. </div>
  184. <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
  185. <div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keyword">private</span>:</div>
  186. <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_class" href="class_temp_allocator.html">TempAllocator</a> &amp; mAllocator;</div>
  187. <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>};</div>
  188. </div>
  189. <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
  190. <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><a class="code hl_define" href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div>
  191. <div class="ttc" id="a_core_8h_html_a69aa29b598b851b0640aa225a9e5d61d"><div class="ttname"><a href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a></div><div class="ttdeci">unsigned int uint</div><div class="ttdef"><b>Definition</b> Core.h:500</div></div>
  192. <div class="ttc" id="a_core_8h_html_a73da8725998b00321a9db341202d650d"><div class="ttname"><a href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div><div class="ttdeci">#define JPH_NAMESPACE_END</div><div class="ttdef"><b>Definition</b> Core.h:425</div></div>
  193. <div class="ttc" id="a_core_8h_html_ad14098b68b8c44ea6112601031268405"><div class="ttname"><a href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div><div class="ttdeci">#define JPH_NAMESPACE_BEGIN</div><div class="ttdef"><b>Definition</b> Core.h:419</div></div>
  194. <div class="ttc" id="a_temp_allocator_8h_html"><div class="ttname"><a href="_temp_allocator_8h.html">TempAllocator.h</a></div></div>
  195. <div class="ttc" id="aclass_s_t_l_temp_allocator_html"><div class="ttname"><a href="class_s_t_l_temp_allocator.html">STLTempAllocator</a></div><div class="ttdoc">STL allocator that wraps around TempAllocator.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:14</div></div>
  196. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a130ebd28aed525b631e26371c7e851bb"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a130ebd28aed525b631e26371c7e851bb">STLTempAllocator::is_always_equal</a></div><div class="ttdeci">std::false_type is_always_equal</div><div class="ttdoc">The allocator is not stateless (depends on the temp allocator)</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:31</div></div>
  197. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a1768c0cbf15081f1ce4a9108e482c564"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a1768c0cbf15081f1ce4a9108e482c564">STLTempAllocator::pointer</a></div><div class="ttdeci">T * pointer</div><div class="ttdoc">Pointer to type.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:19</div></div>
  198. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a3f90b804920b11315e04932909db7b76"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a3f90b804920b11315e04932909db7b76">STLTempAllocator::reference</a></div><div class="ttdeci">T &amp; reference</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:24</div></div>
  199. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a523ba43212ea2640c688da9b14366742"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a523ba43212ea2640c688da9b14366742">STLTempAllocator::operator!=</a></div><div class="ttdeci">bool operator!=(const STLTempAllocator&lt; T &gt; &amp;inRHS) const</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:58</div></div>
  200. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a53ff9f68e553b59d0a80e9115d3d8205"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a53ff9f68e553b59d0a80e9115d3d8205">STLTempAllocator::difference_type</a></div><div class="ttdeci">ptrdiff_t difference_type</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:28</div></div>
  201. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a584223fe52d48aafd4ab2b9f3d30ecd8"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a584223fe52d48aafd4ab2b9f3d30ecd8">STLTempAllocator::STLTempAllocator</a></div><div class="ttdeci">STLTempAllocator(const STLTempAllocator&lt; T2 &gt; &amp;inRHS)</div><div class="ttdoc">Constructor from other allocator.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:38</div></div>
  202. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a5e6754289f3e5c92f7d3a94aaf4d9488"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a5e6754289f3e5c92f7d3a94aaf4d9488">STLTempAllocator::allocate</a></div><div class="ttdeci">pointer allocate(size_type inN)</div><div class="ttdoc">Allocate memory.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:41</div></div>
  203. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_a96f2c3cf503f75f1deb7b97ce2d677e2"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#a96f2c3cf503f75f1deb7b97ce2d677e2">STLTempAllocator::STLTempAllocator</a></div><div class="ttdeci">STLTempAllocator(TempAllocator &amp;inAllocator)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:34</div></div>
  204. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_ab5efc1d80f0e3c255c1a916474a0920d"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#ab5efc1d80f0e3c255c1a916474a0920d">STLTempAllocator::const_reference</a></div><div class="ttdeci">const T &amp; const_reference</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:25</div></div>
  205. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_abdc3ba35d2c24ea49e434a22eb3473da"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#abdc3ba35d2c24ea49e434a22eb3473da">STLTempAllocator::const_pointer</a></div><div class="ttdeci">const T * const_pointer</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:20</div></div>
  206. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_ac9000fbc979ae4fc5f7bd9f978781128"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#ac9000fbc979ae4fc5f7bd9f978781128">STLTempAllocator::deallocate</a></div><div class="ttdeci">void deallocate(pointer inPointer, size_type inN)</div><div class="ttdoc">Free memory.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:47</div></div>
  207. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_adffaee1b8b044dae6b8390cf013eced8"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#adffaee1b8b044dae6b8390cf013eced8">STLTempAllocator::size_type</a></div><div class="ttdeci">size_t size_type</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:27</div></div>
  208. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_ae25b34d6dc7cb58c9108f4ba197353f2"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#ae25b34d6dc7cb58c9108f4ba197353f2">STLTempAllocator::GetAllocator</a></div><div class="ttdeci">TempAllocator &amp; GetAllocator() const</div><div class="ttdoc">Get our temp allocator.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:71</div></div>
  209. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_af1444dc5e5d16500e2e638e41f44e72f"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#af1444dc5e5d16500e2e638e41f44e72f">STLTempAllocator::value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:16</div></div>
  210. <div class="ttc" id="aclass_s_t_l_temp_allocator_html_afe0ff9b69805be725b54c35f238f8c6f"><div class="ttname"><a href="class_s_t_l_temp_allocator.html#afe0ff9b69805be725b54c35f238f8c6f">STLTempAllocator::operator==</a></div><div class="ttdeci">bool operator==(const STLTempAllocator&lt; T &gt; &amp;inRHS) const</div><div class="ttdoc">Allocators are not-stateless, assume if allocator address matches that the allocators are the same.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:53</div></div>
  211. <div class="ttc" id="aclass_temp_allocator_html"><div class="ttname"><a href="class_temp_allocator.html">TempAllocator</a></div><div class="ttdef"><b>Definition</b> TempAllocator.h:16</div></div>
  212. <div class="ttc" id="aclass_temp_allocator_html_a1d9399cbf93c253a7f03d8ffea249bfe"><div class="ttname"><a href="class_temp_allocator.html#a1d9399cbf93c253a7f03d8ffea249bfe">TempAllocator::Free</a></div><div class="ttdeci">virtual void Free(void *inAddress, uint inSize)=0</div><div class="ttdoc">Frees inSize bytes of memory located at inAddress.</div></div>
  213. <div class="ttc" id="aclass_temp_allocator_html_aa62f890910ee965efea7244953f3c65e"><div class="ttname"><a href="class_temp_allocator.html#aa62f890910ee965efea7244953f3c65e">TempAllocator::Allocate</a></div><div class="ttdeci">virtual void * Allocate(uint inSize)=0</div><div class="ttdoc">Allocates inSize bytes of memory, returned memory address must be JPH_RVECTOR_ALIGNMENT byte aligned.</div></div>
  214. <div class="ttc" id="astruct_s_t_l_temp_allocator_1_1rebind_html"><div class="ttname"><a href="struct_s_t_l_temp_allocator_1_1rebind.html">STLTempAllocator::rebind</a></div><div class="ttdoc">Converting to allocator for other type.</div><div class="ttdef"><b>Definition</b> STLTempAllocator.h:66</div></div>
  215. </div><!-- fragment --></div><!-- contents -->
  216. </div><!-- doc-content -->
  217. <!-- start footer part -->
  218. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  219. <ul>
  220. <li class="navelem"><a class="el" href="dir_d99289a5d3c46cf26f14ff6c90658d9f.html">Jolt</a></li><li class="navelem"><a class="el" href="dir_1b21a6f5692b6d84bf3b848a79181d46.html">Core</a></li><li class="navelem"><a class="el" href="_s_t_l_temp_allocator_8h.html">STLTempAllocator.h</a></li>
  221. <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
  222. </ul>
  223. </div>
  224. </body>
  225. </html>