diff options
author | David Walter Seikel | 2014-01-13 19:47:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-01-13 19:47:58 +1000 |
commit | f9158592e1478b2013afc7041d9ed041cf2d2f4a (patch) | |
tree | b16e389d7988700e21b4c9741044cefa536dcbae /libraries/irrlicht-1.8.1/doc/html/irr_allocator_8h_source.html | |
parent | Libraries readme updated with change markers and more of the Irrlicht changes. (diff) | |
download | SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.zip SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.gz SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.bz2 SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.xz |
Update Irrlicht to 1.8.1. Include actual change markers this time. lol
Diffstat (limited to 'libraries/irrlicht-1.8.1/doc/html/irr_allocator_8h_source.html')
-rw-r--r-- | libraries/irrlicht-1.8.1/doc/html/irr_allocator_8h_source.html | 231 |
1 files changed, 231 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8.1/doc/html/irr_allocator_8h_source.html b/libraries/irrlicht-1.8.1/doc/html/irr_allocator_8h_source.html new file mode 100644 index 0000000..0b33851 --- /dev/null +++ b/libraries/irrlicht-1.8.1/doc/html/irr_allocator_8h_source.html | |||
@@ -0,0 +1,231 @@ | |||
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 | <title>Irrlicht 3D Engine: irrAllocator.h Source File</title> | ||
6 | |||
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
8 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
9 | <link href="navtree.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="resize.js"></script> | ||
12 | <script type="text/javascript" src="navtree.js"></script> | ||
13 | <script type="text/javascript"> | ||
14 | $(document).ready(initResizable); | ||
15 | </script> | ||
16 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
17 | <script type="text/javascript" src="search/search.js"></script> | ||
18 | <script type="text/javascript"> | ||
19 | $(document).ready(function() { searchBox.OnSelectItem(0); }); | ||
20 | </script> | ||
21 | |||
22 | </head> | ||
23 | <body> | ||
24 | <div id="top"><!-- do not remove this div! --> | ||
25 | |||
26 | |||
27 | <div id="titlearea"> | ||
28 | <table cellspacing="0" cellpadding="0"> | ||
29 | <tbody> | ||
30 | <tr style="height: 56px;"> | ||
31 | |||
32 | <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td> | ||
33 | |||
34 | |||
35 | <td style="padding-left: 0.5em;"> | ||
36 | <div id="projectname">Irrlicht 3D Engine | ||
37 | |||
38 | </div> | ||
39 | |||
40 | </td> | ||
41 | |||
42 | |||
43 | |||
44 | |||
45 | <td> <div id="MSearchBox" class="MSearchBoxInactive"> | ||
46 | <span class="left"> | ||
47 | <img id="MSearchSelect" src="search/mag_sel.png" | ||
48 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
49 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
50 | alt=""/> | ||
51 | <input type="text" id="MSearchField" value="Search" accesskey="S" | ||
52 | onfocus="searchBox.OnSearchFieldFocus(true)" | ||
53 | onblur="searchBox.OnSearchFieldFocus(false)" | ||
54 | onkeyup="searchBox.OnSearchFieldChange(event)"/> | ||
55 | </span><span class="right"> | ||
56 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> | ||
57 | </span> | ||
58 | </div> | ||
59 | </td> | ||
60 | |||
61 | |||
62 | </tr> | ||
63 | </tbody> | ||
64 | </table> | ||
65 | </div> | ||
66 | |||
67 | <!-- Generated by Doxygen 1.7.5.1 --> | ||
68 | <script type="text/javascript"> | ||
69 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
70 | </script> | ||
71 | <script type="text/javascript" src="dynsections.js"></script> | ||
72 | </div> | ||
73 | <div id="side-nav" class="ui-resizable side-nav-resizable"> | ||
74 | <div id="nav-tree"> | ||
75 | <div id="nav-tree-contents"> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div id="splitbar" style="-moz-user-select:none;" | ||
79 | class="ui-resizable-handle"> | ||
80 | </div> | ||
81 | </div> | ||
82 | <script type="text/javascript"> | ||
83 | initNavTree('irr_allocator_8h.html',''); | ||
84 | </script> | ||
85 | <div id="doc-content"> | ||
86 | <div class="header"> | ||
87 | <div class="headertitle"> | ||
88 | <div class="title">irrAllocator.h</div> </div> | ||
89 | </div> | ||
90 | <div class="contents"> | ||
91 | <a href="irr_allocator_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2012 Nikolaus Gebhardt</span> | ||
92 | <a name="l00002"></a>00002 <span class="comment">// This file is part of the "Irrlicht Engine" and the "irrXML" project.</span> | ||
93 | <a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h and irrXML.h</span> | ||
94 | <a name="l00004"></a>00004 | ||
95 | <a name="l00005"></a>00005 <span class="preprocessor">#ifndef __IRR_ALLOCATOR_H_INCLUDED__</span> | ||
96 | <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __IRR_ALLOCATOR_H_INCLUDED__</span> | ||
97 | <a name="l00007"></a>00007 <span class="preprocessor"></span> | ||
98 | <a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="irr_types_8h.html">irrTypes.h</a>"</span> | ||
99 | <a name="l00009"></a>00009 <span class="preprocessor">#include <new></span> | ||
100 | <a name="l00010"></a>00010 <span class="comment">// necessary for older compilers</span> | ||
101 | <a name="l00011"></a>00011 <span class="preprocessor">#include <memory.h></span> | ||
102 | <a name="l00012"></a>00012 | ||
103 | <a name="l00013"></a>00013 <span class="keyword">namespace </span>irr | ||
104 | <a name="l00014"></a>00014 { | ||
105 | <a name="l00015"></a>00015 <span class="keyword">namespace </span>core | ||
106 | <a name="l00016"></a>00016 { | ||
107 | <a name="l00017"></a>00017 | ||
108 | <a name="l00018"></a>00018 <span class="preprocessor">#ifdef DEBUG_CLIENTBLOCK</span> | ||
109 | <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#undef DEBUG_CLIENTBLOCK</span> | ||
110 | <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define DEBUG_CLIENTBLOCK new</span> | ||
111 | <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span> | ||
112 | <a name="l00022"></a>00022 <span class="preprocessor"></span> | ||
113 | <a name="l00024"></a>00024 <span class="keyword">template</span><<span class="keyword">typename</span> T> | ||
114 | <a name="l00025"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html">00025</a> <span class="keyword">class </span><a class="code" href="classirr_1_1core_1_1irr_allocator.html" title="Very simple allocator implementation, containers using it can be used across dll boundaries.">irrAllocator</a> | ||
115 | <a name="l00026"></a>00026 { | ||
116 | <a name="l00027"></a>00027 <span class="keyword">public</span>: | ||
117 | <a name="l00028"></a>00028 | ||
118 | <a name="l00030"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#afbb5a33a4fb6491be506081673fb3824">00030</a> <span class="keyword">virtual</span> <a class="code" href="classirr_1_1core_1_1irr_allocator.html#afbb5a33a4fb6491be506081673fb3824" title="Destructor.">~irrAllocator</a>() {} | ||
119 | <a name="l00031"></a>00031 | ||
120 | <a name="l00033"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#ac4b471d893b1f19da361302af977c5c1">00033</a> T* <a class="code" href="classirr_1_1core_1_1irr_allocator.html#ac4b471d893b1f19da361302af977c5c1" title="Allocate memory for an array of objects.">allocate</a>(<span class="keywordtype">size_t</span> cnt) | ||
121 | <a name="l00034"></a>00034 { | ||
122 | <a name="l00035"></a>00035 <span class="keywordflow">return</span> (T*)<a class="code" href="classirr_1_1core_1_1irr_allocator.html#a8b48f4e2068c9ec931ef7bb6a244e377">internal_new</a>(cnt* <span class="keyword">sizeof</span>(T)); | ||
123 | <a name="l00036"></a>00036 } | ||
124 | <a name="l00037"></a>00037 | ||
125 | <a name="l00039"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#a7670f5dc0be9162c669eb6ac5eae00a8">00039</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator.html#a7670f5dc0be9162c669eb6ac5eae00a8" title="Deallocate memory for an array of objects.">deallocate</a>(T* ptr) | ||
126 | <a name="l00040"></a>00040 { | ||
127 | <a name="l00041"></a>00041 <a class="code" href="classirr_1_1core_1_1irr_allocator.html#abffd97ee70d7c73e5290de913e43a32c">internal_delete</a>(ptr); | ||
128 | <a name="l00042"></a>00042 } | ||
129 | <a name="l00043"></a>00043 | ||
130 | <a name="l00045"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#a24601bd03410855534207c3e5ad7a24b">00045</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator.html#a24601bd03410855534207c3e5ad7a24b" title="Construct an element.">construct</a>(T* ptr, <span class="keyword">const</span> T&e) | ||
131 | <a name="l00046"></a>00046 { | ||
132 | <a name="l00047"></a>00047 <span class="keyword">new</span> ((<span class="keywordtype">void</span>*)ptr) T(e); | ||
133 | <a name="l00048"></a>00048 } | ||
134 | <a name="l00049"></a>00049 | ||
135 | <a name="l00051"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#a59e37e05219bd2ef3e57e66db4b994eb">00051</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator.html#a59e37e05219bd2ef3e57e66db4b994eb" title="Destruct an element.">destruct</a>(T* ptr) | ||
136 | <a name="l00052"></a>00052 { | ||
137 | <a name="l00053"></a>00053 ptr->~T(); | ||
138 | <a name="l00054"></a>00054 } | ||
139 | <a name="l00055"></a>00055 | ||
140 | <a name="l00056"></a>00056 <span class="keyword">protected</span>: | ||
141 | <a name="l00057"></a>00057 | ||
142 | <a name="l00058"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#a8b48f4e2068c9ec931ef7bb6a244e377">00058</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="classirr_1_1core_1_1irr_allocator.html#a8b48f4e2068c9ec931ef7bb6a244e377">internal_new</a>(<span class="keywordtype">size_t</span> cnt) | ||
143 | <a name="l00059"></a>00059 { | ||
144 | <a name="l00060"></a>00060 <span class="keywordflow">return</span> operator new(cnt); | ||
145 | <a name="l00061"></a>00061 } | ||
146 | <a name="l00062"></a>00062 | ||
147 | <a name="l00063"></a><a class="code" href="classirr_1_1core_1_1irr_allocator.html#abffd97ee70d7c73e5290de913e43a32c">00063</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator.html#abffd97ee70d7c73e5290de913e43a32c">internal_delete</a>(<span class="keywordtype">void</span>* ptr) | ||
148 | <a name="l00064"></a>00064 { | ||
149 | <a name="l00065"></a>00065 operator delete(ptr); | ||
150 | <a name="l00066"></a>00066 } | ||
151 | <a name="l00067"></a>00067 | ||
152 | <a name="l00068"></a>00068 }; | ||
153 | <a name="l00069"></a>00069 | ||
154 | <a name="l00070"></a>00070 | ||
155 | <a name="l00072"></a>00072 | ||
156 | <a name="l00074"></a>00074 <span class="keyword">template</span><<span class="keyword">typename</span> T> | ||
157 | <a name="l00075"></a><a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html">00075</a> <span class="keyword">class </span><a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html" title="Fast allocator, only to be used in containers inside the same memory heap.">irrAllocatorFast</a> | ||
158 | <a name="l00076"></a>00076 { | ||
159 | <a name="l00077"></a>00077 <span class="keyword">public</span>: | ||
160 | <a name="l00078"></a>00078 | ||
161 | <a name="l00080"></a><a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#a13d11b5583ef053825f7aea8dc3ed283">00080</a> T* <a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#a13d11b5583ef053825f7aea8dc3ed283" title="Allocate memory for an array of objects.">allocate</a>(<span class="keywordtype">size_t</span> cnt) | ||
162 | <a name="l00081"></a>00081 { | ||
163 | <a name="l00082"></a>00082 <span class="keywordflow">return</span> (T*)operator new(cnt* <span class="keyword">sizeof</span>(T)); | ||
164 | <a name="l00083"></a>00083 } | ||
165 | <a name="l00084"></a>00084 | ||
166 | <a name="l00086"></a><a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#aa3d0f4fadf4e330abe277ba3f639bb07">00086</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#aa3d0f4fadf4e330abe277ba3f639bb07" title="Deallocate memory for an array of objects.">deallocate</a>(T* ptr) | ||
167 | <a name="l00087"></a>00087 { | ||
168 | <a name="l00088"></a>00088 operator delete(ptr); | ||
169 | <a name="l00089"></a>00089 } | ||
170 | <a name="l00090"></a>00090 | ||
171 | <a name="l00092"></a><a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#a0cadba66801009a1118d7046615c8e04">00092</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#a0cadba66801009a1118d7046615c8e04" title="Construct an element.">construct</a>(T* ptr, <span class="keyword">const</span> T&e) | ||
172 | <a name="l00093"></a>00093 { | ||
173 | <a name="l00094"></a>00094 <span class="keyword">new</span> ((<span class="keywordtype">void</span>*)ptr) T(e); | ||
174 | <a name="l00095"></a>00095 } | ||
175 | <a name="l00096"></a>00096 | ||
176 | <a name="l00098"></a><a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#a4249f5cde51abf01a25ab53dc173646d">00098</a> <span class="keywordtype">void</span> <a class="code" href="classirr_1_1core_1_1irr_allocator_fast.html#a4249f5cde51abf01a25ab53dc173646d" title="Destruct an element.">destruct</a>(T* ptr) | ||
177 | <a name="l00099"></a>00099 { | ||
178 | <a name="l00100"></a>00100 ptr->~T(); | ||
179 | <a name="l00101"></a>00101 } | ||
180 | <a name="l00102"></a>00102 }; | ||
181 | <a name="l00103"></a>00103 | ||
182 | <a name="l00104"></a>00104 | ||
183 | <a name="l00105"></a>00105 | ||
184 | <a name="l00106"></a>00106 <span class="preprocessor">#ifdef DEBUG_CLIENTBLOCK</span> | ||
185 | <a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#undef DEBUG_CLIENTBLOCK</span> | ||
186 | <a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#define DEBUG_CLIENTBLOCK new( _CLIENT_BLOCK, __FILE__, __LINE__)</span> | ||
187 | <a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#endif</span> | ||
188 | <a name="l00110"></a>00110 <span class="preprocessor"></span> | ||
189 | <a name="l00112"></a><a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adba">00112</a> <span class="keyword">enum</span> <a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adba" title="defines an allocation strategy">eAllocStrategy</a> | ||
190 | <a name="l00113"></a>00113 { | ||
191 | <a name="l00114"></a><a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adbaabfc6be96075564e1e0d92477e657f746">00114</a> <a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adbaabfc6be96075564e1e0d92477e657f746">ALLOC_STRATEGY_SAFE</a> = 0, | ||
192 | <a name="l00115"></a><a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adbaa1fa5aed132891361601560ed3e067fe8">00115</a> <a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adbaa1fa5aed132891361601560ed3e067fe8">ALLOC_STRATEGY_DOUBLE</a> = 1, | ||
193 | <a name="l00116"></a><a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adbaad8222ac85dd18e7c1380773bac278dae">00116</a> <a class="code" href="namespaceirr_1_1core.html#aa2e91971d5e6e84de235bfabe3c7adbaad8222ac85dd18e7c1380773bac278dae">ALLOC_STRATEGY_SQRT</a> = 2 | ||
194 | <a name="l00117"></a>00117 }; | ||
195 | <a name="l00118"></a>00118 | ||
196 | <a name="l00119"></a>00119 | ||
197 | <a name="l00120"></a>00120 } <span class="comment">// end namespace core</span> | ||
198 | <a name="l00121"></a>00121 } <span class="comment">// end namespace irr</span> | ||
199 | <a name="l00122"></a>00122 | ||
200 | <a name="l00123"></a>00123 <span class="preprocessor">#endif</span> | ||
201 | <a name="l00124"></a>00124 <span class="preprocessor"></span> | ||
202 | </pre></div></div> | ||
203 | </div> | ||
204 | <div id="nav-path" class="navpath"> | ||
205 | <ul> | ||
206 | <li class="navelem"><a class="el" href="irr_allocator_8h.html">irrAllocator.h</a> </li> | ||
207 | <!-- window showing the filter options --> | ||
208 | <div id="MSearchSelectWindow" | ||
209 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
210 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
211 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
212 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Defines</a></div> | ||
213 | |||
214 | <!-- iframe showing the search results (closed by default) --> | ||
215 | <div id="MSearchResultsWindow"> | ||
216 | <iframe src="javascript:void(0)" frameborder="0" | ||
217 | name="MSearchResults" id="MSearchResults"> | ||
218 | </iframe> | ||
219 | </div> | ||
220 | |||
221 | |||
222 | <li class="footer"> | ||
223 | <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht | ||
224 | Engine</a> Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:39 for Irrlicht 3D Engine by | ||
225 | <a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li> | ||
226 | </ul> | ||
227 | </div> | ||
228 | |||
229 | |||
230 | </body> | ||
231 | </html> | ||