1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreMemoryManager.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>OgreMemoryManager.h</h1><a href="OgreMemoryManager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment">(Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="comment">//---- ORIGINAL COPYRIGHT FOLLOWS -------------------------------------------</span> |
---|
35 | 00026 <span class="comment">// ---------------------------------------------------------------------------------------------------------------------------------</span> |
---|
36 | 00027 <span class="comment">// Copyright 2000, Paul Nettle. All rights reserved.</span> |
---|
37 | 00028 <span class="comment">//</span> |
---|
38 | 00029 <span class="comment">// You are free to use this source code in any commercial or non-commercial product.</span> |
---|
39 | 00030 <span class="comment">//</span> |
---|
40 | 00031 <span class="comment">// mmgr.cpp - Memory manager & tracking software</span> |
---|
41 | 00032 <span class="comment">//</span> |
---|
42 | 00033 <span class="comment">// The most recent version of this software can be found at: ftp://ftp.GraphicsPapers.com/pub/ProgrammingTools/MemoryManagers/</span> |
---|
43 | 00034 <span class="comment">//</span> |
---|
44 | 00035 <span class="comment">// [NOTE: Best when viewed with 8-character tabs]</span> |
---|
45 | 00036 <span class="comment">//</span> |
---|
46 | 00037 <span class="comment">// ---------------------------------------------------------------------------------------------------------------------------------</span> |
---|
47 | 00038 <span class="preprocessor">#ifndef __MemoryManager_H__</span> |
---|
48 | 00039 <span class="preprocessor"></span><span class="preprocessor">#define __MemoryManager_H__</span> |
---|
49 | 00040 <span class="preprocessor"></span> |
---|
50 | 00041 <span class="preprocessor">#include "<a class="code" href="OgrePlatform_8h.html">OgrePlatform.h</a>"</span> |
---|
51 | 00042 <span class="preprocessor">#include "<a class="code" href="OgreStdHeaders_8h.html">OgreStdHeaders.h</a>"</span> |
---|
52 | 00043 |
---|
53 | 00044 <span class="keyword">namespace </span>Ogre { |
---|
54 | 00045 |
---|
55 | 00087 <span class="preprocessor">#if OGRE_DEBUG_MEMORY_MANAGER && OGRE_DEBUG_MODE</span> |
---|
56 | 00088 <span class="preprocessor"></span> |
---|
57 | 00089 <span class="preprocessor">#ifndef __FUNCTION__</span> |
---|
58 | 00090 <span class="preprocessor"></span><span class="preprocessor">#define __FUNCTION__ "???"</span> |
---|
59 | 00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
---|
60 | 00092 <span class="preprocessor"></span> |
---|
61 | 00093 } |
---|
62 | 00094 |
---|
63 | 00095 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
64 | 00096 <span class="comment">// We have to declare the global new([])/delete([]) operators before declaring </span> |
---|
65 | 00097 <span class="comment">// the Ogre::MemoryManager class since it lists them as friend functions</span> |
---|
66 | 00098 <span class="keywordtype">void</span> *operator new(size_t reportedSize); |
---|
67 | 00099 <span class="keywordtype">void</span> *operator new[](size_t reportedSize); |
---|
68 | 00100 <span class="keywordtype">void</span> operator delete(<span class="keywordtype">void</span> *reportedAddress); |
---|
69 | 00101 <span class="keywordtype">void</span> operator delete[](<span class="keywordtype">void</span> *reportedAddress); |
---|
70 | 00102 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
71 | 00103 |
---|
72 | 00104 <span class="keyword">namespace </span><a class="code" href="classOgre.html">Ogre</a> { |
---|
73 | 00105 |
---|
74 | 00115 <span class="keyword">typedef</span> <span class="keyword">struct </span>tag_au |
---|
75 | 00116 { |
---|
76 | 00117 size_t actualSize; |
---|
77 | 00118 size_t reportedSize; |
---|
78 | 00119 |
---|
79 | 00120 <span class="keywordtype">void</span> *actualAddress; |
---|
80 | 00121 <span class="keywordtype">void</span> *reportedAddress; |
---|
81 | 00122 |
---|
82 | 00123 <span class="keywordtype">char</span> sourceFile[40]; |
---|
83 | 00124 <span class="keywordtype">char</span> sourceFunc[40]; |
---|
84 | 00125 |
---|
85 | 00126 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sourceLine; |
---|
86 | 00127 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> allocationType; |
---|
87 | 00128 |
---|
88 | 00129 <span class="keywordtype">bool</span> breakOnDealloc; |
---|
89 | 00130 <span class="keywordtype">bool</span> breakOnRealloc; |
---|
90 | 00131 |
---|
91 | 00132 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> allocationNumber; |
---|
92 | 00133 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> processID; |
---|
93 | 00134 |
---|
94 | 00135 <span class="keyword">struct </span><a class="code" href="classtag__au.html">tag_au</a> *next; |
---|
95 | 00136 <span class="keyword">struct </span><a class="code" href="classtag__au.html">tag_au</a> *prev; |
---|
96 | 00137 } sAllocUnit; |
---|
97 | 00138 |
---|
98 | 00139 <span class="keyword">typedef</span> <span class="keyword">struct</span> |
---|
99 | 00140 <span class="keyword"> </span>{ |
---|
100 | 00141 size_t totalReportedMemory; |
---|
101 | 00142 size_t totalActualMemory; |
---|
102 | 00143 |
---|
103 | 00144 size_t peakReportedMemory; |
---|
104 | 00145 size_t peakActualMemory; |
---|
105 | 00146 |
---|
106 | 00147 size_t accumulatedReportedMemory; |
---|
107 | 00148 size_t accumulatedActualMemory; |
---|
108 | 00149 size_t accumulatedAllocUnitCount; |
---|
109 | 00150 |
---|
110 | 00151 size_t totalAllocUnitCount; |
---|
111 | 00152 size_t peakAllocUnitCount; |
---|
112 | 00153 } sMStats; |
---|
113 | 00154 |
---|
114 | 00155 <span class="keyword">enum</span> |
---|
115 | 00156 { |
---|
116 | 00157 m_alloc_unknown = 0, |
---|
117 | 00158 m_alloc_new = 1, |
---|
118 | 00159 m_alloc_new_array = 2, |
---|
119 | 00160 m_alloc_malloc = 3, |
---|
120 | 00161 m_alloc_calloc = 4, |
---|
121 | 00162 m_alloc_realloc = 5, |
---|
122 | 00163 m_alloc_delete = 6, |
---|
123 | 00164 m_alloc_delete_array = 7, |
---|
124 | 00165 m_alloc_free = 8 |
---|
125 | 00166 }; |
---|
126 | 00167 |
---|
127 | 00170 <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> MemoryManager |
---|
128 | 00171 { |
---|
129 | 00172 <span class="keyword">friend</span> <span class="keywordtype">void</span> * ::operator <span class="keyword">new</span>(size_t); |
---|
130 | 00173 <span class="keyword">friend</span> <span class="keywordtype">void</span> * ::operator <span class="keyword">new</span>[](size_t); |
---|
131 | 00174 <span class="keyword">friend</span> void ::operator delete(<span class="keywordtype">void</span>*); |
---|
132 | 00175 <span class="keyword">friend</span> void ::operator delete[](<span class="keywordtype">void</span>*); |
---|
133 | 00176 |
---|
134 | 00177 <span class="keyword">public</span>: |
---|
135 | 00178 <span class="keyword">static</span> MemoryManager& instance(<span class="keywordtype">void</span>); |
---|
136 | 00179 |
---|
137 | 00180 <span class="keyword">private</span>: |
---|
138 | 00182 <span class="keywordtype">unsigned</span> m_uProcessIDs; |
---|
139 | 00184 <span class="keywordtype">bool</span> m_bDeinitTime; |
---|
140 | 00185 |
---|
141 | 00186 <span class="preprocessor">#ifndef __BORLANDC__</span> |
---|
142 | 00187 <span class="preprocessor"></span> <span class="keyword">private</span>: |
---|
143 | 00188 <span class="preprocessor">#else</span> |
---|
144 | 00189 <span class="preprocessor"></span> <span class="keyword">public</span>: |
---|
145 | 00190 <span class="preprocessor">#endif</span> |
---|
146 | 00191 <span class="preprocessor"></span> <span class="comment">//-------------------------------------------------------------------------</span> |
---|
147 | 00192 <span class="comment">// Wrappers for the new/delete functions </span> |
---|
148 | 00193 <span class="keywordtype">void</span> *op_new_sc( size_t reportedSize, <span class="keywordtype">unsigned</span> processID ); |
---|
149 | 00194 <span class="keywordtype">void</span> *op_new_vc( size_t reportedSize, <span class="keywordtype">unsigned</span> processID ); |
---|
150 | 00195 |
---|
151 | 00196 <span class="keywordtype">void</span> *op_new_sc( size_t reportedSize, <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFile, <span class="keywordtype">int</span> sourceLine, <span class="keywordtype">unsigned</span> processID ); |
---|
152 | 00197 <span class="keywordtype">void</span> *op_new_vc( size_t reportedSize, <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFile, <span class="keywordtype">int</span> sourceLine, <span class="keywordtype">unsigned</span> processID ); |
---|
153 | 00198 |
---|
154 | 00199 <span class="keywordtype">void</span> op_del_sc( <span class="keywordtype">void</span> *reportedAddress, <span class="keywordtype">unsigned</span> processID ); |
---|
155 | 00200 <span class="keywordtype">void</span> op_del_vc( <span class="keywordtype">void</span> *reportedAddress, <span class="keywordtype">unsigned</span> processID ); |
---|
156 | 00201 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
157 | 00202 |
---|
158 | 00217 <span class="keywordtype">unsigned</span> _getProcessID(); |
---|
159 | 00218 |
---|
160 | 00219 <span class="keyword">public</span>: |
---|
161 | 00220 MemoryManager(); |
---|
162 | 00221 ~MemoryManager(); |
---|
163 | 00222 |
---|
164 | 00223 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
165 | 00224 <span class="comment">// Used by the macros </span> |
---|
166 | 00225 <span class="keywordtype">void</span> setOwner(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func); |
---|
167 | 00226 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
168 | 00227 |
---|
169 | 00228 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
170 | 00229 <span class="comment">// Allocation breakpoints </span> |
---|
171 | 00230 <span class="keywordtype">bool</span> &breakOnRealloc(<span class="keywordtype">void</span> *reportedAddress); |
---|
172 | 00231 <span class="keywordtype">bool</span> &breakOnDealloc( <span class="keywordtype">void</span> *reportedAddress ); |
---|
173 | 00232 <span class="keywordtype">void</span> breakOnAlloc( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count ); |
---|
174 | 00233 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
175 | 00234 |
---|
176 | 00235 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
177 | 00236 <span class="comment">// The meat & potatoes of the memory tracking software</span> |
---|
178 | 00237 |
---|
179 | 00250 <span class="keywordtype">void</span> * allocMem( |
---|
180 | 00251 <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFile, |
---|
181 | 00252 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sourceLine, |
---|
182 | 00253 <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFunc, |
---|
183 | 00254 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> allocationType, |
---|
184 | 00255 <span class="keyword">const</span> size_t reportedSize, |
---|
185 | 00256 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> processID ); |
---|
186 | 00257 |
---|
187 | 00273 <span class="keywordtype">void</span> * rllocMem( |
---|
188 | 00274 <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFile, |
---|
189 | 00275 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sourceLine, |
---|
190 | 00276 <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFunc, |
---|
191 | 00277 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reallocationType, |
---|
192 | 00278 <span class="keyword">const</span> size_t reportedSize, |
---|
193 | 00279 <span class="keywordtype">void</span> *reportedAddress, |
---|
194 | 00280 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> processID ); |
---|
195 | 00281 |
---|
196 | 00304 <span class="keywordtype">void</span> dllocMem( |
---|
197 | 00305 <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFile, |
---|
198 | 00306 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sourceLine, |
---|
199 | 00307 <span class="keyword">const</span> <span class="keywordtype">char</span> *sourceFunc, |
---|
200 | 00308 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> deallocationType, |
---|
201 | 00309 <span class="keyword">const</span> <span class="keywordtype">void</span> *reportedAddress, |
---|
202 | 00310 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> processID ); |
---|
203 | 00311 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
204 | 00312 |
---|
205 | 00313 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
206 | 00314 <span class="comment">// Utilitarian functions </span> |
---|
207 | 00315 <span class="keywordtype">bool</span> validateAddr(<span class="keyword">const</span> <span class="keywordtype">void</span> *reportedAddress); |
---|
208 | 00316 <span class="keywordtype">bool</span> validateAlloc(<span class="keyword">const</span> sAllocUnit *allocUnit); |
---|
209 | 00317 <span class="keywordtype">bool</span> validateAllAllocs(); |
---|
210 | 00318 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
211 | 00319 |
---|
212 | 00320 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
213 | 00321 <span class="comment">// Unused RAM calculations </span> |
---|
214 | 00322 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> calcUnused( <span class="keyword">const</span> sAllocUnit *allocUnit ); |
---|
215 | 00323 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> calcAllUnused(); |
---|
216 | 00324 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
217 | 00325 |
---|
218 | 00326 <span class="comment">//-------------------------------------------------------------------------</span> |
---|
219 | 00327 <span class="comment">// Logging and reporting </span> |
---|
220 | 00328 <span class="keywordtype">void</span> dumpAllocUnit( <span class="keyword">const</span> sAllocUnit *allocUnit, <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix = <span class="stringliteral">""</span> ); |
---|
221 | 00329 <span class="keywordtype">void</span> dumpMemReport( <span class="keyword">const</span> <span class="keywordtype">char</span> *filename = <span class="stringliteral">"memreport.log"</span>, <span class="keyword">const</span> <span class="keywordtype">bool</span> overwrite = <span class="keyword">true</span> ); |
---|
222 | 00330 sMStats getMemStats(); |
---|
223 | 00331 <span class="comment">//------------------------------------------------------------------------- </span> |
---|
224 | 00332 }; |
---|
225 | 00333 } |
---|
226 | 00334 |
---|
227 | 00341 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> gProcessID = 0; |
---|
228 | 00342 |
---|
229 | 00343 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
230 | 00344 <span class="comment">// Overridden global new([])/delete([]) functions</span> |
---|
231 | 00345 <span class="comment">//</span> |
---|
232 | 00346 <span class="keyword">inline</span> <span class="keywordtype">void</span> *operator new(size_t reportedSize) |
---|
233 | 00347 { |
---|
234 | 00348 <span class="keywordflow">if</span>( !gProcessID ) |
---|
235 | 00349 gProcessID = <a class="code" href="classOgre_1_1MemoryManager.html#Ogre_1_1MemoryManagere0">Ogre::MemoryManager::instance</a>()._getProcessID(); |
---|
236 | 00350 <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1MemoryManager.html#Ogre_1_1MemoryManagere0">Ogre::MemoryManager::instance</a>().op_new_sc( reportedSize, gProcessID ); |
---|
237 | 00351 } |
---|
238 | 00352 <span class="keyword">inline</span> <span class="keywordtype">void</span> *operator new[](size_t reportedSize) |
---|
239 | 00353 { |
---|
240 | 00354 <span class="keywordflow">if</span>( !gProcessID ) |
---|
241 | 00355 gProcessID = <a class="code" href="classOgre_1_1MemoryManager.html#Ogre_1_1MemoryManagere0">Ogre::MemoryManager::instance</a>()._getProcessID(); |
---|
242 | 00356 <span class="keywordflow">return</span> <a class="code" href="classOgre_1_1MemoryManager.html#Ogre_1_1MemoryManagere0">Ogre::MemoryManager::instance</a>().op_new_vc( reportedSize, gProcessID ); |
---|
243 | 00357 } |
---|
244 | 00358 |
---|
245 | 00359 <span class="keyword">inline</span> <span class="keywordtype">void</span> operator delete(<span class="keywordtype">void</span> *reportedAddress) |
---|
246 | 00360 { |
---|
247 | 00361 <a class="code" href="classOgre_1_1MemoryManager.html#Ogre_1_1MemoryManagere0">Ogre::MemoryManager::instance</a>().op_del_sc( reportedAddress, gProcessID ); |
---|
248 | 00362 } |
---|
249 | 00363 <span class="keyword">inline</span> <span class="keywordtype">void</span> operator delete[](<span class="keywordtype">void</span> *reportedAddress) |
---|
250 | 00364 { |
---|
251 | 00365 <a class="code" href="classOgre_1_1MemoryManager.html#Ogre_1_1MemoryManagere0">Ogre::MemoryManager::instance</a>().op_del_vc( reportedAddress, gProcessID ); |
---|
252 | 00366 } |
---|
253 | 00367 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
254 | 00368 |
---|
255 | 00369 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
256 | 00370 <span class="comment">// This header adds the *alloc/free macros, wrapping the C functions</span> |
---|
257 | 00371 <span class="preprocessor">#include "<a class="code" href="OgreMemoryMacros_8h.html">OgreMemoryMacros.h</a>"</span> |
---|
258 | 00372 <span class="comment">//-----------------------------------------------------------------------------</span> |
---|
259 | 00373 |
---|
260 | 00374 <span class="preprocessor">#else</span> |
---|
261 | 00375 <span class="preprocessor"></span> |
---|
262 | <a name="l00378"></a><a class="code" href="classOgre_1_1MemoryManager.html">00378</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> MemoryManager |
---|
263 | 00379 { |
---|
264 | 00380 <span class="keyword">public</span>: |
---|
265 | 00381 <span class="keyword">static</span> MemoryManager& instance(<span class="keywordtype">void</span>); |
---|
266 | 00382 |
---|
267 | 00383 MemoryManager(); |
---|
268 | 00384 ~MemoryManager(); |
---|
269 | 00385 |
---|
270 | 00388 <span class="keywordtype">void</span> *allocMem( <span class="keyword">const</span> <span class="keywordtype">char</span> *szFile, size_t uLine, size_t count ) <span class="keywordflow">throw</span> ( ); |
---|
271 | 00389 |
---|
272 | 00392 <span class="keywordtype">void</span> *rllocMem( <span class="keyword">const</span> <span class="keywordtype">char</span> *szFile, size_t uLine, <span class="keywordtype">void</span> *ptr , size_t count ) <span class="keywordflow">throw</span> ( ); |
---|
273 | 00393 |
---|
274 | 00396 <span class="keywordtype">void</span> *cllocMem( <span class="keyword">const</span> <span class="keywordtype">char</span> *szFile, size_t uLine, size_t num, size_t size ) <span class="keywordflow">throw</span> ( ); |
---|
275 | 00397 |
---|
276 | 00400 <span class="keywordtype">void</span> dllocMem( <span class="keyword">const</span> <span class="keywordtype">char</span> *szFile, size_t uLine, <span class="keywordtype">void</span> *ptr ) <span class="keywordflow">throw</span> ( ); |
---|
277 | 00401 }; |
---|
278 | 00402 |
---|
279 | 00403 } |
---|
280 | 00404 |
---|
281 | 00405 <span class="preprocessor">#endif</span> |
---|
282 | 00406 <span class="preprocessor"></span> |
---|
283 | 00407 <span class="preprocessor">#endif</span> |
---|
284 | 00408 <span class="preprocessor"></span> |
---|
285 | </pre></div><hr> |
---|
286 | <p> |
---|
287 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
288 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
289 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
290 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
291 | <Work rdf:about=""> |
---|
292 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
293 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
294 | </Work> |
---|
295 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
296 | |
---|
297 | Last modified Sun Feb 12 12:59:47 2006 |
---|
298 | </p> |
---|
299 | </body> |
---|
300 | </html> |
---|