| <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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> |
| <hr><h1>CountersTable.hpp</h1><a href="CountersTable_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(XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680)</font> |
| <a name="l00017"></a><a class="code" href="CountersTable_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define XALAN_COUNTERSTABLE_HEADER_GUARD_1357924680</font> |
| 00018 <font class="preprocessor"></font> |
| 00025 |
| 00026 <font class="comment">// Base include file. Must be first.</font> |
| 00027 <font class="preprocessor">#include <<a class="code" href="XSLTDefinitions_8hpp.html">xalanc/XSLT/XSLTDefinitions.hpp</a>></font> |
| 00028 |
| 00029 |
| 00030 |
| 00031 <font class="preprocessor">#include <<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>></font> |
| 00032 |
| 00033 |
| 00034 |
| 00035 |
| 00036 <font class="preprocessor">#include "<a class="code" href="MutableNodeRefList_8hpp.html">xalanc/XPath/MutableNodeRefList.hpp</a>"</font> |
| 00037 |
| 00038 |
| 00039 |
| 00040 XALAN_CPP_NAMESPACE_BEGIN |
| 00041 |
| 00042 |
| 00043 |
| <a name="l00044"></a><a class="code" href="CountersTable_8hpp.html#a1">00044</a> <font class="keyword">class </font><a class="code" href="classElemNumber.html">ElemNumber</a>; |
| 00045 <font class="keyword">class </font><a class="code" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a>; |
| 00046 |
| 00047 |
| 00048 |
| <a name="l00056"></a><a class="code" href="structCounter.html">00056</a> <font class="keyword">struct </font><a class="code" href="structCounter.html">Counter</a> |
| 00057 { |
| <a name="l00058"></a><a class="code" href="structCounter.html#s0">00058</a> <font class="keyword">typedef</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> CountType; |
| 00059 |
| <a name="l00060"></a><a class="code" href="structCounter.html#s1">00060</a> <font class="keyword">typedef</font> XalanVector<XalanNode*> NodeVectorType; |
| 00061 |
| <a name="l00068"></a><a class="code" href="structCounter.html#m0">00068</a> CountType m_countNodesStartCount; |
| 00069 |
| <a name="l00073"></a><a class="code" href="structCounter.html#m1">00073</a> NodeVectorType m_countNodes; |
| 00074 |
| <a name="l00080"></a><a class="code" href="structCounter.html#m2">00080</a> <font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* m_fromNode; |
| 00081 |
| <a name="l00085"></a><a class="code" href="structCounter.html#m3">00085</a> <font class="keyword">const</font> <a class="code" href="classElemNumber.html">ElemNumber</a>* m_numberElem; |
| 00086 |
| <a name="l00090"></a><a class="code" href="structCounter.html#a0">00090</a> <a class="code" href="structCounter.html#a0">Counter</a>( |
| 00091 MemoryManagerType& theManager, |
| 00092 <font class="keyword">const</font> <a class="code" href="classElemNumber.html">ElemNumber</a>* numberElem, |
| 00093 NodeVectorType& countNodes) : |
| 00094 m_countNodesStartCount(0), |
| 00095 m_countNodes(countNodes, theManager), |
| 00096 m_fromNode(0), |
| 00097 m_numberElem(numberElem) |
| 00098 { |
| 00099 } |
| 00100 |
| <a name="l00104"></a><a class="code" href="structCounter.html#a1">00104</a> <a class="code" href="structCounter.html#a0">Counter</a>(MemoryManagerType& theManager, <font class="keyword">const</font> <a class="code" href="classElemNumber.html">ElemNumber</a>* numberElem = 0) : |
| 00105 m_countNodesStartCount(0), |
| 00106 m_countNodes(theManager), |
| 00107 m_fromNode(0), |
| 00108 m_numberElem(numberElem) |
| 00109 { |
| 00110 } |
| 00111 |
| <a name="l00112"></a><a class="code" href="structCounter.html#a2">00112</a> <a class="code" href="structCounter.html#a0">Counter</a>(<font class="keyword">const</font> <a class="code" href="structCounter.html">Counter</a>& other, MemoryManagerType& theManager) : |
| 00113 m_countNodesStartCount(other.m_countNodesStartCount), |
| 00114 m_countNodes(other.m_countNodes, theManager), |
| 00115 m_fromNode(other.m_fromNode), |
| 00116 m_numberElem(other.m_numberElem) |
| 00117 { |
| 00118 } |
| 00119 |
| 00126 CountType |
| 00127 <a class="code" href="structCounter.html#a3">getPreviouslyCounted</a>( |
| 00128 <a class="code" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a>& support, |
| 00129 <font class="keyword">const</font> <a class="code" href="classXalanNode.html">XalanNode</a>* node) <font class="keyword">const</font>; |
| 00130 |
| 00134 <a class="code" href="classXalanNode.html">XalanNode</a>* |
| <a name="l00135"></a><a class="code" href="structCounter.html#a4">00135</a> <a class="code" href="structCounter.html#a4">getLast</a>()<font class="keyword"> const</font> |
| 00136 <font class="keyword"> </font>{ |
| 00137 <font class="keywordflow">return</font> m_countNodes.empty() == <font class="keyword">true</font> ? 0 : m_countNodes.back(); |
| 00138 } |
| 00139 |
| 00140 <font class="keyword">private</font>: |
| 00141 <font class="comment">// Not implemented</font> |
| 00142 <a class="code" href="structCounter.html#a0">Counter</a>(); |
| 00143 <a class="code" href="structCounter.html#a0">Counter</a>(<font class="keyword">const</font> <a class="code" href="structCounter.html">Counter</a>&); |
| 00144 }; |
| 00145 |
| 00146 <a class="code" href="XalanMemoryManagement_8hpp.html#a4">XALAN_USES_MEMORY_MANAGER</a>(<a class="code" href="structCounter.html">Counter</a>) |
| 00147 |
| 00148 <font class="keyword">typedef</font> XalanVector<Counter> CounterVectorTypeDecl; |
| 00149 <a class="code" href="XalanMemoryManagement_8hpp.html#a4">XALAN_USES_MEMORY_MANAGER</a>(CounterVectorTypeDecl) |
| 00150 |
| 00151 <font class="keyword">typedef</font> XalanVector<CounterVectorTypeDecl> ElemCounterVectorVectorTypeDecl; |
| <a name="l00152"></a><a class="code" href="CountersTable_8hpp.html#a3">00152</a> <a class="code" href="XalanMemoryManagement_8hpp.html#a4">XALAN_USES_MEMORY_MANAGER</a>(ElemCounterVectorVectorTypeDecl) |
| 00160 <font class="keyword">class </font>CountersTable |
| 00161 { |
| 00162 <font class="keyword">public</font>: |
| 00163 |
| 00164 <font class="keyword">typedef</font> Counter::CountType CountType; |
| 00165 |
| 00166 <font class="keyword">typedef</font> CounterVectorTypeDecl CounterVectorType; |
| 00167 <font class="keyword">typedef</font> ElemCounterVectorVectorTypeDecl ElemCounterVectorVectorType; |
| 00168 |
| 00169 <font class="keyword">typedef</font> Counter::NodeVectorType NodeVectorType; |
| 00170 |
| 00174 <a class="code" href="StylesheetExecutionContext_8hpp.html#a1">CountersTable</a>(MemoryManagerType& theManager, |
| 00175 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> theSize = 0) : |
| 00176 m_countersVector(theManager), |
| 00177 m_newFound(theManager)<font class="keyword"></font> |
| 00178 <font class="keyword"> </font>{ |
| 00179 resize(theSize); |
| 00180 }; |
| 00181 |
| 00182 ~CountersTable()<font class="keyword"></font> |
| 00183 <font class="keyword"> </font>{ |
| 00184 } |
| 00185 |
| 00193 <font class="keywordtype">void</font> |
| 00194 resize(<font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> theSize)<font class="keyword"></font> |
| 00195 <font class="keyword"> </font>{ |
| 00196 m_countersVector.resize(theSize); |
| 00197 } |
| 00198 |
| 00208 CountType |
| 00209 countNode( |
| 00210 <a class="code" href="classStylesheetExecutionContext.html">StylesheetExecutionContext</a>& executionContext, |
| 00211 <font class="keyword">const</font> <a class="code" href="classElemNumber.html">ElemNumber</a>& numberElem, |
| 00212 <a class="code" href="classXalanNode.html">XalanNode</a>* node); |
| 00213 |
| 00217 <font class="keywordtype">void</font> |
| 00218 reset()<font class="keyword"></font> |
| 00219 <font class="keyword"> </font>{ |
| 00220 m_newFound.clear(); |
| 00221 |
| 00222 m_countersVector.clear(); |
| 00223 } |
| 00224 |
| 00225 <font class="keyword">private</font>: |
| 00226 <font class="comment">// not implemented</font> |
| 00227 <a class="code" href="StylesheetExecutionContext_8hpp.html#a1">CountersTable</a>(); |
| 00228 <a class="code" href="StylesheetExecutionContext_8hpp.html#a1">CountersTable</a>(<font class="keyword">const</font> CountersTable&); |
| 00229 |
| 00233 ElemCounterVectorVectorType m_countersVector; |
| 00234 |
| 00235 |
| 00239 NodeVectorType m_newFound; |
| 00240 }; |
| 00241 |
| 00242 |
| 00243 |
| 00244 XALAN_CPP_NAMESPACE_END |
| 00245 |
| 00246 |
| 00247 |
| 00248 <font class="preprocessor">#endif // !defined(XALAN_COUNTERSTABLE_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 © 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>
|