XQuilla/docs/simple-api/classxercesc_1_1XMemory.html
2020-02-17 22:22:42 +01:00

299 lines
18 KiB
HTML

<!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&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.7.3 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacexercesc.html">xercesc</a> </li>
<li class="navelem"><a class="el" href="classxercesc_1_1XMemory.html">XMemory</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>xercesc::XMemory Class Reference</h1> </div>
</div>
<div class="contents">
<!-- 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 &lt;<a class="el" href="XMemory_8hpp_source.html">XMemory.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for xercesc::XMemory:</div>
<div class="dyncontent">
<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="217,5,337,35"/><area shape="rect" id="node5" href="classItemFactory.html" title="ItemFactory" alt="" coords="232,59,323,88"/><area shape="rect" id="node7" href="classModuleCache.html" title="ModuleCache" alt="" coords="227,112,328,141"/><area shape="rect" id="node9" href="classScope.html" title="used inside VariableStore to implement variable scoping" alt="" coords="219,165,336,195"/><area shape="rect" id="node11" href="classSequence.html" title="An eagerly evaluated result of a query execution." alt="" coords="237,219,317,248"/><area shape="rect" id="node13" href="classSequenceBuilder.html" title="SequenceBuilder" alt="" coords="217,272,337,301"/><area shape="rect" id="node15" href="classStaticContext.html" title="The parse time static context interface." alt="" coords="227,325,328,355"/><area shape="rect" id="node19" href="classStaticType.html" title="Class that represents the static type of an expression." alt="" coords="235,379,320,408"/><area shape="rect" id="node21" href="classUpdateFactory.html" title="UpdateFactory" alt="" coords="224,432,331,461"/><area shape="rect" id="node23" href="classURIResolver.html" title="This is an abstract class used to resolve URIs in different ways." alt="" coords="228,485,327,515"/><area shape="rect" id="node25" href="classVarHashEntry.html" title="The class that stores the values of the variables." alt="" coords="196,539,359,568"/><area shape="rect" id="node27" href="classVariableTypeStore.html" title="This is the wrapper class for the variable store, which implements the lookup and scoping of simple v..." alt="" coords="213,592,341,621"/><area shape="rect" id="node29" href="classxercesc_1_1InputSource.html" title="A single input source for an XML entity." alt="" coords="204,645,351,675"/><area shape="rect" id="node39" href="classxercesc_1_1XMLFormatTarget.html" title="xercesc::XMLFormatTarget" alt="" coords="187,699,368,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 Unicode based XML..." alt="" coords="199,752,356,781"/><area shape="rect" id="node49" href="classXQilla.html" title="Provides factory methods for creating XQQuery and DynamicContext objects." alt="" coords="249,805,305,835"/><area shape="rect" id="node51" href="classXQillaConfiguration.html" title="XQillaConfiguration" alt="" coords="211,859,344,888"/><area shape="rect" id="node57" href="classXQQuery.html" title="Encapsulates a query expression." alt="" coords="240,912,315,941"/><area shape="rect" id="node17" href="classDynamicContext.html" title="The execution time dynamic context interface." alt="" coords="460,325,580,355"/><area shape="rect" id="node31" href="classxercesc_1_1LocalFileInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="421,485,619,515"/><area shape="rect" id="node33" href="classxercesc_1_1MemBufInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="423,539,617,568"/><area shape="rect" id="node35" href="classxercesc_1_1StdInInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="432,592,608,621"/><area shape="rect" id="node37" href="classxercesc_1_1URLInputSource.html" title="This class is a derivative of the standard InputSource class." alt="" coords="433,645,607,675"/><area shape="rect" id="node41" href="classxercesc_1_1LocalFileFormatTarget.html" title="xercesc::LocalFileFormatTarget" alt="" coords="417,699,623,728"/><area shape="rect" id="node43" href="classxercesc_1_1MemBufFormatTarget.html" title="xercesc::MemBufFormatTarget" alt="" coords="419,752,621,781"/><area shape="rect" id="node45" href="classxercesc_1_1StdOutFormatTarget.html" title="xercesc::StdOutFormatTarget" alt="" coords="423,805,617,835"/><area shape="rect" id="node53" href="classFastXDMConfiguration.html" title="FastXDMConfiguration" alt="" coords="443,859,597,888"/><area shape="rect" id="node55" href="classXercesConfiguration.html" title="XercesConfiguration" alt="" coords="451,912,589,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 class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">The C++ memory management</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void *&#160;</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">&#160;</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 *&#160;</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">&#160;</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 *&#160;</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">&#160;</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&#160;</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">&#160;</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&#160;</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">&#160;</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&#160;</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">&#160;</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><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructor</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#ac0d26f65a82ff229bc1e4dbaaac79e84">XMemory</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Protected default constructor. <a href="#ac0d26f65a82ff229bc1e4dbaaac79e84"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><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 conjuction with the pluggable memory manager. It allows applications to control Xerces memory management. </p>
</div><hr/><h2>Constructor &amp; 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="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 *&#160;</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 class="params">
<tr><td class="paramname">p</td><td>The pointer to the allocated memory </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 *&#160;</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> *&#160;</td>
<td class="paramname"><em>memMgr</em>&#160;</td>
</tr>
<tr>
<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 class="params">
<tr><td class="paramname">p</td><td>The pointer to the allocated memory </td></tr>
<tr><td class="paramname">memMgr</td><td>An application's memory manager </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<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 *&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>ptr</em>&#160;</td>
</tr>
<tr>
<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 class="params">
<tr><td class="paramname">p</td><td>The pointer to the allocated memory </td></tr>
<tr><td class="paramname">ptr</td><td>The memory location where the object had to 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&#160;</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> *&#160;</td>
<td class="paramname"><em>memMgr</em>&#160;</td>
</tr>
<tr>
<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 class="params">
<tr><td class="paramname">size</td><td>The requested memory size </td></tr>
<tr><td class="paramname">memMgr</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&#160;</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 class="params">
<tr><td class="paramname">size</td><td>The requested memory size </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&#160;</td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>ptr</em>&#160;</td>
</tr>
<tr>
<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 class="params">
<tr><td class="paramname">size</td><td>The requested memory size </td></tr>
<tr><td class="paramname">ptr</td><td>The memory location where the object should be allocated </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 class="footer"/><address class="footer"><small>Generated on Mon Oct 31 2011 19:08:35 for XQilla Simple API by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>