blob: 58385761eabf6a44bc652fe626fd4fbdbdf0ff75 [file] [log] [blame]
<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
</BODY>
<!-- Generated by Doxygen 1.2.8.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>XObjectFactoryDefault.hpp</h1><a href="XObjectFactoryDefault_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>
00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font>
00005 <font class="comment"> * you may not use this file except in compliance with the License.</font>
00006 <font class="comment"> * You may obtain a copy of the License at</font>
00007 <font class="comment"> *</font>
00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font>
00009 <font class="comment"> *</font>
00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font>
00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font>
00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font>
00013 <font class="comment"> * See the License for the specific language governing permissions and</font>
00014 <font class="comment"> * limitations under the License.</font>
00015 <font class="comment"> */</font>
00016 <font class="preprocessor">#if !defined(XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="XObjectFactoryDefault_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680</font>
00018 <font class="preprocessor"></font>
00019
00020
00021 <font class="comment">// Base include file. Must be first.</font>
00022 <font class="preprocessor">#include &lt;<a class="code" href="XPathDefinitions_8hpp.html">xalanc/XPath/XPathDefinitions.hpp</a>&gt;</font>
00023
00024
00025
00026 <font class="preprocessor">#include &lt;<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>&gt;</font>
00027
00028
00029
00030 <font class="comment">// Base class header file...</font>
00031 <font class="preprocessor">#include &lt;<a class="code" href="XObjectFactory_8hpp.html">xalanc/XPath/XObjectFactory.hpp</a>&gt;</font>
00032
00033
00034
00035 <font class="preprocessor">#include &lt;<a class="code" href="XBoolean_8hpp.html">xalanc/XPath/XBoolean.hpp</a>&gt;</font>
00036 <font class="preprocessor">#include &lt;<a class="code" href="XNodeSetAllocator_8hpp.html">xalanc/XPath/XNodeSetAllocator.hpp</a>&gt;</font>
00037 <font class="preprocessor">#include &lt;<a class="code" href="XNodeSetNodeProxyAllocator_8hpp.html">xalanc/XPath/XNodeSetNodeProxyAllocator.hpp</a>&gt;</font>
00038 <font class="preprocessor">#include &lt;<a class="code" href="XNull_8hpp.html">xalanc/XPath/XNull.hpp</a>&gt;</font>
00039 <font class="preprocessor">#include &lt;<a class="code" href="XNumberAllocator_8hpp.html">xalanc/XPath/XNumberAllocator.hpp</a>&gt;</font>
00040 <font class="preprocessor">#include &lt;<a class="code" href="XStringAllocator_8hpp.html">xalanc/XPath/XStringAllocator.hpp</a>&gt;</font>
00041 <font class="preprocessor">#include &lt;<a class="code" href="XStringAdapterAllocator_8hpp.html">xalanc/XPath/XStringAdapterAllocator.hpp</a>&gt;</font>
00042 <font class="preprocessor">#include &lt;<a class="code" href="XStringCachedAllocator_8hpp.html">xalanc/XPath/XStringCachedAllocator.hpp</a>&gt;</font>
00043 <font class="preprocessor">#include &lt;<a class="code" href="XStringReferenceAllocator_8hpp.html">xalanc/XPath/XStringReferenceAllocator.hpp</a>&gt;</font>
00044 <font class="preprocessor">#include &lt;<a class="code" href="XTokenNumberAdapterAllocator_8hpp.html">xalanc/XPath/XTokenNumberAdapterAllocator.hpp</a>&gt;</font>
00045 <font class="preprocessor">#include &lt;<a class="code" href="XTokenStringAdapterAllocator_8hpp.html">xalanc/XPath/XTokenStringAdapterAllocator.hpp</a>&gt;</font>
00046
00047
00048
00049
00050 XALAN_CPP_NAMESPACE_BEGIN
00051
00052
00053
<a name="l00057"></a><a class="code" href="classXObjectFactoryDefault.html">00057</a> <font class="keyword">class </font>XALAN_XPATH_EXPORT <a class="code" href="classXObjectFactoryDefault.html">XObjectFactoryDefault</a> : <font class="keyword">public</font> <a class="code" href="classXObjectFactory.html">XObjectFactory</a>
00058 {
00059 <font class="keyword">public</font>:
00060
00061 <font class="comment">// Default block size for strings.</font>
00062 <font class="keyword">enum</font>
00063 {
00064 eDefaultXStringBlockSize = 10,
00065 eDefaultXNumberBlockSize = 10,
00066 eDefaultXNodeSetBlockSize = 10,
00067 eDefaultXNodeSetNodeProxyBlockSize = 5,
00068 eXNumberCacheMax = 40,
00069 eXNodeSetCacheMax = 40,
00070 eXStringCacheMax = 40,
00071 eXResultTreeFragCacheMax = 40
00072 };
00073
<a name="l00074"></a><a class="code" href="classXObjectFactoryDefault.html#s0">00074</a> <font class="keyword">typedef</font> XNodeSetAllocator::size_type size_type;
00075
00083 <font class="keyword">explicit</font>
00084 <a class="code" href="classXObjectFactoryDefault.html#a0">XObjectFactoryDefault</a>(
00085 MemoryManagerType&amp; theManager XALAN_DEFAULT_MEMMGR,
00086 size_type theXStringBlockSize = eDefaultXStringBlockSize,
00087 size_type theXNumberBlockSize = eDefaultXNumberBlockSize,
00088 size_type theXNodeSetBlockSize = eDefaultXNodeSetBlockSize,
00089 size_type theXNodeSetNodeProxyBlockSize = eDefaultXNodeSetNodeProxyBlockSize);
00090
00091 <font class="keyword">static</font> <a class="code" href="classXObjectFactoryDefault.html">XObjectFactoryDefault</a>*
00092 <a class="code" href="classXObjectFactoryDefault.html#d0">create</a>(
00093 MemoryManagerType&amp; theManager,
00094 size_type theXStringBlockSize = eDefaultXStringBlockSize,
00095 size_type theXNumberBlockSize = eDefaultXNumberBlockSize,
00096 size_type theXNodeSetBlockSize = eDefaultXNodeSetBlockSize,
00097 size_type theXNodeSetNodeProxyBlockSize = eDefaultXNodeSetNodeProxyBlockSize);
00098
00099
00100 <font class="keyword">virtual</font>
00101 <a class="code" href="classXObjectFactoryDefault.html#a1">~XObjectFactoryDefault</a>();
00102
00103 MemoryManagerType&amp;
<a name="l00104"></a><a class="code" href="classXObjectFactoryDefault.html#a2">00104</a> <a class="code" href="classXObjectFactory.html#a2">getMemoryManager</a>()<font class="keyword"></font>
00105 <font class="keyword"> </font>{
00106 <font class="keywordflow">return</font> m_xobjects.getMemoryManager();
00107 }
00108 <font class="comment">// These methods are inherited from XObjectFactory ...</font>
00109
00110 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00111 <a class="code" href="classXObjectFactory.html#a4">reset</a>();
00112
00113 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00114 <a class="code" href="classXObjectFactory.html#a5">createBoolean</a>(<font class="keywordtype">bool</font> theValue);
00115
00116 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00117 <a class="code" href="classXObjectFactory.html#a6">createNodeSet</a>(<a class="code" href="classXPathExecutionContext_1_1BorrowReturnMutableNodeRefList.html">BorrowReturnMutableNodeRefList</a>&amp; theValue);
00118
00119 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00120 <a class="code" href="classXObjectFactory.html#a6">createNodeSet</a>(<a class="code" href="classXalanNode.html">XalanNode</a>* theValue);
00121
00122 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00123 <a class="code" href="classXObjectFactory.html#a8">createNull</a>();
00124
00125 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00126 <a class="code" href="classXObjectFactory.html#a9">createNumber</a>(<font class="keywordtype">double</font> theValue);
00127
00128 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00129 <a class="code" href="classXObjectFactory.html#a9">createNumber</a>(<font class="keyword">const</font> <a class="code" href="classXToken.html">XToken</a>&amp; theValue);
00130
00131 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00132 <a class="code" href="classXObjectFactory.html#a11">createString</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theValue);
00133
00134 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00135 <a class="code" href="classXObjectFactory.html#a11">createString</a>(<font class="keyword">const</font> XalanDOMChar* theValue);
00136
00137 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00138 <a class="code" href="classXObjectFactory.html#a11">createString</a>(
00139 <font class="keyword">const</font> XalanDOMChar* theValue,
00140 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> theLength);
00141
00142 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00143 <a class="code" href="classXObjectFactory.html#a11">createString</a>(<font class="keyword">const</font> <a class="code" href="classXToken.html">XToken</a>&amp; theValue);
00144
00145 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00146 <a class="code" href="classXObjectFactory.html#a15">createStringReference</a>(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theValue);
00147
00148 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00149 <a class="code" href="classXObjectFactory.html#a16">createStringAdapter</a>(<font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>&amp; theValue);
00150
00151 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00152 <a class="code" href="classXObjectFactory.html#a11">createString</a>(<a class="code" href="classXPathExecutionContext_1_1GetAndReleaseCachedString.html">GetAndReleaseCachedString</a>&amp; theValue);
00153
00154 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classXObjectPtr.html">XObjectPtr</a>
00155 <a class="code" href="classXObjectFactory.html#a18">createUnknown</a>(
00156 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>&amp; theValue);
00157
<a name="l00158"></a><a class="code" href="classXObjectFactoryDefault.html#s1">00158</a> <font class="keyword">typedef</font> XalanVector&lt;XObject*&gt; XObjectCollectionType;
<a name="l00159"></a><a class="code" href="classXObjectFactoryDefault.html#s2">00159</a> <font class="keyword">typedef</font> XalanVector&lt;XNumber*&gt; XNumberCacheType;
<a name="l00160"></a><a class="code" href="classXObjectFactoryDefault.html#s3">00160</a> <font class="keyword">typedef</font> XalanVector&lt;XNodeSet*&gt; XNodeSetCacheType;
<a name="l00161"></a><a class="code" href="classXObjectFactoryDefault.html#s4">00161</a> <font class="keyword">typedef</font> XalanVector&lt;XString*&gt; XStringCacheType;
00162
00163 <font class="keyword">protected</font>:
00164
00165 <font class="keyword">virtual</font> <font class="keywordtype">bool</font>
00166 <a class="code" href="classXObjectFactory.html#b2">doReturnObject</a>(
00167 <a class="code" href="classXObject.html">XObject</a>* theXObject,
00168 <font class="keywordtype">bool</font> fInReset = <font class="keyword">false</font>);
00169
00170 <font class="keyword">private</font>:
00171
00172 <font class="comment">// Not implemented...</font>
00173 <a class="code" href="classXObjectFactoryDefault.html#a0">XObjectFactoryDefault</a>(<font class="keyword">const</font> <a class="code" href="classXObjectFactoryDefault.html">XObjectFactoryDefault</a>&amp;);
00174
00175 <a class="code" href="classXObjectFactoryDefault.html">XObjectFactoryDefault</a>&amp;
00176 operator=(<font class="keyword">const</font> <a class="code" href="classXObjectFactoryDefault.html">XObjectFactoryDefault</a>&amp;);
00177
00178 <font class="keywordtype">bool</font>
00179 <a class="code" href="ElemAttributeSet_8hpp.html#a1">operator==</a>(<font class="keyword">const</font> <a class="code" href="classXObjectFactoryDefault.html">XObjectFactoryDefault</a>&amp;) <font class="keyword">const</font>;
00180
00181
00182 <font class="comment">// Data members...</font>
00183
00184 <font class="comment">// This one's first, since it may be be holding references</font>
00185 <font class="comment">// to objects in other allocators.</font>
00186 <a class="code" href="classXStringAdapterAllocator.html">XStringAdapterAllocator</a> m_xstringAdapterAllocator;
00187
00188 <a class="code" href="classXStringAllocator.html">XStringAllocator</a> m_xstringAllocator;
00189
00190 <a class="code" href="classXStringCachedAllocator.html">XStringCachedAllocator</a> m_xstringCachedAllocator;
00191
00192 <a class="code" href="classXStringReferenceAllocator.html">XStringReferenceAllocator</a> m_xstringReferenceAllocator;
00193
00194 <a class="code" href="classXNumberAllocator.html">XNumberAllocator</a> m_xnumberAllocator;
00195
00196 <a class="code" href="classXNodeSetAllocator.html">XNodeSetAllocator</a> m_xnodesetAllocator;
00197
00198 <a class="code" href="classXNodeSetNodeProxyAllocator.html">XNodeSetNodeProxyAllocator</a> m_xnodesetNodeProxyAllocator;
00199
00200 <a class="code" href="classXTokenNumberAdapterAllocator.html">XTokenNumberAdapterAllocator</a> m_xtokenNumberAdapterAllocator;
00201
00202 <a class="code" href="classXTokenStringAdapterAllocator.html">XTokenStringAdapterAllocator</a> m_xtokenStringAdapterAllocator;
00203
00204 XObjectCollectionType m_xobjects;
00205
00206 XNumberCacheType m_xnumberCache;
00207
00208 XNodeSetCacheType m_xnodesetCache;
00209
00210 XStringCacheType m_xstringCache;
00211
00212 <a class="code" href="classXNull.html">XNull</a> m_xnull;
00213
00214 <a class="code" href="classXBoolean.html">XBoolean</a> m_xbooleanFalse;
00215
00216 <a class="code" href="classXBoolean.html">XBoolean</a> m_xbooleanTrue;
00217 };
00218
00219
00220
00221 XALAN_CPP_NAMESPACE_END
00222
00223
00224
00225 <font class="preprocessor">#endif // XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680</font>
</font></pre></div><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
<p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
<A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
<TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
<TR>
<TD WIDTH="80%" VALIGN="TOP">
<P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
Copyright &copy; 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
</TD>
</TR>
<TR>
<TD WIDTH="100%">
<P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
</TD>
</TR>
</TABLE>