XQuilla/docs/simple-api/classxercesc_1_1XMemory.html

356 lines
16 KiB
HTML
Raw Normal View History

2020-02-17 22:05:20 +01:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
2020-02-17 22:11:31 +01:00
<title>XQilla Simple API Documentation</title>
2020-02-17 22:05:20 +01:00
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
2020-02-17 22:11:31 +01:00
<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>
2020-02-17 22:19:08 +01:00
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
<h1>xercesc::XMemory Class Reference</h1>This class makes it possible to override the C++ memory management by adding new/delete operators to this base class.
2020-02-17 22:05:20 +01:00
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="XMemory_8hpp-source.html">XMemory.hpp</a>&gt;</code>
<p>
2020-02-17 22:19:08 +01:00
Inheritance diagram for xercesc::XMemory:<p><center><img src="classxercesc_1_1XMemory__inherit__graph.png" border="0" usemap="#xercesc_1_1XMemory__inherit__map" alt="Inheritance graph"></center>
2020-02-17 22:05:20 +01:00
<map name="xercesc_1_1XMemory__inherit__map">
2020-02-17 22:19:08 +01:00
<area href="classDocumentCache.html" shape="rect" coords="217,5,337,29" alt="">
<area href="classItemFactory.html" shape="rect" coords="232,53,323,77" alt="">
<area href="classScope.html" shape="rect" coords="220,101,335,125" alt="">
<area href="classSequence.html" shape="rect" coords="237,149,317,173" alt="">
<area href="classSequenceBuilder.html" shape="rect" coords="216,197,339,221" alt="">
<area href="classStaticContext.html" shape="rect" coords="228,245,327,269" alt="">
<area href="classStaticType.html" shape="rect" coords="236,293,319,317" alt="">
<area href="classUpdateFactory.html" shape="rect" coords="224,341,331,365" alt="">
<area href="classURIResolver.html" shape="rect" coords="229,389,325,413" alt="">
<area href="classVarHashEntry.html" shape="rect" coords="197,437,357,461" alt="">
<area href="classVariableTypeStore.html" shape="rect" coords="212,485,343,509" alt="">
<area href="classxercesc_1_1InputSource.html" shape="rect" coords="204,533,351,557" alt="">
<area href="classxercesc_1_1XMLFormatTarget.html" shape="rect" coords="188,581,367,605" alt="">
<area href="classxercesc_1_1XMLFormatter.html" shape="rect" coords="197,629,357,653" alt="">
<area href="classXQilla.html" shape="rect" coords="248,677,307,701" alt="">
<area href="classXQillaConfiguration.html" shape="rect" coords="209,725,345,749" alt="">
<area href="classXQQuery.html" shape="rect" coords="239,773,316,797" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxercesc_1_1XMemory-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
2020-02-17 22:05:20 +01:00
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">The C++ memory management</div></td></tr>
2020-02-17 22:19:08 +01:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z19_0">operator new</a> (size_t size)</td></tr>
2020-02-17 22:05:20 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method overrides operator new. <a href="#z19_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z19_1">operator new</a> (size_t size, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *memMgr)</td></tr>
2020-02-17 22:05:20 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method defines a custom operator new, that will use the provided memory manager to perform the allocation. <a href="#z19_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z19_2">operator new</a> (size_t size, void *ptr)</td></tr>
2020-02-17 22:05:20 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method overrides placement operator new. <a href="#z19_2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z19_3">operator delete</a> (void *p)</td></tr>
2020-02-17 22:05:20 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method overrides operator delete. <a href="#z19_3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z19_4">operator delete</a> (void *p, <a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *memMgr)</td></tr>
2020-02-17 22:05:20 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method provides a matching delete for the custom operator new. <a href="#z19_4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z19_5">operator delete</a> (void *p, void *ptr)</td></tr>
2020-02-17 22:05:20 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method provides a matching delete for the placement new. <a href="#z19_5"></a><br></td></tr>
2020-02-17 22:17:06 +01:00
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructor</div></td></tr>
2020-02-17 22:19:08 +01:00
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1XMemory.html#z21_0">XMemory</a> ()</td></tr>
2020-02-17 22:17:06 +01:00
2020-02-17 22:19:08 +01:00
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Protected default constructor. <a href="#z21_0"></a><br></td></tr>
2020-02-17 22:05:20 +01:00
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class makes it possible to override the C++ memory management by adding new/delete operators to this base class.
<p>
2020-02-17 22:19:08 +01:00
This class is used in conjuction with the pluggable memory manager. It allows applications to control Xerces memory management.
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="z21_0" doxytag="xercesc::XMemory::XMemory"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
2020-02-17 22:05:20 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap valign="top">xercesc::XMemory::XMemory </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [inline, protected]</code></td>
2020-02-17 22:05:20 +01:00
</tr>
2020-02-17 22:10:06 +01:00
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:10:06 +01:00
<p>
Protected default constructor.
<p>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
2020-02-17 22:10:06 +01:00
<hr><h2>Member Function Documentation</h2>
2020-02-17 22:19:08 +01:00
<a class="anchor" name="z19_5" doxytag="xercesc::XMemory::operator delete"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void xercesc::XMemory::operator delete </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void *&nbsp;</td>
<td class="mdname" nowrap> <em>p</em>, </td>
</tr>
2020-02-17 22:05:20 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>void *&nbsp;</td>
<td class="mdname" nowrap> <em>ptr</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
2020-02-17 22:05:20 +01:00
</tr>
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:05:20 +01:00
<p>
2020-02-17 22:19:08 +01:00
This method provides a matching delete for the placement new.
2020-02-17 22:05:20 +01:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 22:19:08 +01:00
<tr><td valign="top"></td><td valign="top"><em>p</em>&nbsp;</td><td>The pointer to the allocated memory </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ptr</em>&nbsp;</td><td>The memory location where the object had to be allocated </td></tr>
2020-02-17 22:05:20 +01:00
</table>
</dl>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<a class="anchor" name="z19_4" doxytag="xercesc::XMemory::operator delete"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
2020-02-17 22:05:20 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap valign="top">void xercesc::XMemory::operator delete </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void *&nbsp;</td>
<td class="mdname" nowrap> <em>p</em>, </td>
2020-02-17 22:05:20 +01:00
</tr>
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>memMgr</em></td>
2020-02-17 22:05:20 +01:00
</tr>
<tr>
2020-02-17 22:19:08 +01:00
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
2020-02-17 22:05:20 +01:00
</tr>
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:05:20 +01:00
<p>
2020-02-17 22:19:08 +01:00
This method provides a matching delete for the custom operator new.
2020-02-17 22:05:20 +01:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 22:19:08 +01:00
<tr><td valign="top"></td><td valign="top"><em>p</em>&nbsp;</td><td>The pointer to the allocated memory </td></tr>
2020-02-17 22:05:20 +01:00
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>An application's memory manager </td></tr>
</table>
</dl>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<a class="anchor" name="z19_3" doxytag="xercesc::XMemory::operator delete"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
2020-02-17 22:10:06 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap valign="top">void xercesc::XMemory::operator delete </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
2020-02-17 22:05:20 +01:00
</tr>
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:05:20 +01:00
<p>
2020-02-17 22:19:08 +01:00
This method overrides operator delete.
2020-02-17 22:05:20 +01:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 22:19:08 +01:00
<tr><td valign="top"></td><td valign="top"><em>p</em>&nbsp;</td><td>The pointer to the allocated memory </td></tr>
2020-02-17 22:05:20 +01:00
</table>
</dl>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<a class="anchor" name="z19_2" doxytag="xercesc::XMemory::operator new"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void* xercesc::XMemory::operator new </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">size_t&nbsp;</td>
<td class="mdname" nowrap> <em>size</em>, </td>
</tr>
2020-02-17 22:05:20 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>void *&nbsp;</td>
<td class="mdname" nowrap> <em>ptr</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
2020-02-17 22:05:20 +01:00
</tr>
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:05:20 +01:00
<p>
2020-02-17 22:19:08 +01:00
This method overrides placement operator new.
2020-02-17 22:05:20 +01:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 22:19:08 +01:00
<tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The requested memory size </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ptr</em>&nbsp;</td><td>The memory location where the object should be allocated </td></tr>
2020-02-17 22:05:20 +01:00
</table>
</dl>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<a class="anchor" name="z19_1" doxytag="xercesc::XMemory::operator new"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
2020-02-17 22:05:20 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap valign="top">void* xercesc::XMemory::operator new </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">size_t&nbsp;</td>
<td class="mdname" nowrap> <em>size</em>, </td>
2020-02-17 22:05:20 +01:00
</tr>
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">MemoryManager</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>memMgr</em></td>
2020-02-17 22:05:20 +01:00
</tr>
<tr>
2020-02-17 22:19:08 +01:00
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
2020-02-17 22:05:20 +01:00
</tr>
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:05:20 +01:00
<p>
2020-02-17 22:19:08 +01:00
This method defines a custom operator new, that will use the provided memory manager to perform the allocation.
2020-02-17 22:05:20 +01:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 22:19:08 +01:00
<tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The requested memory size </td></tr>
2020-02-17 22:05:20 +01:00
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>An application's memory manager </td></tr>
</table>
</dl>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<a class="anchor" name="z19_0" doxytag="xercesc::XMemory::operator new"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
2020-02-17 22:05:20 +01:00
<tr>
2020-02-17 22:19:08 +01:00
<td class="md" nowrap valign="top">void* xercesc::XMemory::operator new </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">size_t&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>size</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
2020-02-17 22:05:20 +01:00
</tr>
</table>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
2020-02-17 22:05:20 +01:00
<p>
2020-02-17 22:19:08 +01:00
This method overrides operator new.
2020-02-17 22:05:20 +01:00
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
2020-02-17 22:19:08 +01:00
<tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The requested memory size </td></tr>
2020-02-17 22:05:20 +01:00
</table>
</dl>
2020-02-17 22:19:08 +01:00
</td>
</tr>
</table>
2020-02-17 22:05:20 +01:00
<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></ul>
2020-02-17 22:19:08 +01:00
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:42 2009 for XQilla Simple API by&nbsp;
2020-02-17 22:05:20 +01:00
<a href="http://www.doxygen.org/index.html">
2020-02-17 22:19:08 +01:00
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
2020-02-17 22:05:20 +01:00
</body>
</html>