1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<html>
<head>
<title>sdk/extensions/authoring/source/VHACD/inc/btAlignedAllocator.h Source File</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="blast_logo.png">
<br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<!-- <a class="qindex" href="hierarchy.html">Class Hierarchy</a> //-->
<a class="qindex" href="annotated.html">Class List</a>
<a class="qindex" href="functions.html">Class Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('bt_aligned_allocator_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">btAlignedAllocator.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="bt_aligned_allocator_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">Bullet Continuous Collision Detection and Physics Library</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">This software is provided 'as-is', without any express or implied warranty.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">In no event will the authors be held liable for any damages arising from the use of this software.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">including commercial applications, and to alter it and redistribute it freely,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">subject to the following restrictions:</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">*/</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#ifndef BT_ALIGNED_ALLOCATOR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#define BT_ALIGNED_ALLOCATOR</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="bt_scalar_8h.html">btScalar.h</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">//#define BT_DEBUG_MEMORY_ALLOCATIONS 1</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#ifdef BT_DEBUG_MEMORY_ALLOCATIONS</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#define btAlignedAlloc(a, b) \</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor"> btAlignedAllocInternal(a, b, __LINE__, __FILE__)</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#define btAlignedFree(ptr) \</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor"> btAlignedFreeInternal(ptr, __LINE__, __FILE__)</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keywordtype">void</span>* <a class="code" href="bt_aligned_allocator_8h.html#abd143f95ed595805aaeda47d8ecf9a1d">btAlignedAllocInternal</a>(<span class="keywordtype">size_t</span> size, int32_t alignment, int32_t line, <span class="keywordtype">char</span>* filename);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">void</span> <a class="code" href="bt_aligned_allocator_8h.html#ae81156ba7103afa1011e445b990041a6">btAlignedFreeInternal</a>(<span class="keywordtype">void</span>* ptr, int32_t line, <span class="keywordtype">char</span>* filename);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keywordtype">void</span>* <a class="code" href="bt_aligned_allocator_8h.html#abd143f95ed595805aaeda47d8ecf9a1d">btAlignedAllocInternal</a>(<span class="keywordtype">size_t</span> size, int32_t alignment);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">void</span> <a class="code" href="bt_aligned_allocator_8h.html#ae81156ba7103afa1011e445b990041a6">btAlignedFreeInternal</a>(<span class="keywordtype">void</span>* ptr);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#a5798ef3418d84a1761ef917ef6720db7"> 41</a></span> <span class="preprocessor">#define btAlignedAlloc(size, alignment) btAlignedAllocInternal(size, alignment)</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#a053f25687d0cd7a29571c8669cf9bcd4"> 42</a></span> <span class="preprocessor">#define btAlignedFree(ptr) btAlignedFreeInternal(ptr)</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#ab99502f04b45da821f566776d800a8f9"> 45</a></span> <span class="keyword">typedef</span> int32_t <a class="code" href="bt_aligned_allocator_8h.html#ab99502f04b45da821f566776d800a8f9">size_type</a>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#a0564c64f2da88bb6db34867175418a4c"> 47</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span>*(<a class="code" href="bt_aligned_allocator_8h.html#a0564c64f2da88bb6db34867175418a4c">btAlignedAllocFunc</a>)(<span class="keywordtype">size_t</span> size, int32_t alignment);</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#add8903d0f248ff116396d7f17110c839"> 48</a></span> <span class="keyword">typedef</span> void(<a class="code" href="bt_aligned_allocator_8h.html#add8903d0f248ff116396d7f17110c839">btAlignedFreeFunc</a>)(<span class="keywordtype">void</span>* memblock);</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#aa4c2dccb7ea8eb604ba6c10af584a08c"> 49</a></span> <span class="keyword">typedef</span> <span class="keywordtype">void</span>*(<a class="code" href="bt_aligned_allocator_8h.html#aa4c2dccb7ea8eb604ba6c10af584a08c">btAllocFunc</a>)(<span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="bt_aligned_allocator_8h.html#a4a15eae37fbefbfea0701c8dfd3eedc4"> 50</a></span> <span class="keyword">typedef</span> void(<a class="code" href="bt_aligned_allocator_8h.html#a4a15eae37fbefbfea0701c8dfd3eedc4">btFreeFunc</a>)(<span class="keywordtype">void</span>* memblock);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keywordtype">void</span> <a class="code" href="bt_aligned_allocator_8h.html#af50f59e1b711a0304f02b64ef1b72b8f">btAlignedAllocSetCustom</a>(<a class="code" href="bt_aligned_allocator_8h.html#aa4c2dccb7ea8eb604ba6c10af584a08c">btAllocFunc</a>* allocFunc, <a class="code" href="bt_aligned_allocator_8h.html#a4a15eae37fbefbfea0701c8dfd3eedc4">btFreeFunc</a>* freeFunc);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">void</span> <a class="code" href="bt_aligned_allocator_8h.html#a7d5a4fe5c3391787ca69c33268486ff5">btAlignedAllocSetCustomAligned</a>(<a class="code" href="bt_aligned_allocator_8h.html#a0564c64f2da88bb6db34867175418a4c">btAlignedAllocFunc</a>* allocFunc, <a class="code" href="bt_aligned_allocator_8h.html#add8903d0f248ff116396d7f17110c839">btAlignedFreeFunc</a>* freeFunc);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">template</span> <<span class="keyword">typename</span> T, <span class="keywordtype">unsigned</span> Alignment></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html"> 60</a></span> <span class="keyword">class </span><a class="code" href="classbt_aligned_allocator.html">btAlignedAllocator</a> {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">typedef</span> <a class="code" href="classbt_aligned_allocator.html">btAlignedAllocator<T, Alignment></a> <a class="code" href="classbt_aligned_allocator.html">self_type</a>;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">//just going down a list:</span></div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a000ba6fd8c6b3ffe7609dcef5d606cf6"> 66</a></span>  <a class="code" href="classbt_aligned_allocator.html#a000ba6fd8c6b3ffe7609dcef5d606cf6">btAlignedAllocator</a>() {}</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">/*</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> btAlignedAllocator( const self_type & ) {}</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> */</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Other></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a8b129ab9ee2c6b8f638714913f5ac7a6"> 72</a></span>  <a class="code" href="classbt_aligned_allocator.html#a8b129ab9ee2c6b8f638714913f5ac7a6">btAlignedAllocator</a>(<span class="keyword">const</span> <a class="code" href="classbt_aligned_allocator.html">btAlignedAllocator<Other, Alignment></a>&) {}</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a0e891e100940277ebbd7272040f10e03"> 74</a></span>  <span class="keyword">typedef</span> <span class="keyword">const</span> T* <a class="code" href="classbt_aligned_allocator.html#a0e891e100940277ebbd7272040f10e03">const_pointer</a>;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#ae5f6da84ca9c043329e3aae5c7fb3899"> 75</a></span>  <span class="keyword">typedef</span> <span class="keyword">const</span> T& <a class="code" href="classbt_aligned_allocator.html#ae5f6da84ca9c043329e3aae5c7fb3899">const_reference</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a437328614e195e0241532556ebb24585"> 76</a></span>  <span class="keyword">typedef</span> T* <a class="code" href="classbt_aligned_allocator.html#a437328614e195e0241532556ebb24585">pointer</a>;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#ae700086710c0e3968d6291a58afb5179"> 77</a></span>  <span class="keyword">typedef</span> T& <a class="code" href="classbt_aligned_allocator.html#ae700086710c0e3968d6291a58afb5179">reference</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#adbcb544104a69cedd789d279c03ff861"> 78</a></span>  <span class="keyword">typedef</span> T <a class="code" href="classbt_aligned_allocator.html#adbcb544104a69cedd789d279c03ff861">value_type</a>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#adaf5f8601f0b27ec5fe962ba35e5b6ff"> 80</a></span>  pointer <a class="code" href="classbt_aligned_allocator.html#adaf5f8601f0b27ec5fe962ba35e5b6ff">address</a>(reference ref)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &ref; }</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a85187907179eadeb9907902ba7ee371a"> 81</a></span>  const_pointer <a class="code" href="classbt_aligned_allocator.html#a85187907179eadeb9907902ba7ee371a">address</a>(const_reference ref)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &ref; }</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a5b14474126ff00cd364dfb74304ec6c3"> 82</a></span>  pointer <a class="code" href="classbt_aligned_allocator.html#a5b14474126ff00cd364dfb74304ec6c3">allocate</a>(<a class="code" href="bt_aligned_allocator_8h.html#ab99502f04b45da821f566776d800a8f9">size_type</a> n, const_pointer* hint = 0)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  (void)hint;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span>pointer<span class="keyword">></span>(<a class="code" href="bt_aligned_allocator_8h.html#a5798ef3418d84a1761ef917ef6720db7">btAlignedAlloc</a>(<span class="keyword">sizeof</span>(value_type) * n, Alignment));</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#afdb40058534d13fed3fddade2939bd8e"> 87</a></span>  <span class="keywordtype">void</span> <a class="code" href="classbt_aligned_allocator.html#afdb40058534d13fed3fddade2939bd8e">construct</a>(pointer ptr, <span class="keyword">const</span> value_type& value) { <span class="keyword">new</span> (ptr) <a class="code" href="classbt_aligned_allocator.html#adbcb544104a69cedd789d279c03ff861">value_type</a>(value); }</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a9aa2ce10c6b68eb249116f8712008724"> 88</a></span>  <span class="keywordtype">void</span> <a class="code" href="classbt_aligned_allocator.html#a9aa2ce10c6b68eb249116f8712008724">deallocate</a>(pointer ptr)</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="bt_aligned_allocator_8h.html#a053f25687d0cd7a29571c8669cf9bcd4">btAlignedFree</a>(reinterpret_cast<void*>(ptr));</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a8570a358258bc64869f0effd8405b69b"> 92</a></span>  <span class="keywordtype">void</span> <a class="code" href="classbt_aligned_allocator.html#a8570a358258bc64869f0effd8405b69b">destroy</a>(pointer ptr) { ptr->~value_type(); }</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> O></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structbt_aligned_allocator_1_1rebind.html"> 95</a></span>  <span class="keyword">struct </span><a class="code" href="structbt_aligned_allocator_1_1rebind.html">rebind</a> {</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structbt_aligned_allocator_1_1rebind.html#aa186e8a4d970bc530c270877cb0a0f12"> 96</a></span>  <span class="keyword">typedef</span> <a class="code" href="classbt_aligned_allocator.html">btAlignedAllocator<O, Alignment></a> <a class="code" href="structbt_aligned_allocator_1_1rebind.html#aa186e8a4d970bc530c270877cb0a0f12">other</a>;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  };</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> O></div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a5366e980346aa0b85befd8ffecdffb9d"> 99</a></span>  self_type& <a class="code" href="classbt_aligned_allocator.html#a5366e980346aa0b85befd8ffecdffb9d">operator=</a>(<span class="keyword">const</span> <a class="code" href="classbt_aligned_allocator.html">btAlignedAllocator<O, Alignment></a>&) { <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classbt_aligned_allocator.html#a925f6a7a595252ceb9a7c4be506f983c"> 101</a></span>  <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="classbt_aligned_allocator.html#a925f6a7a595252ceb9a7c4be506f983c">operator==</a>(<span class="keyword">const</span> self_type&, <span class="keyword">const</span> self_type&) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> };</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="preprocessor">#endif //BT_ALIGNED_ALLOCATOR</span></div><div class="ttc" id="bt_aligned_allocator_8h_html_abd143f95ed595805aaeda47d8ecf9a1d"><div class="ttname"><a href="bt_aligned_allocator_8h.html#abd143f95ed595805aaeda47d8ecf9a1d">btAlignedAllocInternal</a></div><div class="ttdeci">void * btAlignedAllocInternal(size_t size, int32_t alignment)</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_adaf5f8601f0b27ec5fe962ba35e5b6ff"><div class="ttname"><a href="classbt_aligned_allocator.html#adaf5f8601f0b27ec5fe962ba35e5b6ff">btAlignedAllocator::address</a></div><div class="ttdeci">pointer address(reference ref) const</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:80</div></div>
<div class="ttc" id="classbt_aligned_allocator_html"><div class="ttname"><a href="classbt_aligned_allocator.html">btAlignedAllocator</a></div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:60</div></div>
<div class="ttc" id="structbt_aligned_allocator_1_1rebind_html"><div class="ttname"><a href="structbt_aligned_allocator_1_1rebind.html">btAlignedAllocator::rebind</a></div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:95</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_aa4c2dccb7ea8eb604ba6c10af584a08c"><div class="ttname"><a href="bt_aligned_allocator_8h.html#aa4c2dccb7ea8eb604ba6c10af584a08c">btAllocFunc</a></div><div class="ttdeci">void *() btAllocFunc(size_t size)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:49</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a000ba6fd8c6b3ffe7609dcef5d606cf6"><div class="ttname"><a href="classbt_aligned_allocator.html#a000ba6fd8c6b3ffe7609dcef5d606cf6">btAlignedAllocator::btAlignedAllocator</a></div><div class="ttdeci">btAlignedAllocator()</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:66</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a437328614e195e0241532556ebb24585"><div class="ttname"><a href="classbt_aligned_allocator.html#a437328614e195e0241532556ebb24585">btAlignedAllocator::pointer</a></div><div class="ttdeci">T * pointer</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:76</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a8570a358258bc64869f0effd8405b69b"><div class="ttname"><a href="classbt_aligned_allocator.html#a8570a358258bc64869f0effd8405b69b">btAlignedAllocator::destroy</a></div><div class="ttdeci">void destroy(pointer ptr)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:92</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_a7d5a4fe5c3391787ca69c33268486ff5"><div class="ttname"><a href="bt_aligned_allocator_8h.html#a7d5a4fe5c3391787ca69c33268486ff5">btAlignedAllocSetCustomAligned</a></div><div class="ttdeci">void btAlignedAllocSetCustomAligned(btAlignedAllocFunc *allocFunc, btAlignedFreeFunc *freeFunc)</div><div class="ttdoc">If the developer has already an custom aligned allocator, then btAlignedAllocSetCustomAligned can be ...</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a0e891e100940277ebbd7272040f10e03"><div class="ttname"><a href="classbt_aligned_allocator.html#a0e891e100940277ebbd7272040f10e03">btAlignedAllocator::const_pointer</a></div><div class="ttdeci">const T * const_pointer</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:74</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_ae5f6da84ca9c043329e3aae5c7fb3899"><div class="ttname"><a href="classbt_aligned_allocator.html#ae5f6da84ca9c043329e3aae5c7fb3899">btAlignedAllocator::const_reference</a></div><div class="ttdeci">const T & const_reference</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:75</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a9aa2ce10c6b68eb249116f8712008724"><div class="ttname"><a href="classbt_aligned_allocator.html#a9aa2ce10c6b68eb249116f8712008724">btAlignedAllocator::deallocate</a></div><div class="ttdeci">void deallocate(pointer ptr)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:88</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a5b14474126ff00cd364dfb74304ec6c3"><div class="ttname"><a href="classbt_aligned_allocator.html#a5b14474126ff00cd364dfb74304ec6c3">btAlignedAllocator::allocate</a></div><div class="ttdeci">pointer allocate(size_type n, const_pointer *hint=0)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:82</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a5366e980346aa0b85befd8ffecdffb9d"><div class="ttname"><a href="classbt_aligned_allocator.html#a5366e980346aa0b85befd8ffecdffb9d">btAlignedAllocator::operator=</a></div><div class="ttdeci">self_type & operator=(const btAlignedAllocator< O, Alignment > &)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:99</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_a053f25687d0cd7a29571c8669cf9bcd4"><div class="ttname"><a href="bt_aligned_allocator_8h.html#a053f25687d0cd7a29571c8669cf9bcd4">btAlignedFree</a></div><div class="ttdeci">#define btAlignedFree(ptr)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:42</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_ae81156ba7103afa1011e445b990041a6"><div class="ttname"><a href="bt_aligned_allocator_8h.html#ae81156ba7103afa1011e445b990041a6">btAlignedFreeInternal</a></div><div class="ttdeci">void btAlignedFreeInternal(void *ptr)</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a8b129ab9ee2c6b8f638714913f5ac7a6"><div class="ttname"><a href="classbt_aligned_allocator.html#a8b129ab9ee2c6b8f638714913f5ac7a6">btAlignedAllocator::btAlignedAllocator</a></div><div class="ttdeci">btAlignedAllocator(const btAlignedAllocator< Other, Alignment > &)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:72</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_ae700086710c0e3968d6291a58afb5179"><div class="ttname"><a href="classbt_aligned_allocator.html#ae700086710c0e3968d6291a58afb5179">btAlignedAllocator::reference</a></div><div class="ttdeci">T & reference</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:77</div></div>
<div class="ttc" id="structbt_aligned_allocator_1_1rebind_html_aa186e8a4d970bc530c270877cb0a0f12"><div class="ttname"><a href="structbt_aligned_allocator_1_1rebind.html#aa186e8a4d970bc530c270877cb0a0f12">btAlignedAllocator::rebind::other</a></div><div class="ttdeci">btAlignedAllocator< O, Alignment > other</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:96</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_add8903d0f248ff116396d7f17110c839"><div class="ttname"><a href="bt_aligned_allocator_8h.html#add8903d0f248ff116396d7f17110c839">btAlignedFreeFunc</a></div><div class="ttdeci">void() btAlignedFreeFunc(void *memblock)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:48</div></div>
<div class="ttc" id="bt_scalar_8h_html"><div class="ttname"><a href="bt_scalar_8h.html">btScalar.h</a></div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_a4a15eae37fbefbfea0701c8dfd3eedc4"><div class="ttname"><a href="bt_aligned_allocator_8h.html#a4a15eae37fbefbfea0701c8dfd3eedc4">btFreeFunc</a></div><div class="ttdeci">void() btFreeFunc(void *memblock)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:50</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_afdb40058534d13fed3fddade2939bd8e"><div class="ttname"><a href="classbt_aligned_allocator.html#afdb40058534d13fed3fddade2939bd8e">btAlignedAllocator::construct</a></div><div class="ttdeci">void construct(pointer ptr, const value_type &value)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:87</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_ab99502f04b45da821f566776d800a8f9"><div class="ttname"><a href="bt_aligned_allocator_8h.html#ab99502f04b45da821f566776d800a8f9">size_type</a></div><div class="ttdeci">int32_t size_type</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:45</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a925f6a7a595252ceb9a7c4be506f983c"><div class="ttname"><a href="classbt_aligned_allocator.html#a925f6a7a595252ceb9a7c4be506f983c">btAlignedAllocator::operator==</a></div><div class="ttdeci">friend bool operator==(const self_type &, const self_type &)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:101</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_a0564c64f2da88bb6db34867175418a4c"><div class="ttname"><a href="bt_aligned_allocator_8h.html#a0564c64f2da88bb6db34867175418a4c">btAlignedAllocFunc</a></div><div class="ttdeci">void *() btAlignedAllocFunc(size_t size, int32_t alignment)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:47</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_a5798ef3418d84a1761ef917ef6720db7"><div class="ttname"><a href="bt_aligned_allocator_8h.html#a5798ef3418d84a1761ef917ef6720db7">btAlignedAlloc</a></div><div class="ttdeci">#define btAlignedAlloc(size, alignment)</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:41</div></div>
<div class="ttc" id="classbt_aligned_allocator_html_a85187907179eadeb9907902ba7ee371a"><div class="ttname"><a href="classbt_aligned_allocator.html#a85187907179eadeb9907902ba7ee371a">btAlignedAllocator::address</a></div><div class="ttdeci">const_pointer address(const_reference ref) const</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:81</div></div>
<div class="ttc" id="bt_aligned_allocator_8h_html_af50f59e1b711a0304f02b64ef1b72b8f"><div class="ttname"><a href="bt_aligned_allocator_8h.html#af50f59e1b711a0304f02b64ef1b72b8f">btAlignedAllocSetCustom</a></div><div class="ttdeci">void btAlignedAllocSetCustom(btAllocFunc *allocFunc, btFreeFunc *freeFunc)</div><div class="ttdoc">The developer can let all Bullet memory allocations go through a custom memory allocator, using btAlignedAllocSetCustom. </div></div>
<div class="ttc" id="classbt_aligned_allocator_html_adbcb544104a69cedd789d279c03ff861"><div class="ttname"><a href="classbt_aligned_allocator.html#adbcb544104a69cedd789d279c03ff861">btAlignedAllocator::value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition:</b> btAlignedAllocator.h:78</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div class="footer">
Copyright © 2015-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</div>
</body>
</html>
|