You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

431 lines
24 KiB

  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. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>Xerces-C++: DOMMemoryManager Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">Xerces-C++
  21. &#160;<span id="projectnumber">3.1.2</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. <!-- end header part -->
  29. <!-- Generated by Doxygen 1.8.9.1 -->
  30. <div id="navrow1" class="tabs">
  31. <ul class="tablist">
  32. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  33. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  34. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  35. <li><a href="files.html"><span>Files</span></a></li>
  36. </ul>
  37. </div>
  38. <div id="navrow2" class="tabs2">
  39. <ul class="tablist">
  40. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  41. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  42. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  43. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  44. </ul>
  45. </div>
  46. </div><!-- top -->
  47. <div class="header">
  48. <div class="summary">
  49. <a href="#pub-types">Public Types</a> &#124;
  50. <a href="classDOMMemoryManager-members.html">List of all members</a> </div>
  51. <div class="headertitle">
  52. <div class="title">DOMMemoryManager Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  53. </div><!--header-->
  54. <div class="contents">
  55. <p>The <code><a class="el" href="classDOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities of a DOMDocument...">DOMMemoryManager</a></code> interface exposes the memory allocation-related functionalities of a <code><a class="el" href="classDOMDocument.html" title="The DOMDocument interface represents the entire XML document. ">DOMDocument</a></code>
  56. <a href="classDOMMemoryManager.html#details">More...</a></p>
  57. <table class="memberdecls">
  58. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  59. Public Types</h2></td></tr>
  60. <tr class="memitem:a204df2f42dde53d6b6c30c3ca46e27b1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1">NodeObjectType</a> { <br />
  61. &#160;&#160;<a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1ad5cfa34c934527ff8f5f8a53459c923c">ATTR_OBJECT</a> = 0,
  62. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1ab7fd2a25a694520341224ed6ff032d40">ATTR_NS_OBJECT</a> = 1,
  63. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1a60b25457a0f1e8a4e40469eb30325e96">CDATA_SECTION_OBJECT</a> = 2,
  64. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1add02e894262059c2bfc42396aa5d0f74">COMMENT_OBJECT</a> = 3,
  65. <br />
  66. &#160;&#160;<a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1ac4c27446f78089e0525197cbed77f3dc">DOCUMENT_FRAGMENT_OBJECT</a> = 4,
  67. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1ab4b79e3ed0f67394cb8f1cbbc525d341">DOCUMENT_TYPE_OBJECT</a> = 5,
  68. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1a0ccde53ba19e8e540efc8b15232e792c">ELEMENT_OBJECT</a> = 6,
  69. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1af9d48f846414d0f23b1f4c094fccc958">ELEMENT_NS_OBJECT</a> = 7,
  70. <br />
  71. &#160;&#160;<a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1af80e82759d98a1fba66ed00c63871805">ENTITY_OBJECT</a> = 8,
  72. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1aed024ba957c0d64c3040b98e2f110fa9">ENTITY_REFERENCE_OBJECT</a> = 9,
  73. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1a941da709a628b2b292b7b82a09271b7e">NOTATION_OBJECT</a> = 10,
  74. <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1abfae514728836b3c1b41e7b9d3ce4609">PROCESSING_INSTRUCTION_OBJECT</a> = 11,
  75. <br />
  76. &#160;&#160;<a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1abb73daebe6be1b19430e0c7c92fe664c">TEXT_OBJECT</a> = 12
  77. <br />
  78. }</td></tr>
  79. <tr class="separator:a204df2f42dde53d6b6c30c3ca46e27b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. </table><table class="memberdecls">
  81. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  82. Public Member Functions</h2></td></tr>
  83. <tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
  84. <tr class="memitem:a8e84f1a479924e27311d03e818c1bdf5"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#a8e84f1a479924e27311d03e818c1bdf5">~DOMMemoryManager</a> ()</td></tr>
  85. <tr class="memdesc:a8e84f1a479924e27311d03e818c1bdf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <a href="#a8e84f1a479924e27311d03e818c1bdf5">More...</a><br /></td></tr>
  86. <tr class="separator:a8e84f1a479924e27311d03e818c1bdf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
  88. <tr class="memitem:ae5d3f6c25b749592885a3e8e343be17d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#ae5d3f6c25b749592885a3e8e343be17d">getMemoryAllocationBlockSize</a> () const =0</td></tr>
  89. <tr class="memdesc:ae5d3f6c25b749592885a3e8e343be17d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the chunks of memory allocated by the memory manager. <a href="#ae5d3f6c25b749592885a3e8e343be17d">More...</a><br /></td></tr>
  90. <tr class="separator:ae5d3f6c25b749592885a3e8e343be17d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
  92. <tr class="memitem:ab8be3b7267aee9f065540f4d2aca8473"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#ab8be3b7267aee9f065540f4d2aca8473">setMemoryAllocationBlockSize</a> (<a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> size)=0</td></tr>
  93. <tr class="memdesc:ab8be3b7267aee9f065540f4d2aca8473"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the size of the chunks of memory allocated by the memory manager. <a href="#ab8be3b7267aee9f065540f4d2aca8473">More...</a><br /></td></tr>
  94. <tr class="separator:ab8be3b7267aee9f065540f4d2aca8473"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr><td colspan="2"><div class="groupHeader"></div></td></tr>
  96. <tr class="memitem:a8f2a6eb58cbc23b34578dd86053e0009"><td class="memItemLeft" align="right" valign="top">virtual void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#a8f2a6eb58cbc23b34578dd86053e0009">allocate</a> (<a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> amount)=0</td></tr>
  97. <tr class="memdesc:a8f2a6eb58cbc23b34578dd86053e0009"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a memory block of the requested size from the managed pool. <a href="#a8f2a6eb58cbc23b34578dd86053e0009">More...</a><br /></td></tr>
  98. <tr class="separator:a8f2a6eb58cbc23b34578dd86053e0009"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a0ad243c3259c64f87be03ae9cf0f76c4"><td class="memItemLeft" align="right" valign="top">virtual void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#a0ad243c3259c64f87be03ae9cf0f76c4">allocate</a> (<a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> amount, <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1">DOMMemoryManager::NodeObjectType</a> type)=0</td></tr>
  100. <tr class="memdesc:a0ad243c3259c64f87be03ae9cf0f76c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a memory block of the requested size from the managed pool of DOM objects. <a href="#a0ad243c3259c64f87be03ae9cf0f76c4">More...</a><br /></td></tr>
  101. <tr class="separator:a0ad243c3259c64f87be03ae9cf0f76c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a507e1458fc07f91096ec36fe3e5e809c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#a507e1458fc07f91096ec36fe3e5e809c">release</a> (<a class="el" href="classDOMNode.html">DOMNode</a> *object, <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1">DOMMemoryManager::NodeObjectType</a> type)=0</td></tr>
  103. <tr class="memdesc:a507e1458fc07f91096ec36fe3e5e809c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release a DOM object and place its memory back in the pool. <a href="#a507e1458fc07f91096ec36fe3e5e809c">More...</a><br /></td></tr>
  104. <tr class="separator:a507e1458fc07f91096ec36fe3e5e809c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a06d5f3b2247df46e2d62e3418cc703d4"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#a06d5f3b2247df46e2d62e3418cc703d4">cloneString</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *src)=0</td></tr>
  106. <tr class="memdesc:a06d5f3b2247df46e2d62e3418cc703d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a memory block from the mnaged pool and copy the provided string. <a href="#a06d5f3b2247df46e2d62e3418cc703d4">More...</a><br /></td></tr>
  107. <tr class="separator:a06d5f3b2247df46e2d62e3418cc703d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. </table><table class="memberdecls">
  109. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  110. Protected Member Functions</h2></td></tr>
  111. <tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
  112. <tr class="memitem:acd7d61638fa0f9e301de4a28501e8ec6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMMemoryManager.html#acd7d61638fa0f9e301de4a28501e8ec6">DOMMemoryManager</a> ()</td></tr>
  113. <tr class="separator:acd7d61638fa0f9e301de4a28501e8ec6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. </table>
  115. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  116. <div class="textblock"><p>The <code><a class="el" href="classDOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities of a DOMDocument...">DOMMemoryManager</a></code> interface exposes the memory allocation-related functionalities of a <code><a class="el" href="classDOMDocument.html" title="The DOMDocument interface represents the entire XML document. ">DOMDocument</a></code> </p>
  117. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  118. <a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1"></a>
  119. <div class="memitem">
  120. <div class="memproto">
  121. <table class="memname">
  122. <tr>
  123. <td class="memname">enum <a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1">DOMMemoryManager::NodeObjectType</a></td>
  124. </tr>
  125. </table>
  126. </div><div class="memdoc">
  127. <table class="fieldtable">
  128. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1ad5cfa34c934527ff8f5f8a53459c923c"></a>ATTR_OBJECT&#160;</td><td class="fielddoc">
  129. </td></tr>
  130. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1ab7fd2a25a694520341224ed6ff032d40"></a>ATTR_NS_OBJECT&#160;</td><td class="fielddoc">
  131. </td></tr>
  132. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1a60b25457a0f1e8a4e40469eb30325e96"></a>CDATA_SECTION_OBJECT&#160;</td><td class="fielddoc">
  133. </td></tr>
  134. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1add02e894262059c2bfc42396aa5d0f74"></a>COMMENT_OBJECT&#160;</td><td class="fielddoc">
  135. </td></tr>
  136. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1ac4c27446f78089e0525197cbed77f3dc"></a>DOCUMENT_FRAGMENT_OBJECT&#160;</td><td class="fielddoc">
  137. </td></tr>
  138. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1ab4b79e3ed0f67394cb8f1cbbc525d341"></a>DOCUMENT_TYPE_OBJECT&#160;</td><td class="fielddoc">
  139. </td></tr>
  140. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1a0ccde53ba19e8e540efc8b15232e792c"></a>ELEMENT_OBJECT&#160;</td><td class="fielddoc">
  141. </td></tr>
  142. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1af9d48f846414d0f23b1f4c094fccc958"></a>ELEMENT_NS_OBJECT&#160;</td><td class="fielddoc">
  143. </td></tr>
  144. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1af80e82759d98a1fba66ed00c63871805"></a>ENTITY_OBJECT&#160;</td><td class="fielddoc">
  145. </td></tr>
  146. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1aed024ba957c0d64c3040b98e2f110fa9"></a>ENTITY_REFERENCE_OBJECT&#160;</td><td class="fielddoc">
  147. </td></tr>
  148. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1a941da709a628b2b292b7b82a09271b7e"></a>NOTATION_OBJECT&#160;</td><td class="fielddoc">
  149. </td></tr>
  150. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1abfae514728836b3c1b41e7b9d3ce4609"></a>PROCESSING_INSTRUCTION_OBJECT&#160;</td><td class="fielddoc">
  151. </td></tr>
  152. <tr><td class="fieldname"><a class="anchor" id="a204df2f42dde53d6b6c30c3ca46e27b1abb73daebe6be1b19430e0c7c92fe664c"></a>TEXT_OBJECT&#160;</td><td class="fielddoc">
  153. </td></tr>
  154. </table>
  155. </div>
  156. </div>
  157. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  158. <a class="anchor" id="acd7d61638fa0f9e301de4a28501e8ec6"></a>
  159. <div class="memitem">
  160. <div class="memproto">
  161. <table class="mlabels">
  162. <tr>
  163. <td class="mlabels-left">
  164. <table class="memname">
  165. <tr>
  166. <td class="memname">DOMMemoryManager::DOMMemoryManager </td>
  167. <td>(</td>
  168. <td class="paramname"></td><td>)</td>
  169. <td></td>
  170. </tr>
  171. </table>
  172. </td>
  173. <td class="mlabels-right">
  174. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  175. </tr>
  176. </table>
  177. </div><div class="memdoc">
  178. </div>
  179. </div>
  180. <a class="anchor" id="a8e84f1a479924e27311d03e818c1bdf5"></a>
  181. <div class="memitem">
  182. <div class="memproto">
  183. <table class="mlabels">
  184. <tr>
  185. <td class="mlabels-left">
  186. <table class="memname">
  187. <tr>
  188. <td class="memname">virtual DOMMemoryManager::~DOMMemoryManager </td>
  189. <td>(</td>
  190. <td class="paramname"></td><td>)</td>
  191. <td></td>
  192. </tr>
  193. </table>
  194. </td>
  195. <td class="mlabels-right">
  196. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  197. </tr>
  198. </table>
  199. </div><div class="memdoc">
  200. <p>Destructor. </p>
  201. </div>
  202. </div>
  203. <h2 class="groupheader">Member Function Documentation</h2>
  204. <a class="anchor" id="a8f2a6eb58cbc23b34578dd86053e0009"></a>
  205. <div class="memitem">
  206. <div class="memproto">
  207. <table class="mlabels">
  208. <tr>
  209. <td class="mlabels-left">
  210. <table class="memname">
  211. <tr>
  212. <td class="memname">virtual void* DOMMemoryManager::allocate </td>
  213. <td>(</td>
  214. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  215. <td class="paramname"><em>amount</em></td><td>)</td>
  216. <td></td>
  217. </tr>
  218. </table>
  219. </td>
  220. <td class="mlabels-right">
  221. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  222. </tr>
  223. </table>
  224. </div><div class="memdoc">
  225. <p>Allocate a memory block of the requested size from the managed pool. </p>
  226. <dl class="params"><dt>Parameters</dt><dd>
  227. <table class="params">
  228. <tr><td class="paramname">amount</td><td>the size of the new memory block</td></tr>
  229. </table>
  230. </dd>
  231. </dl>
  232. <dl class="section return"><dt>Returns</dt><dd>the pointer to the newly allocated block </dd></dl>
  233. </div>
  234. </div>
  235. <a class="anchor" id="a0ad243c3259c64f87be03ae9cf0f76c4"></a>
  236. <div class="memitem">
  237. <div class="memproto">
  238. <table class="mlabels">
  239. <tr>
  240. <td class="mlabels-left">
  241. <table class="memname">
  242. <tr>
  243. <td class="memname">virtual void* DOMMemoryManager::allocate </td>
  244. <td>(</td>
  245. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  246. <td class="paramname"><em>amount</em>, </td>
  247. </tr>
  248. <tr>
  249. <td class="paramkey"></td>
  250. <td></td>
  251. <td class="paramtype"><a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1">DOMMemoryManager::NodeObjectType</a>&#160;</td>
  252. <td class="paramname"><em>type</em>&#160;</td>
  253. </tr>
  254. <tr>
  255. <td></td>
  256. <td>)</td>
  257. <td></td><td></td>
  258. </tr>
  259. </table>
  260. </td>
  261. <td class="mlabels-right">
  262. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  263. </tr>
  264. </table>
  265. </div><div class="memdoc">
  266. <p>Allocate a memory block of the requested size from the managed pool of DOM objects. </p>
  267. <dl class="params"><dt>Parameters</dt><dd>
  268. <table class="params">
  269. <tr><td class="paramname">amount</td><td>the size of the new memory block </td></tr>
  270. <tr><td class="paramname">type</td><td>the type of the DOM object that will be stored in the block</td></tr>
  271. </table>
  272. </dd>
  273. </dl>
  274. <dl class="section return"><dt>Returns</dt><dd>the pointer to the newly allocated block </dd></dl>
  275. </div>
  276. </div>
  277. <a class="anchor" id="a06d5f3b2247df46e2d62e3418cc703d4"></a>
  278. <div class="memitem">
  279. <div class="memproto">
  280. <table class="mlabels">
  281. <tr>
  282. <td class="mlabels-left">
  283. <table class="memname">
  284. <tr>
  285. <td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* DOMMemoryManager::cloneString </td>
  286. <td>(</td>
  287. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td>
  288. <td class="paramname"><em>src</em></td><td>)</td>
  289. <td></td>
  290. </tr>
  291. </table>
  292. </td>
  293. <td class="mlabels-right">
  294. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  295. </tr>
  296. </table>
  297. </div><div class="memdoc">
  298. <p>Allocate a memory block from the mnaged pool and copy the provided string. </p>
  299. <dl class="params"><dt>Parameters</dt><dd>
  300. <table class="params">
  301. <tr><td class="paramname">src</td><td>the string to be copied</td></tr>
  302. </table>
  303. </dd>
  304. </dl>
  305. <dl class="section return"><dt>Returns</dt><dd>the pointer to the newly allocated block </dd></dl>
  306. </div>
  307. </div>
  308. <a class="anchor" id="ae5d3f6c25b749592885a3e8e343be17d"></a>
  309. <div class="memitem">
  310. <div class="memproto">
  311. <table class="mlabels">
  312. <tr>
  313. <td class="mlabels-left">
  314. <table class="memname">
  315. <tr>
  316. <td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> DOMMemoryManager::getMemoryAllocationBlockSize </td>
  317. <td>(</td>
  318. <td class="paramname"></td><td>)</td>
  319. <td> const</td>
  320. </tr>
  321. </table>
  322. </td>
  323. <td class="mlabels-right">
  324. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  325. </tr>
  326. </table>
  327. </div><div class="memdoc">
  328. <p>Returns the size of the chunks of memory allocated by the memory manager. </p>
  329. <dl class="section return"><dt>Returns</dt><dd>the dimension of the chunks of memory allocated by the memory manager </dd></dl>
  330. </div>
  331. </div>
  332. <a class="anchor" id="a507e1458fc07f91096ec36fe3e5e809c"></a>
  333. <div class="memitem">
  334. <div class="memproto">
  335. <table class="mlabels">
  336. <tr>
  337. <td class="mlabels-left">
  338. <table class="memname">
  339. <tr>
  340. <td class="memname">virtual void DOMMemoryManager::release </td>
  341. <td>(</td>
  342. <td class="paramtype"><a class="el" href="classDOMNode.html">DOMNode</a> *&#160;</td>
  343. <td class="paramname"><em>object</em>, </td>
  344. </tr>
  345. <tr>
  346. <td class="paramkey"></td>
  347. <td></td>
  348. <td class="paramtype"><a class="el" href="classDOMMemoryManager.html#a204df2f42dde53d6b6c30c3ca46e27b1">DOMMemoryManager::NodeObjectType</a>&#160;</td>
  349. <td class="paramname"><em>type</em>&#160;</td>
  350. </tr>
  351. <tr>
  352. <td></td>
  353. <td>)</td>
  354. <td></td><td></td>
  355. </tr>
  356. </table>
  357. </td>
  358. <td class="mlabels-right">
  359. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  360. </tr>
  361. </table>
  362. </div><div class="memdoc">
  363. <p>Release a DOM object and place its memory back in the pool. </p>
  364. <dl class="params"><dt>Parameters</dt><dd>
  365. <table class="params">
  366. <tr><td class="paramname">object</td><td>the pointer to the DOM node </td></tr>
  367. <tr><td class="paramname">type</td><td>the type of the DOM object </td></tr>
  368. </table>
  369. </dd>
  370. </dl>
  371. </div>
  372. </div>
  373. <a class="anchor" id="ab8be3b7267aee9f065540f4d2aca8473"></a>
  374. <div class="memitem">
  375. <div class="memproto">
  376. <table class="mlabels">
  377. <tr>
  378. <td class="mlabels-left">
  379. <table class="memname">
  380. <tr>
  381. <td class="memname">virtual void DOMMemoryManager::setMemoryAllocationBlockSize </td>
  382. <td>(</td>
  383. <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  384. <td class="paramname"><em>size</em></td><td>)</td>
  385. <td></td>
  386. </tr>
  387. </table>
  388. </td>
  389. <td class="mlabels-right">
  390. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  391. </tr>
  392. </table>
  393. </div><div class="memdoc">
  394. <p>Set the size of the chunks of memory allocated by the memory manager. </p>
  395. <dl class="params"><dt>Parameters</dt><dd>
  396. <table class="params">
  397. <tr><td class="paramname">size</td><td>the new size of the chunks; it must be greater than 4KB </td></tr>
  398. </table>
  399. </dd>
  400. </dl>
  401. </div>
  402. </div>
  403. <hr/>The documentation for this class was generated from the following file:<ul>
  404. <li><a class="el" href="DOMMemoryManager_8hpp_source.html">DOMMemoryManager.hpp</a></li>
  405. </ul>
  406. </div><!-- contents -->
  407. <!-- start footer part -->
  408. <hr class="footer"/><address class="footer"><small>
  409. Generated on Wed Mar 18 2015 10:43:38 for Xerces-C++ by &#160;<a href="http://www.doxygen.org/index.html">
  410. <img class="footer" src="doxygen.png" alt="doxygen"/>
  411. </a> 1.8.9.1
  412. </small></address>
  413. </body>
  414. </html>