XQuilla/docs/dom3-api/DOMMemoryManager_8hpp_source.html

126 lines
13 KiB
HTML
Raw Normal View History

2020-02-17 22:19:57 +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">
<title>XQilla DOM3 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>
2020-02-17 22:23:16 +01:00
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
2020-02-17 22:19:57 +01:00
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
2020-02-17 22:23:16 +01:00
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
2020-02-17 22:19:57 +01:00
</ul>
</div>
2020-02-17 22:23:16 +01:00
<h1>DOMMemoryManager.hpp</h1><a href="DOMMemoryManager_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
2020-02-17 22:19:57 +01:00
<a name="l00002"></a>00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00003"></a>00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
<a name="l00004"></a>00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00005"></a>00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00006"></a>00006 <span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span>
<a name="l00007"></a>00007 <span class="comment"> * the License. You may obtain a copy of the License at</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00012"></a>00012 <span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00014"></a>00014 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00015"></a>00015 <span class="comment"> * limitations under the License.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_DOMMEMORYMANAGER_HPP)</span>
2020-02-17 22:23:16 +01:00
<a name="l00019"></a><a class="code" href="DOMMemoryManager_8hpp.html#a8afbf8cf19d1740b9f4a38529ce35f69">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_DOMMEMORYMANAGER_HPP</span>
2020-02-17 22:19:57 +01:00
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00022"></a>00022 <span class="comment">// Includes</span>
<a name="l00023"></a>00023 <span class="comment">//------------------------------------------------------------------------------------</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 XERCES_CPP_NAMESPACE_BEGIN
<a name="l00026"></a>00026
2020-02-17 22:23:16 +01:00
<a name="l00032"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html">00032</a> <span class="keyword">class </span>CDOM_EXPORT <a class="code" href="classxercesc_1_1DOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities...">DOMMemoryManager</a>
2020-02-17 22:19:57 +01:00
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034 <span class="keyword">protected</span>:
<a name="l00035"></a>00035 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00036"></a>00036 <span class="comment">// Hidden constructors</span>
<a name="l00037"></a>00037 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00040"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#a35bc5bd956ccf7fbcbfbd010f650f521">00040</a> <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMMemoryManager.html#a35bc5bd956ccf7fbcbfbd010f650f521">DOMMemoryManager</a>() {};
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="keyword">private</span>:
<a name="l00044"></a>00044 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00045"></a>00045 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00046"></a>00046 <span class="comment">// -----------------------------------------------------------------------</span>
2020-02-17 22:23:16 +01:00
<a name="l00049"></a>00049 <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities...">DOMMemoryManager</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities...">DOMMemoryManager</a> &amp;);
<a name="l00050"></a>00050 <a class="code" href="classxercesc_1_1DOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities...">DOMMemoryManager</a> &amp; operator = (<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMMemoryManager.html" title="The DOMMemoryManager interface exposes the memory allocation-related functionalities...">DOMMemoryManager</a> &amp;);
2020-02-17 22:19:57 +01:00
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00056"></a>00056 <span class="comment">// All constructors are hidden, just the destructor is available</span>
<a name="l00057"></a>00057 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00064"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#a9c4fe95317690357e2b186edf1231813">00064</a> <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMMemoryManager.html#a9c4fe95317690357e2b186edf1231813" title="Destructor.">~DOMMemoryManager</a>() {};
<a name="l00066"></a>00066
<a name="l00067"></a>00067 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00068"></a>00068 <span class="comment">// data types</span>
<a name="l00069"></a>00069 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00070"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7d">00070</a> <span class="keyword">enum</span> <a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7d">NodeObjectType</a> {
<a name="l00071"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da2d50a518814d853341f0b390160c2ffa">00071</a> ATTR_OBJECT = 0,
<a name="l00072"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da42d6355013470f78cea56ab6b5bfc1bb">00072</a> ATTR_NS_OBJECT = 1,
<a name="l00073"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da5727d654355cd3bbfccf24e825bc605f">00073</a> CDATA_SECTION_OBJECT = 2,
<a name="l00074"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da94b673643df9dc17de3f616a70bc85eb">00074</a> COMMENT_OBJECT = 3,
<a name="l00075"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7daf847743adfeaf28f8fd980596bdfc197">00075</a> DOCUMENT_FRAGMENT_OBJECT = 4,
<a name="l00076"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da2081c979a449ef63f0265b18e54c43a4">00076</a> DOCUMENT_TYPE_OBJECT = 5,
<a name="l00077"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da37710d79bda5f342a72318e418b313f1">00077</a> ELEMENT_OBJECT = 6,
<a name="l00078"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7dac595e36a55169d826d956b7ecc13e9a2">00078</a> ELEMENT_NS_OBJECT = 7,
<a name="l00079"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da5622464ca5e8cada77cff4e30bb3e12d">00079</a> ENTITY_OBJECT = 8,
<a name="l00080"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da2e33200c1ff2500e4680cf0fbd8cbae6">00080</a> ENTITY_REFERENCE_OBJECT = 9,
<a name="l00081"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da6fbfa499e2add65db96b6f7fc9757fc8">00081</a> NOTATION_OBJECT = 10,
<a name="l00082"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da3f5efa3704368d07260228f6a5b81192">00082</a> PROCESSING_INSTRUCTION_OBJECT = 11,
<a name="l00083"></a><a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7da2fc977612943d53260815db6a4c81ddf">00083</a> TEXT_OBJECT = 12
<a name="l00084"></a>00084 };
<a name="l00085"></a>00085
<a name="l00087"></a>00087 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00088"></a>00088 <span class="comment">// Getter methods</span>
<a name="l00089"></a>00089 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00095"></a>00095 <span class="comment"></span> <span class="keyword">virtual</span> XMLSize_t getMemoryAllocationBlockSize() <span class="keyword">const</span> = 0;
<a name="l00096"></a>00096
<a name="l00098"></a>00098
<a name="l00100"></a>00100 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00101"></a>00101 <span class="comment">// Setter methods</span>
<a name="l00102"></a>00102 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00108"></a>00108 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMemoryAllocationBlockSize(XMLSize_t size) = 0;
<a name="l00110"></a>00110
<a name="l00112"></a>00112 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00113"></a>00113 <span class="comment">// Operations</span>
<a name="l00114"></a>00114 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00122"></a>00122 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span>* allocate(XMLSize_t amount) = 0;
<a name="l00123"></a>00123
<a name="l00132"></a>00132 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* allocate(XMLSize_t amount, <a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7d">DOMMemoryManager::NodeObjectType</a> type) = 0;
<a name="l00133"></a>00133
2020-02-17 22:23:16 +01:00
<a name="l00140"></a>00140 <span class="keyword">virtual</span> <span class="keywordtype">void</span> release(<a class="code" href="classxercesc_1_1DOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>* <span class="keywordtype">object</span>, <a class="code" href="classxercesc_1_1DOMMemoryManager.html#aa691c0c6d527714510c139518b147a7d">DOMMemoryManager::NodeObjectType</a> type) = 0;
2020-02-17 22:19:57 +01:00
<a name="l00141"></a>00141
<a name="l00149"></a>00149 <span class="keyword">virtual</span> XMLCh* cloneString(<span class="keyword">const</span> XMLCh *src) = 0;
<a name="l00151"></a>00151
<a name="l00152"></a>00152 };
<a name="l00153"></a>00153
<a name="l00154"></a>00154 XERCES_CPP_NAMESPACE_END
<a name="l00155"></a>00155
<a name="l00156"></a>00156 <span class="preprocessor">#endif</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span>
</pre></div></div>
2020-02-17 22:24:17 +01:00
<hr size="1"/><address style="text-align: right;"><small>Generated on 18 May 2015 for XQilla DOM Level 3 API by&nbsp;
2020-02-17 22:19:57 +01:00
<a href="http://www.doxygen.org/index.html">
2020-02-17 22:23:16 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
2020-02-17 22:19:57 +01:00
</body>
</html>