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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla Simple API Documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1XMemory.html">XMemory</a>
</div>
</div>
<div class="contents">
<h1>xercesc::XMemory Class Reference</h1><!-- doxytag: class="xercesc::XMemory" -->
<p>This class makes it possible to override the C++ memory management by adding new/delete operators to this base class.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="XMemory_8hpp_source.html">XMemory.hpp</a>></code></p>
<div class="dynheader">
Inheritance diagram for xercesc::XMemory:</div>
<div class="dynsection">
<div class="center"><img src="classxercesc_1_1XMemory__inherit__graph.png" border="0" usemap="#xercesc_1_1XMemory_inherit__map" alt="Inheritance graph"/></div>
<map name="xercesc_1_1XMemory_inherit__map" id="xercesc_1_1XMemory_inherit__map">
<area shape="rect" id="node3" href="classDocumentCache.html" title="Expression Context is a storage for contexts." alt="" coords="241,5,377,35"/><area shape="rect" id="node5" href="classItemFactory.html" title="ItemFactory" alt="" coords="256,59,363,88"/><area shape="rect" id="node7" href="classModuleCache.html" title="ModuleCache" alt="" coords="253,112,365,141"/><area shape="rect" id="node9" href="classScope.html" title="used inside VariableStore to implement variable scoping" alt="" coords="247,165,372,195"/><area shape="rect" id="node11" href="classSequence.html" title="An eagerly evaluated result of a query execution." alt="" coords="265,219,353,248"/><area shape="rect" id="node13" href="classSequenceBuilder.html" title="SequenceBuilder" alt="" coords="243,272,376,301"/><area shape="rect" id="node15" href="classStaticContext.html" title="The parse time static context interface." alt="" coords="249,325,369,355"/><area shape="rect" id="node19" href="classStaticType.html" title="Class that represents the static type of an expression." alt="" coords="263,379,356,408"/><area shape="rect" id="node21" href="classUpdateFactory.html" title="UpdateFactory" alt="" coords="248,432,371,461"/><area shape="rect" id="node23" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways." alt="" coords="259,485,360,515"/><area shape="rect" id="node25" href="classVarHashEntry.html" title="The class that stores the values of the variables." alt="" coords="221,539,397,568"/><area shape="rect" id="node27" href="classVariableTypeStore.html" title="This is the wrapper class for the variable store, which implements the lookup and..." alt="" coords="239,592,380,621"/><area shape="rect" id="node29" href="classxercesc_1_1InputSource.html" title="A single input source for an XML entity." alt="" coords="227,645,392,675"/><area shape="rect" id="node39" href="classxercesc_1_1XMLFormatTarget.html" title="xercesc::XMLFormatTarget" alt="" coords="207,699,412,728"/><area shape="rect" id="node47" href="classxercesc_1_1XMLFormatter.html" title="This class provides the basic formatting capabilities that are required to turn the..." alt="" coords="217,752,401,781"/><area shape="rect" id="node49" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects." alt="" coords="280,805,339,835"/><area shape="rect" id="node51" href="classXQillaConfiguration.html" title="XQillaConfiguration" alt="" coords="236,859,383,888"/><area shape="rect" id="node57" href="classXQQuery.html" title="Encapsulates a query expression." alt="" coords="268,912,351,941"/><area shape="rect" id="node17" href="classDynamicContext.html" title="The execution time dynamic context interface." alt="" coords="509,325,648,355"/><area shape="rect" id="node31" href="classxercesc_1_1LocalFileInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="467,485,691,515"/><area shape="rect" id="node33" href="classxercesc_1_1MemBufInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="467,539,691,568"/><area shape="rect" id="node35" href="classxercesc_1_1StdInInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="477,592,680,621"/><area shape="rect" id="node37" href="classxercesc_1_1URLInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="481,645,676,675"/><area shape="rect" id="node41" href="classxercesc_1_1LocalFileFormatTarget.html" title="xercesc::LocalFileFormatTarget" alt="" coords="461,699,696,728"/><area shape="rect" id="node43" href="classxercesc_1_1MemBufFormatTarget.html" title="xercesc::MemBufFormatTarget" alt="" coords="461,752,696,781"/><area shape="rect" id="node45" href="classxercesc_1_1StdOutFormatTarget.html" title="xercesc::StdOutFormatTarget" alt="" coords="465,805,692,835"/><area shape="rect" id="node53" href="classFastXDMConfiguration.html" title="FastXDMConfiguration" alt="" coords="493,859,664,888"/><area shape="rect" id="node55" href="classXercesConfiguration.html" title="XercesConfiguration" alt="" coords="500,912,657,941"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classxercesc_1_1XMemory-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">The C++ memory management</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpaaeac16ab2f374eb80533e5c47928b22"></a> </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#a6f187594d0fb37d1472dacc1a3aad3d9">operator new</a> (size_t size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method overrides operator new. <a href="#a6f187594d0fb37d1472dacc1a3aad3d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#a7f41eef0d509e5eff717599647942a0f">operator new</a> (size_t size, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *memMgr)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method defines a custom operator new, that will use the provided memory manager to perform the allocation. <a href="#a7f41eef0d509e5eff717599647942a0f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#a6beea8ceedc7e13c15c3a9f8a784396a">operator new</a> (size_t size, void *ptr)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method overrides placement operator new. <a href="#a6beea8ceedc7e13c15c3a9f8a784396a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#a95212a8b8a0e3778c7bf3cf0f0a59aed">operator delete</a> (void *p)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method overrides operator delete. <a href="#a95212a8b8a0e3778c7bf3cf0f0a59aed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#af2335addd6a2bb6cc7bb1df630d05eeb">operator delete</a> (void *p, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *memMgr)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method provides a matching delete for the custom operator new. <a href="#af2335addd6a2bb6cc7bb1df630d05eeb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#a47791b65820d24581920532a88c37e75">operator delete</a> (void *p, void *ptr)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This method provides a matching delete for the placement new. <a href="#a47791b65820d24581920532a88c37e75"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructor</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp678d0a4421b60dc59999ac02837496a6"></a> </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#ac0d26f65a82ff229bc1e4dbaaac79e84">XMemory</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Protected default constructor. <a href="#ac0d26f65a82ff229bc1e4dbaaac79e84"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class makes it possible to override the C++ memory management by adding new/delete operators to this base class. </p>
<p>This class is used in conjunction with the pluggable memory manager. It allows applications to control Xerces memory management. </p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="ac0d26f65a82ff229bc1e4dbaaac79e84"></a><!-- doxytag: member="xercesc::XMemory::XMemory" ref="ac0d26f65a82ff229bc1e4dbaaac79e84" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">xercesc::XMemory::XMemory </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Protected default constructor. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a47791b65820d24581920532a88c37e75"></a><!-- doxytag: member="xercesc::XMemory::operator delete" ref="a47791b65820d24581920532a88c37e75" args="(void *p, void *ptr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xercesc::XMemory::operator delete </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>ptr</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method provides a matching delete for the placement new. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>The pointer to the allocated memory </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ptr</em> </td><td>The memory location where the object had to be allocated </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af2335addd6a2bb6cc7bb1df630d05eeb"></a><!-- doxytag: member="xercesc::XMemory::operator delete" ref="af2335addd6a2bb6cc7bb1df630d05eeb" args="(void *p, MemoryManager *memMgr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xercesc::XMemory::operator delete </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> * </td>
<td class="paramname"> <em>memMgr</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method provides a matching delete for the custom operator new. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>The pointer to the allocated memory </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em> </td><td>An application's memory manager </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a95212a8b8a0e3778c7bf3cf0f0a59aed"></a><!-- doxytag: member="xercesc::XMemory::operator delete" ref="a95212a8b8a0e3778c7bf3cf0f0a59aed" args="(void *p)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xercesc::XMemory::operator delete </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>p</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method overrides operator delete. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>The pointer to the allocated memory </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6beea8ceedc7e13c15c3a9f8a784396a"></a><!-- doxytag: member="xercesc::XMemory::operator new" ref="a6beea8ceedc7e13c15c3a9f8a784396a" args="(size_t size, void *ptr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* xercesc::XMemory::operator new </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>ptr</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method overrides placement operator new. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>The requested memory size </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ptr</em> </td><td>The memory location where the object should be allocated </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a7f41eef0d509e5eff717599647942a0f"></a><!-- doxytag: member="xercesc::XMemory::operator new" ref="a7f41eef0d509e5eff717599647942a0f" args="(size_t size, MemoryManager *memMgr)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* xercesc::XMemory::operator new </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> * </td>
<td class="paramname"> <em>memMgr</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method defines a custom operator new, that will use the provided memory manager to perform the allocation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>The requested memory size </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em> </td><td>An application's memory manager </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6f187594d0fb37d1472dacc1a3aad3d9"></a><!-- doxytag: member="xercesc::XMemory::operator new" ref="a6f187594d0fb37d1472dacc1a3aad3d9" args="(size_t size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* xercesc::XMemory::operator new </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>size</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This method overrides operator new. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>The requested memory size </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XMemory_8hpp_source.html">XMemory.hpp</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on 18 May 2015 for XQilla Simple API by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
|