blob: 05dc6785b93ff886aa311e657704416d521105d0 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Xalan-C++ API : Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<!-- The head section is copied from Doxygen 1.7.1 generated default output -->
<body>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center"><a href="../index.html">The Xalan C++ XSLT Processor Version 1.11</a></h3>
<hr/>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</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>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>STLHelper.hpp</h1> </div>
</div>
<div class="contents">
<a href="STLHelper_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>
<a name="l00002"></a>00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span>
<a name="l00003"></a>00003 <span class="comment"> * or more contributor license agreements. See the NOTICE file</span>
<a name="l00004"></a>00004 <span class="comment"> * distributed with this work for additional information</span>
<a name="l00005"></a>00005 <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span>
<a name="l00006"></a>00006 <span class="comment"> * to you under the Apache License, Version 2.0 (the &quot;License&quot;);</span>
<a name="l00007"></a>00007 <span class="comment"> * you may not use this file except in compliance with the License.</span>
<a name="l00008"></a>00008 <span class="comment"> * You may obtain a copy of the License at</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00013"></a>00013 <span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
<a name="l00014"></a>00014 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00015"></a>00015 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00016"></a>00016 <span class="comment"> * limitations under the License.</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 <span class="preprocessor">#if !defined(STLHELPERS_HEADER_GUARD_1357924680)</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define STLHELPERS_HEADER_GUARD_1357924680</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="comment">// Base include file. Must be first.</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="code" href="PlatformDefinitions_8hpp.html">xalanc/Include/PlatformDefinitions.hpp</a>&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;functional&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;<a class="code" href="XalanMap_8hpp.html">xalanc/Include/XalanMap.hpp</a>&gt;</span>
<a name="l00034"></a>00034
<a name="l00035"></a>00035
<a name="l00036"></a>00036
<a name="l00037"></a>00037 XALAN_CPP_NAMESPACE_BEGIN
<a name="l00038"></a>00038
<a name="l00039"></a>00039
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="keyword">template</span>&lt;<span class="keyword">class</span> Type&gt;
<a name="l00042"></a><a class="code" href="structXalanDestroyFunctor.html">00042</a> <span class="keyword">struct</span>
<a name="l00043"></a>00043 <a class="code" href="structXalanDestroyFunctor.html">XalanDestroyFunctor</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="keywordtype">void</span>
<a name="l00046"></a><a class="code" href="structXalanDestroyFunctor.html#a7e786fab9fdb3e8df0bb2cbed4141cff">00046</a> operator()(Type&amp; theArg)
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048 theArg.~Type();
<a name="l00049"></a>00049 }
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <span class="keywordtype">void</span>
<a name="l00052"></a><a class="code" href="structXalanDestroyFunctor.html#a43d9fcf6eff7ab146242b76903b63010">00052</a> operator()(Type* theArg)
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054 theArg-&gt;~Type();
<a name="l00055"></a>00055 }
<a name="l00056"></a>00056
<a name="l00057"></a>00057 <span class="keywordtype">void</span>
<a name="l00058"></a><a class="code" href="structXalanDestroyFunctor.html#aac5e0b0e45ab3dbf803428351c8bcaed">00058</a> operator()(<span class="keyword">const</span> Type* theArg)
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060 (*this)(<span class="keyword">const_cast&lt;</span>Type*<span class="keyword">&gt;</span>(theArg));
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062
<a name="l00063"></a>00063 <span class="keywordtype">void</span>
<a name="l00064"></a><a class="code" href="structXalanDestroyFunctor.html#ae3df3e23c4db92f447a037a06911420c">00064</a> operator()(
<a name="l00065"></a>00065 Type* theArg,
<a name="l00066"></a>00066 MemoryManager&amp; theMemoryManager)
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keywordflow">if</span> (theArg != 0)
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 (*this)(*theArg);
<a name="l00071"></a>00071
<a name="l00072"></a>00072 theMemoryManager.deallocate(theArg);
<a name="l00073"></a>00073 }
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075
<a name="l00076"></a>00076 <span class="keywordtype">void</span>
<a name="l00077"></a><a class="code" href="structXalanDestroyFunctor.html#adb844932ac6fc04f060b0c33f371dbfe">00077</a> operator()(
<a name="l00078"></a>00078 <span class="keyword">const</span> Type* theArg,
<a name="l00079"></a>00079 MemoryManager&amp; theMemoryManager)
<a name="l00080"></a>00080 {
<a name="l00081"></a>00081 (*this)(<span class="keyword">const_cast&lt;</span>Type*<span class="keyword">&gt;</span>(theArg), theMemoryManager);
<a name="l00082"></a>00082 }
<a name="l00083"></a>00083 };
<a name="l00084"></a>00084
<a name="l00085"></a>00085
<a name="l00086"></a>00086
<a name="l00087"></a>00087 <span class="keyword">template</span>&lt;<span class="keyword">class</span> Type&gt;
<a name="l00088"></a>00088 <a class="code" href="structXalanDestroyFunctor.html">XalanDestroyFunctor&lt;Type&gt;</a>
<a name="l00089"></a><a class="code" href="STLHelper_8hpp.html#aea3cb8ddf2a525c71dfb3445bc9a2c26">00089</a> <a class="code" href="STLHelper_8hpp.html#aea3cb8ddf2a525c71dfb3445bc9a2c26">makeXalanDestroyFunctor</a>(<span class="keyword">const</span> Type* <span class="comment">/* theType */</span>)
<a name="l00090"></a>00090 {
<a name="l00091"></a>00091 <span class="keywordflow">return</span> <a class="code" href="structXalanDestroyFunctor.html">XalanDestroyFunctor&lt;Type&gt;</a>();
<a name="l00092"></a>00092 }
<a name="l00093"></a>00093
<a name="l00094"></a>00094
<a name="l00095"></a>00095 <span class="comment"></span>
<a name="l00096"></a>00096 <span class="comment">/**</span>
<a name="l00097"></a>00097 <span class="comment"> * Functor to delete objects, used in STL iteration algorithms.</span>
<a name="l00098"></a>00098 <span class="comment"> */</span>
<a name="l00099"></a>00099 <span class="keyword">template</span> &lt;<span class="keyword">class</span> Type&gt;
<a name="l00100"></a>00100 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structDeleteFunctor.html" title="Functor to delete objects, used in STL iteration algorithms.">DeleteFunctor</a> : <span class="keyword">public</span> <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const Type*, void&gt;
<a name="l00102"></a>00102 <span class="preprocessor">#else</span>
<a name="l00103"></a><a class="code" href="structDeleteFunctor.html">00103</a> <span class="preprocessor"></span>struct <a class="code" href="structDeleteFunctor.html" title="Functor to delete objects, used in STL iteration algorithms.">DeleteFunctor</a> : <span class="keyword">public</span> std::<a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const Type*, void&gt;
<a name="l00104"></a>00104 <span class="preprocessor">#endif</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span>{
<a name="l00106"></a>00106 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;const Type*, void&gt;</a> BaseClassType;
<a name="l00108"></a>00108 <span class="preprocessor">#else</span>
<a name="l00109"></a><a class="code" href="structDeleteFunctor.html#ad5161475ac8f6b8b917720e27c93f3be">00109</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::unary_function&lt;const Type*, void&gt; BaseClassType;
<a name="l00110"></a>00110 <span class="preprocessor">#endif</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00112"></a><a class="code" href="structDeleteFunctor.html#ae2e69c8b76359f75fd0f94c546805c5d">00112</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00113"></a><a class="code" href="structDeleteFunctor.html#aee1e0eafd8cf4aa33ceff7538dfdc0ca">00113</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00114"></a>00114
<a name="l00115"></a><a class="code" href="structDeleteFunctor.html#a2933bd28f7d79f2aa04ba56f59d5f951">00115</a> <a class="code" href="structDeleteFunctor.html#a2933bd28f7d79f2aa04ba56f59d5f951">DeleteFunctor</a>(MemoryManager&amp; theManager) :
<a name="l00116"></a>00116 m_memoryManager(theManager)
<a name="l00117"></a>00117 {
<a name="l00118"></a>00118 }
<a name="l00119"></a>00119 <span class="comment"></span>
<a name="l00120"></a>00120 <span class="comment"> /**</span>
<a name="l00121"></a>00121 <span class="comment"> * Delete the object pointed to by argument.</span>
<a name="l00122"></a>00122 <span class="comment"> *</span>
<a name="l00123"></a>00123 <span class="comment"> * @param thePointer pointer to object to be deleted</span>
<a name="l00124"></a>00124 <span class="comment"> */</span>
<a name="l00125"></a>00125 <a class="code" href="structDeleteFunctor.html#ae2e69c8b76359f75fd0f94c546805c5d">result_type</a>
<a name="l00126"></a><a class="code" href="structDeleteFunctor.html#a4379f62ae5cf18fe2f7e21eeea9c07a3">00126</a> <a class="code" href="structDeleteFunctor.html#a4379f62ae5cf18fe2f7e21eeea9c07a3" title="Delete the object pointed to by argument.">operator()</a>(<a class="code" href="structDeleteFunctor.html#aee1e0eafd8cf4aa33ceff7538dfdc0ca">argument_type</a> thePointer)<span class="keyword"> const</span>
<a name="l00127"></a>00127 <span class="keyword"> </span>{
<a name="l00128"></a>00128 <span class="keywordflow">return</span> <a class="code" href="STLHelper_8hpp.html#aea3cb8ddf2a525c71dfb3445bc9a2c26">makeXalanDestroyFunctor</a>(thePointer)(thePointer, m_memoryManager);
<a name="l00129"></a>00129 }
<a name="l00130"></a>00130
<a name="l00131"></a>00131 <span class="keyword">private</span>:
<a name="l00132"></a>00132
<a name="l00133"></a>00133 MemoryManager&amp; m_memoryManager;
<a name="l00134"></a>00134 };
<a name="l00135"></a>00135
<a name="l00136"></a>00136
<a name="l00137"></a>00137
<a name="l00138"></a>00138 <span class="preprocessor">#if !defined(XALAN_SGI_BASED_STL)</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00140"></a>00140 <span class="comment">/**</span>
<a name="l00141"></a>00141 <span class="comment"> * Functor to retrieve the key of a key-value pair in a map, used in STL</span>
<a name="l00142"></a>00142 <span class="comment"> * iteration algorithms.</span>
<a name="l00143"></a>00143 <span class="comment"> */</span>
<a name="l00144"></a>00144 <span class="keyword">template</span> &lt;<span class="keyword">class</span> PairType&gt;
<a name="l00145"></a>00145 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structselect1st.html" title="Functor to retrieve the key of a key-value pair in a map, used in STL iteration algorithms.">select1st</a> : <span class="keyword">public</span> <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;PairType, PairType::first_type&gt;
<a name="l00147"></a>00147 <span class="preprocessor">#else</span>
<a name="l00148"></a><a class="code" href="structselect1st.html">00148</a> <span class="preprocessor"></span>struct <a class="code" href="structselect1st.html" title="Functor to retrieve the key of a key-value pair in a map, used in STL iteration algorithms.">select1st</a> : <span class="keyword">public</span> std::<a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;PairType, typename PairType::first_type&gt;
<a name="l00149"></a>00149 <span class="preprocessor">#endif</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span>{
<a name="l00151"></a>00151 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;PairType, PairType::first_type&gt;</a> BaseClassType;
<a name="l00153"></a>00153 <span class="preprocessor">#else</span>
<a name="l00154"></a><a class="code" href="structselect1st.html#a8d65157c7d6fa3d235c3710cf65b8aa1">00154</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::unary_function&lt;PairType, typename PairType::first_type&gt; BaseClassType;
<a name="l00155"></a>00155 <span class="preprocessor">#endif</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span>
<a name="l00157"></a><a class="code" href="structselect1st.html#ab2aeb5601f0ec265f8dafb8217576930">00157</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00158"></a><a class="code" href="structselect1st.html#a01db280a1d7401c4b6b603a9b9b72a17">00158</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00159"></a>00159
<a name="l00160"></a><a class="code" href="structselect1st.html#aba6f9f7b3416e1d106cbe7e78ea9ef5a">00160</a> <span class="keyword">typedef</span> PairType value_type;
<a name="l00161"></a>00161 <span class="comment"></span>
<a name="l00162"></a>00162 <span class="comment"> /**</span>
<a name="l00163"></a>00163 <span class="comment"> * Retrieve the key of a key-value pair.</span>
<a name="l00164"></a>00164 <span class="comment"> *</span>
<a name="l00165"></a>00165 <span class="comment"> * @param thePair key-value pair</span>
<a name="l00166"></a>00166 <span class="comment"> * @return key</span>
<a name="l00167"></a>00167 <span class="comment"> */</span>
<a name="l00168"></a>00168 <a class="code" href="structselect1st.html#ab2aeb5601f0ec265f8dafb8217576930">result_type</a>
<a name="l00169"></a><a class="code" href="structselect1st.html#a675cd967abb9c484c4c7b43f1881731c">00169</a> <a class="code" href="structselect1st.html#a675cd967abb9c484c4c7b43f1881731c" title="Retrieve the key of a key-value pair.">operator()</a>(<span class="keyword">const</span> <a class="code" href="structselect1st.html#a01db280a1d7401c4b6b603a9b9b72a17">argument_type</a>&amp; thePair)<span class="keyword"> const</span>
<a name="l00170"></a>00170 <span class="keyword"> </span>{
<a name="l00171"></a>00171 <span class="keywordflow">return</span> thePair.first;
<a name="l00172"></a>00172 }
<a name="l00173"></a>00173 };
<a name="l00174"></a>00174
<a name="l00175"></a>00175
<a name="l00176"></a>00176 <span class="comment"></span>
<a name="l00177"></a>00177 <span class="comment">/**</span>
<a name="l00178"></a>00178 <span class="comment"> * Functor to retrieve the value of a key-value pair in a map, used in STL</span>
<a name="l00179"></a>00179 <span class="comment"> * iteration algorithms.</span>
<a name="l00180"></a>00180 <span class="comment"> */</span>
<a name="l00181"></a>00181 <span class="keyword">template</span> &lt;<span class="keyword">class</span> PairType&gt;
<a name="l00182"></a>00182 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structselect2nd.html" title="Functor to retrieve the value of a key-value pair in a map, used in STL iteration algorithms...">select2nd</a> : <span class="keyword">public</span> <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;PairType, PairType::second_type&gt;
<a name="l00184"></a>00184 <span class="preprocessor">#else</span>
<a name="l00185"></a><a class="code" href="structselect2nd.html">00185</a> <span class="preprocessor"></span>struct <a class="code" href="structselect2nd.html" title="Functor to retrieve the value of a key-value pair in a map, used in STL iteration algorithms...">select2nd</a> : <span class="keyword">public</span> std::<a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;PairType, typename PairType::second_type&gt;
<a name="l00186"></a>00186 <span class="preprocessor">#endif</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span>{
<a name="l00188"></a>00188 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00189"></a>00189 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;PairType, PairType::second_type&gt;</a> BaseClassType;
<a name="l00190"></a>00190 <span class="preprocessor">#else</span>
<a name="l00191"></a><a class="code" href="structselect2nd.html#a2ae27f5b58f00bec6dd8ea38d65664ef">00191</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::unary_function&lt;PairType, typename PairType::second_type&gt; BaseClassType;
<a name="l00192"></a>00192 <span class="preprocessor">#endif</span>
<a name="l00193"></a>00193 <span class="preprocessor"></span>
<a name="l00194"></a><a class="code" href="structselect2nd.html#a2727ce0cdb8f18994344922e6e06560e">00194</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00195"></a><a class="code" href="structselect2nd.html#abf9ff278e6235b27431f257e1cb78be0">00195</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00196"></a>00196
<a name="l00197"></a><a class="code" href="structselect2nd.html#a22a20ee0089a6c6a984995e80cd7847a">00197</a> <span class="keyword">typedef</span> PairType value_type;
<a name="l00198"></a>00198 <span class="comment"></span>
<a name="l00199"></a>00199 <span class="comment"> /**</span>
<a name="l00200"></a>00200 <span class="comment"> * Retrieve the value of a key-value pair.</span>
<a name="l00201"></a>00201 <span class="comment"> *</span>
<a name="l00202"></a>00202 <span class="comment"> * @param thePair key-value pair</span>
<a name="l00203"></a>00203 <span class="comment"> * @return value</span>
<a name="l00204"></a>00204 <span class="comment"> */</span>
<a name="l00205"></a>00205 <a class="code" href="structselect2nd.html#a2727ce0cdb8f18994344922e6e06560e">result_type</a>
<a name="l00206"></a><a class="code" href="structselect2nd.html#a2330f9c2eb50910311e56a14e3aafddd">00206</a> <a class="code" href="structselect2nd.html#a2330f9c2eb50910311e56a14e3aafddd" title="Retrieve the value of a key-value pair.">operator()</a>(<span class="keyword">const</span> <a class="code" href="structselect2nd.html#abf9ff278e6235b27431f257e1cb78be0">argument_type</a>&amp; thePair)<span class="keyword"> const</span>
<a name="l00207"></a>00207 <span class="keyword"> </span>{
<a name="l00208"></a>00208 <span class="keywordflow">return</span> thePair.second;
<a name="l00209"></a>00209 }
<a name="l00210"></a>00210 };
<a name="l00211"></a>00211
<a name="l00212"></a>00212 <span class="preprocessor">#endif</span>
<a name="l00213"></a>00213 <span class="preprocessor"></span>
<a name="l00214"></a>00214
<a name="l00215"></a>00215 <span class="comment"></span>
<a name="l00216"></a>00216 <span class="comment">/**</span>
<a name="l00217"></a>00217 <span class="comment"> * Functor to call a clear() member function on its argument.</span>
<a name="l00218"></a>00218 <span class="comment"> */</span>
<a name="l00219"></a>00219 <span class="keyword">template</span> &lt;<span class="keyword">class</span> Type&gt;
<a name="l00220"></a>00220 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structClearFunctor.html" title="Functor to call a clear() member function on its argument.">ClearFunctor</a> : <span class="keyword">public</span> <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;Type, void&gt;
<a name="l00222"></a>00222 <span class="preprocessor">#else</span>
<a name="l00223"></a><a class="code" href="structClearFunctor.html">00223</a> <span class="preprocessor"></span>struct <a class="code" href="structClearFunctor.html" title="Functor to call a clear() member function on its argument.">ClearFunctor</a> : <span class="keyword">public</span> std::<a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;Type, void&gt;
<a name="l00224"></a>00224 <span class="preprocessor">#endif</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span>{
<a name="l00226"></a>00226 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00227"></a>00227 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;Type, void&gt;</a> BaseClassType;
<a name="l00228"></a>00228 <span class="preprocessor">#else</span>
<a name="l00229"></a><a class="code" href="structClearFunctor.html#aa9a0c3a58ded1ef4a85bdc7f0422684e">00229</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::unary_function&lt;Type, void&gt; BaseClassType;
<a name="l00230"></a>00230 <span class="preprocessor">#endif</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span>
<a name="l00232"></a><a class="code" href="structClearFunctor.html#ac851dec1803f50fb19fbe0429a935619">00232</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00233"></a><a class="code" href="structClearFunctor.html#a49fe1ab8965a8de040165138356fd4ab">00233</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00234"></a>00234
<a name="l00235"></a><a class="code" href="structClearFunctor.html#a3bfe82d802183eb955655344f25a43ed">00235</a> <span class="keyword">typedef</span> Type value_type;
<a name="l00236"></a>00236 <span class="comment"></span>
<a name="l00237"></a>00237 <span class="comment"> /**</span>
<a name="l00238"></a>00238 <span class="comment"> * Retrieve the value of a key-value pair.</span>
<a name="l00239"></a>00239 <span class="comment"> *</span>
<a name="l00240"></a>00240 <span class="comment"> * @param thePair key-value pair</span>
<a name="l00241"></a>00241 <span class="comment"> * @return value</span>
<a name="l00242"></a>00242 <span class="comment"> */</span>
<a name="l00243"></a>00243 <a class="code" href="structClearFunctor.html#ac851dec1803f50fb19fbe0429a935619">result_type</a>
<a name="l00244"></a><a class="code" href="structClearFunctor.html#af24380ab3e4918c5324a82b923993469">00244</a> <a class="code" href="structClearFunctor.html#af24380ab3e4918c5324a82b923993469" title="Retrieve the value of a key-value pair.">operator()</a>(<a class="code" href="structClearFunctor.html#a49fe1ab8965a8de040165138356fd4ab">argument_type</a>&amp; theArg)<span class="keyword"> const</span>
<a name="l00245"></a>00245 <span class="keyword"> </span>{
<a name="l00246"></a>00246 <span class="keywordflow">return</span> theArg.clear();
<a name="l00247"></a>00247 }
<a name="l00248"></a>00248 };
<a name="l00249"></a>00249
<a name="l00250"></a>00250
<a name="l00251"></a>00251 <span class="comment"></span>
<a name="l00252"></a>00252 <span class="comment">/**</span>
<a name="l00253"></a>00253 <span class="comment"> * Functor to delete value objects in maps, used in STL iteration algorithms.</span>
<a name="l00254"></a>00254 <span class="comment"> */</span>
<a name="l00255"></a>00255 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00256"></a>00256 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structMapValueDeleteFunctor.html" title="Functor to delete value objects in maps, used in STL iteration algorithms.">MapValueDeleteFunctor</a> : <span class="keyword">public</span> <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const typename T::value_type&amp;, void&gt;
<a name="l00258"></a>00258 <span class="preprocessor">#else</span>
<a name="l00259"></a><a class="code" href="structMapValueDeleteFunctor.html">00259</a> <span class="preprocessor"></span>struct <a class="code" href="structMapValueDeleteFunctor.html" title="Functor to delete value objects in maps, used in STL iteration algorithms.">MapValueDeleteFunctor</a> : <span class="keyword">public</span> std::<a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const typename T::value_type&amp;, void&gt;
<a name="l00260"></a>00260 <span class="preprocessor">#endif</span>
<a name="l00261"></a>00261 <span class="preprocessor"></span>{
<a name="l00262"></a>00262 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00263"></a>00263 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;const typename T::value_type&amp;, void&gt;</a> BaseClassType;
<a name="l00264"></a>00264 <span class="preprocessor">#else</span>
<a name="l00265"></a><a class="code" href="structMapValueDeleteFunctor.html#a059c1ce5718b9f75fb79a56a9080182f">00265</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::unary_function&lt;const typename T::value_type&amp;, void&gt; BaseClassType;
<a name="l00266"></a>00266 <span class="preprocessor">#endif</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span>
<a name="l00268"></a><a class="code" href="structMapValueDeleteFunctor.html#af63f3fe9ac381ea5f8f9e48d8854e0b4">00268</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00269"></a><a class="code" href="structMapValueDeleteFunctor.html#a73c59f07a3368432fdb1e68c7d47d09b">00269</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00270"></a>00270
<a name="l00271"></a><a class="code" href="structMapValueDeleteFunctor.html#ac169cbc1eb854c07d7501b4fea1ab25a">00271</a> <a class="code" href="structMapValueDeleteFunctor.html#ac169cbc1eb854c07d7501b4fea1ab25a">MapValueDeleteFunctor</a>(MemoryManager&amp; theManager) :
<a name="l00272"></a>00272 m_memoryManager(theManager)
<a name="l00273"></a>00273 {
<a name="l00274"></a>00274 }
<a name="l00275"></a>00275 <span class="comment"></span>
<a name="l00276"></a>00276 <span class="comment"> /**</span>
<a name="l00277"></a>00277 <span class="comment"> * Delete the value object in a map value pair. The value of the pair must</span>
<a name="l00278"></a>00278 <span class="comment"> * be of pointer type.</span>
<a name="l00279"></a>00279 <span class="comment"> *</span>
<a name="l00280"></a>00280 <span class="comment"> * @param thePair key-value pair</span>
<a name="l00281"></a>00281 <span class="comment"> */</span>
<a name="l00282"></a>00282 <a class="code" href="structMapValueDeleteFunctor.html#af63f3fe9ac381ea5f8f9e48d8854e0b4">result_type</a>
<a name="l00283"></a><a class="code" href="structMapValueDeleteFunctor.html#a94a63c01db31233b5ebc15144c9a42fb">00283</a> <a class="code" href="structMapValueDeleteFunctor.html#a94a63c01db31233b5ebc15144c9a42fb" title="Delete the value object in a map value pair.">operator()</a>(<a class="code" href="structMapValueDeleteFunctor.html#a73c59f07a3368432fdb1e68c7d47d09b">argument_type</a> thePair)<span class="keyword"> const</span>
<a name="l00284"></a>00284 <span class="keyword"> </span>{
<a name="l00285"></a>00285 <span class="keywordflow">return</span> <a class="code" href="STLHelper_8hpp.html#aea3cb8ddf2a525c71dfb3445bc9a2c26">makeXalanDestroyFunctor</a>(thePair.second)(thePair.second, m_memoryManager);
<a name="l00286"></a>00286 }
<a name="l00287"></a>00287
<a name="l00288"></a>00288 <span class="keyword">private</span>:
<a name="l00289"></a>00289
<a name="l00290"></a>00290 MemoryManager&amp; m_memoryManager;
<a name="l00291"></a>00291 };
<a name="l00292"></a>00292
<a name="l00293"></a>00293
<a name="l00294"></a>00294
<a name="l00295"></a>00295 <span class="keyword">template</span>&lt;<span class="keyword">class</span> MapType&gt;
<a name="l00296"></a>00296 <a class="code" href="structMapValueDeleteFunctor.html" title="Functor to delete value objects in maps, used in STL iteration algorithms.">MapValueDeleteFunctor&lt;MapType&gt;</a>
<a name="l00297"></a><a class="code" href="STLHelper_8hpp.html#a1508d99bce5dc7db5945cfb539fe28c5">00297</a> <a class="code" href="STLHelper_8hpp.html#a1508d99bce5dc7db5945cfb539fe28c5">makeMapValueDeleteFunctor</a>(MapType&amp; theMap)
<a name="l00298"></a>00298 {
<a name="l00299"></a>00299 <span class="keywordflow">return</span> <a class="code" href="structMapValueDeleteFunctor.html" title="Functor to delete value objects in maps, used in STL iteration algorithms.">MapValueDeleteFunctor&lt;MapType&gt;</a>(theMap.getMemoryManager());
<a name="l00300"></a>00300 }
<a name="l00301"></a>00301
<a name="l00302"></a>00302
<a name="l00303"></a>00303 <span class="comment"></span>
<a name="l00304"></a>00304 <span class="comment">/**</span>
<a name="l00305"></a>00305 <span class="comment"> * This functor is designed to compare 0-terminated arrays. It substitutes</span>
<a name="l00306"></a>00306 <span class="comment"> * for the default less&lt;type*&gt; so that pointers to arrays can be compared,</span>
<a name="l00307"></a>00307 <span class="comment"> * rather than copies of arrays. For example, you might want to use C-style</span>
<a name="l00308"></a>00308 <span class="comment"> * strings as keys in a map, rather than string objects. The default</span>
<a name="l00309"></a>00309 <span class="comment"> * algorithm less&lt;const char*&gt; would just compare the pointers, and not the</span>
<a name="l00310"></a>00310 <span class="comment"> * vector of characters to which it points. Using this algorithm instead of</span>
<a name="l00311"></a>00311 <span class="comment"> * the default will allow the map to work as expected.</span>
<a name="l00312"></a>00312 <span class="comment"> */</span>
<a name="l00313"></a>00313 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00314"></a>00314 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00315"></a>00315 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structless__null__terminated__arrays.html" title="This functor is designed to compare 0-terminated arrays.">less_null_terminated_arrays</a> : <span class="keyword">public</span> binary_function&lt;const T*, const T*, bool&gt;
<a name="l00316"></a>00316 <span class="preprocessor">#else</span>
<a name="l00317"></a><a class="code" href="structless__null__terminated__arrays.html">00317</a> <span class="preprocessor"></span>struct <a class="code" href="structless__null__terminated__arrays.html" title="This functor is designed to compare 0-terminated arrays.">less_null_terminated_arrays</a> : <span class="keyword">public</span> std::binary_function&lt;const T*, const T*, bool&gt;
<a name="l00318"></a>00318 <span class="preprocessor">#endif</span>
<a name="l00319"></a>00319 <span class="preprocessor"></span>{
<a name="l00320"></a>00320 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00321"></a>00321 <span class="preprocessor"></span> <span class="keyword">typedef</span> binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00322"></a>00322 <span class="preprocessor">#else</span>
<a name="l00323"></a><a class="code" href="structless__null__terminated__arrays.html#a1f84a295d170c3475d3a182f2508845f">00323</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00324"></a>00324 <span class="preprocessor">#endif</span>
<a name="l00325"></a>00325 <span class="preprocessor"></span>
<a name="l00326"></a><a class="code" href="structless__null__terminated__arrays.html#a17af428bf668a57bc8558e6038826776">00326</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00327"></a><a class="code" href="structless__null__terminated__arrays.html#a2a0a426396466b7c00e7df9c6e484400">00327</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::first_argument_type first_argument_type;
<a name="l00328"></a><a class="code" href="structless__null__terminated__arrays.html#a1ff276566345cdaeed8e8b6aa839607b">00328</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::second_argument_type second_argument_type;
<a name="l00329"></a>00329 <span class="comment"></span>
<a name="l00330"></a>00330 <span class="comment"> /**</span>
<a name="l00331"></a>00331 <span class="comment"> * Compare the values of two objects.</span>
<a name="l00332"></a>00332 <span class="comment"> *</span>
<a name="l00333"></a>00333 <span class="comment"> *</span>
<a name="l00334"></a>00334 <span class="comment"> * @param theLHS first object to compare</span>
<a name="l00335"></a>00335 <span class="comment"> * @param theRHS second object to compare</span>
<a name="l00336"></a>00336 <span class="comment"> * @return true if objects are the same</span>
<a name="l00337"></a>00337 <span class="comment"> */</span>
<a name="l00338"></a>00338 <a class="code" href="structless__null__terminated__arrays.html#a17af428bf668a57bc8558e6038826776">result_type</a>
<a name="l00339"></a><a class="code" href="structless__null__terminated__arrays.html#a7acd074360fefe19eb653e06cea992f4">00339</a> <a class="code" href="structless__null__terminated__arrays.html#a7acd074360fefe19eb653e06cea992f4" title="Compare the values of two objects.">operator()</a>(
<a name="l00340"></a>00340 <a class="code" href="structless__null__terminated__arrays.html#a2a0a426396466b7c00e7df9c6e484400">first_argument_type</a> theLHS,
<a name="l00341"></a>00341 <a class="code" href="structless__null__terminated__arrays.html#a1ff276566345cdaeed8e8b6aa839607b">second_argument_type</a> theRHS)<span class="keyword"> const</span>
<a name="l00342"></a>00342 <span class="keyword"> </span>{
<a name="l00343"></a>00343 <span class="keywordflow">while</span>(*theLHS &amp;&amp; *theRHS)
<a name="l00344"></a>00344 {
<a name="l00345"></a>00345 <span class="keywordflow">if</span> (*theLHS != *theRHS)
<a name="l00346"></a>00346 {
<a name="l00347"></a>00347 <span class="keywordflow">break</span>;
<a name="l00348"></a>00348 }
<a name="l00349"></a>00349 <span class="keywordflow">else</span>
<a name="l00350"></a>00350 {
<a name="l00351"></a>00351 theLHS++;
<a name="l00352"></a>00352 theRHS++;
<a name="l00353"></a>00353 }
<a name="l00354"></a>00354 }
<a name="l00355"></a>00355
<a name="l00356"></a>00356 <span class="keywordflow">return</span> *theLHS &lt; *theRHS ? <span class="keyword">true</span> : <span class="keyword">false</span>;
<a name="l00357"></a>00357 }
<a name="l00358"></a>00358 };
<a name="l00359"></a>00359
<a name="l00360"></a>00360
<a name="l00361"></a>00361
<a name="l00362"></a>00362 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00363"></a><a class="code" href="structequal__null__terminated__arrays.html">00363</a> <span class="keyword">struct </span><a class="code" href="structequal__null__terminated__arrays.html">equal_null_terminated_arrays</a> : <span class="keyword">public</span> XALAN_STD_QUALIFIER binary_function&lt;const T*, const T*, bool&gt;
<a name="l00364"></a>00364 {
<a name="l00365"></a><a class="code" href="structequal__null__terminated__arrays.html#aa9fdd663569d9c0d5aacfe53f44db544">00365</a> <span class="keyword">typedef</span> XALAN_STD_QUALIFIER binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00366"></a>00366
<a name="l00367"></a><a class="code" href="structequal__null__terminated__arrays.html#aedcec8375eedabba15d770eaad74997f">00367</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00368"></a><a class="code" href="structequal__null__terminated__arrays.html#abb5ce27d41ab33b646af1068bae2bf71">00368</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::first_argument_type first_argument_type;
<a name="l00369"></a><a class="code" href="structequal__null__terminated__arrays.html#a28cc399c1ca71f11fab62e641e4aa986">00369</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::second_argument_type second_argument_type;<span class="comment"></span>
<a name="l00370"></a>00370 <span class="comment"> /**</span>
<a name="l00371"></a>00371 <span class="comment"> * Compare the values of two objects.</span>
<a name="l00372"></a>00372 <span class="comment"> *</span>
<a name="l00373"></a>00373 <span class="comment"> *</span>
<a name="l00374"></a>00374 <span class="comment"> * @param theLHS first object to compare</span>
<a name="l00375"></a>00375 <span class="comment"> * @param theRHS second object to compare</span>
<a name="l00376"></a>00376 <span class="comment"> * @return true if objects are the same</span>
<a name="l00377"></a>00377 <span class="comment"> */</span>
<a name="l00378"></a>00378 <a class="code" href="structequal__null__terminated__arrays.html#aedcec8375eedabba15d770eaad74997f">result_type</a>
<a name="l00379"></a><a class="code" href="structequal__null__terminated__arrays.html#a9fb4eb769a03b9af2d58d9cb1bbb3aa6">00379</a> <a class="code" href="structequal__null__terminated__arrays.html#a9fb4eb769a03b9af2d58d9cb1bbb3aa6" title="Compare the values of two objects.">operator()</a>(
<a name="l00380"></a>00380 <a class="code" href="structequal__null__terminated__arrays.html#abb5ce27d41ab33b646af1068bae2bf71">first_argument_type</a> theLHS,
<a name="l00381"></a>00381 <a class="code" href="structequal__null__terminated__arrays.html#a28cc399c1ca71f11fab62e641e4aa986">second_argument_type</a> theRHS)<span class="keyword"> const</span>
<a name="l00382"></a>00382 <span class="keyword"> </span>{
<a name="l00383"></a>00383 <span class="keywordflow">while</span>(*theLHS &amp;&amp; *theRHS)
<a name="l00384"></a>00384 {
<a name="l00385"></a>00385 <span class="keywordflow">if</span> (*theLHS != *theRHS)
<a name="l00386"></a>00386 {
<a name="l00387"></a>00387 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00388"></a>00388 }
<a name="l00389"></a>00389 <span class="keywordflow">else</span>
<a name="l00390"></a>00390 {
<a name="l00391"></a>00391 ++theLHS;
<a name="l00392"></a>00392 ++theRHS;
<a name="l00393"></a>00393 }
<a name="l00394"></a>00394 }
<a name="l00395"></a>00395
<a name="l00396"></a>00396 <span class="keywordflow">if</span> (*theLHS || *theRHS)
<a name="l00397"></a>00397 {
<a name="l00398"></a>00398 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00399"></a>00399 }
<a name="l00400"></a>00400 <span class="keywordflow">else</span>
<a name="l00401"></a>00401 {
<a name="l00402"></a>00402 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00403"></a>00403 }
<a name="l00404"></a>00404 }
<a name="l00405"></a>00405 };
<a name="l00406"></a>00406
<a name="l00407"></a>00407
<a name="l00408"></a>00408
<a name="l00409"></a>00409 <span class="keyword">template</span> &lt;<span class="keyword">class</span> ScalarType&gt;
<a name="l00410"></a>00410 <span class="keyword">inline</span> <span class="keywordtype">size_t</span>
<a name="l00411"></a><a class="code" href="STLHelper_8hpp.html#aab3119ab41ff6757bc738fc643603143">00411</a> <a class="code" href="STLHelper_8hpp.html#aab3119ab41ff6757bc738fc643603143">XalanScalarHash</a>(
<a name="l00412"></a>00412 ScalarType theValue,
<a name="l00413"></a>00413 <span class="keywordtype">size_t</span> <a class="code" href="XalanDOMString_8hpp.html#ad0987a2085caff760532b7f16b5c6f2e">theResult</a>)
<a name="l00414"></a>00414 {
<a name="l00415"></a>00415 <span class="keywordflow">return</span> (theResult * 37) + (theResult &gt;&gt; 24) + <a class="code" href="XalanMap_8hpp.html#a39efc23c4f36ef6389e4a1fbe96c5f2e">size_type</a>(theValue);
<a name="l00416"></a>00416 }
<a name="l00417"></a>00417
<a name="l00418"></a>00418
<a name="l00419"></a>00419
<a name="l00420"></a>00420 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00421"></a><a class="code" href="structhash__non__terminated__array.html">00421</a> <span class="keyword">struct </span><a class="code" href="structhash__non__terminated__array.html">hash_non_terminated_array</a> : <span class="keyword">public</span> XALAN_STD_QUALIFIER <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const T*, size_t&gt;
<a name="l00422"></a>00422 {
<a name="l00423"></a><a class="code" href="structhash__non__terminated__array.html#ac327bde7c789849de959dbfd180e532d">00423</a> <span class="keyword">typedef</span> XALAN_STD_QUALIFIER <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;const T*, size_t&gt;</a> BaseClassType;
<a name="l00424"></a>00424
<a name="l00425"></a><a class="code" href="structhash__non__terminated__array.html#a21da9ba07e2ec6cf2735eef7e9acf62b">00425</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00426"></a><a class="code" href="structhash__non__terminated__array.html#a3b281fdd43d1fa21ebacad315c9a7487">00426</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00427"></a>00427
<a name="l00428"></a>00428 <a class="code" href="structhash__non__terminated__array.html#a21da9ba07e2ec6cf2735eef7e9acf62b">result_type</a>
<a name="l00429"></a><a class="code" href="structhash__non__terminated__array.html#a5681b9717e6efbbbf50bf631f9f9e902">00429</a> <a class="code" href="structhash__non__terminated__array.html#a5681b9717e6efbbbf50bf631f9f9e902">operator() </a>(
<a name="l00430"></a>00430 <a class="code" href="structhash__non__terminated__array.html#a3b281fdd43d1fa21ebacad315c9a7487">argument_type</a> theKey,
<a name="l00431"></a>00431 <a class="code" href="structhash__non__terminated__array.html#a21da9ba07e2ec6cf2735eef7e9acf62b">result_type</a> theLength,
<a name="l00432"></a>00432 <a class="code" href="structhash__non__terminated__array.html#a21da9ba07e2ec6cf2735eef7e9acf62b">result_type</a> theInitialValue = 0)<span class="keyword"> const</span>
<a name="l00433"></a>00433 <span class="keyword"> </span>{
<a name="l00434"></a>00434 <a class="code" href="structhash__non__terminated__array.html#a21da9ba07e2ec6cf2735eef7e9acf62b">result_type</a> theHashValue = theInitialValue;
<a name="l00435"></a>00435
<a name="l00436"></a>00436 <span class="keyword">const</span> <a class="code" href="structhash__non__terminated__array.html#a3b281fdd43d1fa21ebacad315c9a7487">argument_type</a> theEnd =
<a name="l00437"></a>00437 theKey + theLength;
<a name="l00438"></a>00438
<a name="l00439"></a>00439 <span class="keywordflow">while</span> (theKey != theEnd)
<a name="l00440"></a>00440 {
<a name="l00441"></a>00441 theHashValue += <a class="code" href="STLHelper_8hpp.html#aab3119ab41ff6757bc738fc643603143">XalanScalarHash</a>(*theKey, theHashValue);
<a name="l00442"></a>00442
<a name="l00443"></a>00443 ++theKey;
<a name="l00444"></a>00444 }
<a name="l00445"></a>00445
<a name="l00446"></a>00446 <span class="keywordflow">return</span> ++theHashValue;
<a name="l00447"></a>00447 }
<a name="l00448"></a>00448 };
<a name="l00449"></a>00449
<a name="l00450"></a>00450
<a name="l00451"></a>00451
<a name="l00452"></a>00452 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00453"></a><a class="code" href="structhash__null__terminated__array.html">00453</a> <span class="keyword">struct </span><a class="code" href="structhash__null__terminated__array.html">hash_null_terminated_array</a> : <span class="keyword">public</span> XALAN_STD_QUALIFIER <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const T*, size_t&gt;
<a name="l00454"></a>00454 {
<a name="l00455"></a><a class="code" href="structhash__null__terminated__array.html#a1bbc4232c607631358ed6fbeaff1ab7a">00455</a> <span class="keyword">typedef</span> XALAN_STD_QUALIFIER <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;const T*, size_t&gt;</a> BaseClassType;
<a name="l00456"></a>00456
<a name="l00457"></a><a class="code" href="structhash__null__terminated__array.html#a4a3ec35b2ca851a2fab7262168f50cd5">00457</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00458"></a><a class="code" href="structhash__null__terminated__array.html#a26abefd35e873fd336ccd1b39790743f">00458</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00459"></a>00459
<a name="l00460"></a>00460 <a class="code" href="structhash__null__terminated__array.html#a4a3ec35b2ca851a2fab7262168f50cd5">result_type</a>
<a name="l00461"></a><a class="code" href="structhash__null__terminated__array.html#a0c25fb6d6856e1dfaafd7557fd8a10d6">00461</a> <a class="code" href="structhash__null__terminated__array.html#a0c25fb6d6856e1dfaafd7557fd8a10d6">operator() </a>(
<a name="l00462"></a>00462 <a class="code" href="structhash__null__terminated__array.html#a26abefd35e873fd336ccd1b39790743f">argument_type</a> theKey,
<a name="l00463"></a>00463 <a class="code" href="structhash__null__terminated__array.html#a4a3ec35b2ca851a2fab7262168f50cd5">result_type</a> theInitialValue = 0)<span class="keyword"> const</span>
<a name="l00464"></a>00464 <span class="keyword"> </span>{
<a name="l00465"></a>00465 <a class="code" href="structhash__null__terminated__array.html#a4a3ec35b2ca851a2fab7262168f50cd5">result_type</a> theHashValue = theInitialValue;
<a name="l00466"></a>00466
<a name="l00467"></a>00467 <span class="keywordflow">while</span> (*theKey)
<a name="l00468"></a>00468 {
<a name="l00469"></a>00469 theHashValue += <a class="code" href="STLHelper_8hpp.html#aab3119ab41ff6757bc738fc643603143">XalanScalarHash</a>(*theKey, theHashValue);
<a name="l00470"></a>00470
<a name="l00471"></a>00471 ++theKey;
<a name="l00472"></a>00472 }
<a name="l00473"></a>00473
<a name="l00474"></a>00474 <span class="keywordflow">return</span> ++theHashValue;
<a name="l00475"></a>00475 }
<a name="l00476"></a>00476 };
<a name="l00477"></a>00477
<a name="l00478"></a>00478
<a name="l00479"></a>00479
<a name="l00480"></a>00480 <span class="keyword">template</span>&lt;&gt;
<a name="l00481"></a><a class="code" href="structXalanMapKeyTraits_3_01const_01XalanDOMChar_01_5_01_4.html">00481</a> <span class="keyword">struct </span><a class="code" href="structXalanMapKeyTraits.html">XalanMapKeyTraits</a>&lt;const XalanDOMChar*&gt;
<a name="l00482"></a>00482 {
<a name="l00483"></a><a class="code" href="structXalanMapKeyTraits_3_01const_01XalanDOMChar_01_5_01_4.html#ab2d8e3f4ab9f08d08010695931f04391">00483</a> <span class="keyword">typedef</span> <a class="code" href="structhash__null__terminated__array.html">hash_null_terminated_array&lt;XalanDOMChar&gt;</a> <a class="code" href="structhash__null__terminated__array.html">Hasher</a>;
<a name="l00484"></a><a class="code" href="structXalanMapKeyTraits_3_01const_01XalanDOMChar_01_5_01_4.html#ae9dc497f57a44d90c4ffae2f1647f854">00484</a> <span class="keyword">typedef</span> <a class="code" href="structequal__null__terminated__arrays.html">equal_null_terminated_arrays&lt;XalanDOMChar&gt;</a> <a class="code" href="structequal__null__terminated__arrays.html">Comparator</a>;
<a name="l00485"></a>00485 };
<a name="l00486"></a>00486
<a name="l00487"></a>00487
<a name="l00488"></a>00488
<a name="l00489"></a>00489 <span class="keyword">template</span>&lt;<span class="keyword">class</span> CollectionType&gt;
<a name="l00490"></a><a class="code" href="classCollectionClearGuard.html">00490</a> <span class="keyword">class </span><a class="code" href="classCollectionClearGuard.html">CollectionClearGuard</a>
<a name="l00491"></a>00491 {
<a name="l00492"></a>00492 <span class="keyword">public</span>:
<a name="l00493"></a>00493
<a name="l00494"></a><a class="code" href="classCollectionClearGuard.html#a318a60819f229b4c626e161778b902ef">00494</a> <a class="code" href="classCollectionClearGuard.html#a318a60819f229b4c626e161778b902ef">CollectionClearGuard</a>(CollectionType&amp; theCollection) :
<a name="l00495"></a>00495 m_collection(&amp;theCollection)
<a name="l00496"></a>00496 {
<a name="l00497"></a>00497 }
<a name="l00498"></a>00498
<a name="l00499"></a><a class="code" href="classCollectionClearGuard.html#a191afafd84972a78b4f3bdb8f9b1a35a">00499</a> <a class="code" href="classCollectionClearGuard.html#a191afafd84972a78b4f3bdb8f9b1a35a">~CollectionClearGuard</a>()
<a name="l00500"></a>00500 {
<a name="l00501"></a>00501 <span class="keywordflow">if</span> (m_collection != 0)
<a name="l00502"></a>00502 {
<a name="l00503"></a>00503 m_collection-&gt;clear();
<a name="l00504"></a>00504 }
<a name="l00505"></a>00505 }
<a name="l00506"></a>00506
<a name="l00507"></a>00507 <span class="keywordtype">void</span>
<a name="l00508"></a><a class="code" href="classCollectionClearGuard.html#afab3a6ea2311be4f916c00565ed3b159">00508</a> <a class="code" href="classCollectionClearGuard.html#afab3a6ea2311be4f916c00565ed3b159">release</a>()
<a name="l00509"></a>00509 {
<a name="l00510"></a>00510 m_collection = 0;
<a name="l00511"></a>00511 }
<a name="l00512"></a>00512
<a name="l00513"></a>00513 <span class="keyword">private</span>:
<a name="l00514"></a>00514
<a name="l00515"></a>00515 <span class="comment">// Not implemented...</span>
<a name="l00516"></a>00516 <a class="code" href="classCollectionClearGuard.html#a318a60819f229b4c626e161778b902ef">CollectionClearGuard</a>(<span class="keyword">const</span> <a class="code" href="classCollectionClearGuard.html">CollectionClearGuard&lt;CollectionType&gt;</a>&amp;);
<a name="l00517"></a>00517
<a name="l00518"></a>00518 <a class="code" href="classCollectionClearGuard.html">CollectionClearGuard&lt;CollectionType&gt;</a>&amp;
<a name="l00519"></a>00519 operator=(<span class="keyword">const</span> <a class="code" href="classCollectionClearGuard.html">CollectionClearGuard&lt;CollectionType&gt;</a>&amp;);
<a name="l00520"></a>00520
<a name="l00521"></a>00521 <span class="comment">// Data members...</span>
<a name="l00522"></a>00522 CollectionType* m_collection;
<a name="l00523"></a>00523 };
<a name="l00524"></a>00524
<a name="l00525"></a>00525
<a name="l00526"></a>00526
<a name="l00527"></a>00527 <span class="keyword">template</span>&lt;<span class="keyword">class</span> CollectionType, <span class="keyword">class</span> DeleteFunctorType&gt;
<a name="l00528"></a><a class="code" href="classCollectionDeleteGuard.html">00528</a> <span class="keyword">class </span><a class="code" href="classCollectionDeleteGuard.html">CollectionDeleteGuard</a>
<a name="l00529"></a>00529 {
<a name="l00530"></a>00530 <span class="keyword">public</span>:
<a name="l00531"></a>00531
<a name="l00532"></a><a class="code" href="classCollectionDeleteGuard.html#a6d5299f61ce24c63b00b5df3d004ef55">00532</a> <a class="code" href="classCollectionDeleteGuard.html#a6d5299f61ce24c63b00b5df3d004ef55">CollectionDeleteGuard</a>(CollectionType&amp; theCollection) :
<a name="l00533"></a>00533 m_collection(&amp;theCollection)
<a name="l00534"></a>00534 {
<a name="l00535"></a>00535 }
<a name="l00536"></a>00536
<a name="l00537"></a><a class="code" href="classCollectionDeleteGuard.html#a81539fa002ad5318fb840eb6b6ba5db4">00537</a> <a class="code" href="classCollectionDeleteGuard.html#a81539fa002ad5318fb840eb6b6ba5db4">~CollectionDeleteGuard</a>()
<a name="l00538"></a>00538 {
<a name="l00539"></a>00539 <span class="keywordflow">if</span> (m_collection != 0)
<a name="l00540"></a>00540 {
<a name="l00541"></a>00541 <span class="preprocessor">#if !defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00542"></a>00542 <span class="preprocessor"></span> <span class="keyword">using</span> std::for_each;
<a name="l00543"></a>00543 <span class="preprocessor">#endif</span>
<a name="l00544"></a>00544 <span class="preprocessor"></span>
<a name="l00545"></a>00545 <span class="comment">// Delete all of the objects in the temp vector.</span>
<a name="l00546"></a>00546 for_each(m_collection-&gt;begin(),
<a name="l00547"></a>00547 m_collection-&gt;end(),
<a name="l00548"></a>00548 DeleteFunctorType(m_collection-&gt;getMemoryManager()));
<a name="l00549"></a>00549 }
<a name="l00550"></a>00550 }
<a name="l00551"></a>00551
<a name="l00552"></a>00552 <span class="keywordtype">void</span>
<a name="l00553"></a><a class="code" href="classCollectionDeleteGuard.html#a01ec4dc5922cd0ce9a15840112b75d12">00553</a> <a class="code" href="classCollectionDeleteGuard.html#a01ec4dc5922cd0ce9a15840112b75d12">release</a>()
<a name="l00554"></a>00554 {
<a name="l00555"></a>00555 m_collection = 0;
<a name="l00556"></a>00556 }
<a name="l00557"></a>00557
<a name="l00558"></a>00558 <span class="keyword">private</span>:
<a name="l00559"></a>00559
<a name="l00560"></a>00560 <span class="comment">// Not implemented...</span>
<a name="l00561"></a>00561 <a class="code" href="classCollectionDeleteGuard.html#a6d5299f61ce24c63b00b5df3d004ef55">CollectionDeleteGuard</a>(<span class="keyword">const</span> <a class="code" href="classCollectionDeleteGuard.html">CollectionDeleteGuard&lt;CollectionType, DeleteFunctorType&gt;</a>&amp;);
<a name="l00562"></a>00562
<a name="l00563"></a>00563 <a class="code" href="classCollectionDeleteGuard.html">CollectionDeleteGuard&lt;CollectionType, DeleteFunctorType&gt;</a>&amp;
<a name="l00564"></a>00564 operator=(<span class="keyword">const</span> <a class="code" href="classCollectionDeleteGuard.html">CollectionDeleteGuard&lt;CollectionType, DeleteFunctorType&gt;</a>&amp;);
<a name="l00565"></a>00565
<a name="l00566"></a>00566 <span class="comment">// Data members...</span>
<a name="l00567"></a>00567 CollectionType* m_collection;
<a name="l00568"></a>00568 };
<a name="l00569"></a>00569
<a name="l00570"></a>00570
<a name="l00571"></a>00571
<a name="l00572"></a>00572 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00573"></a>00573 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00574"></a>00574 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structpointer__equals.html">pointer_equals</a> : <span class="keyword">public</span> binary_function&lt;const T*, const T*, bool&gt;
<a name="l00575"></a>00575 <span class="preprocessor">#else</span>
<a name="l00576"></a><a class="code" href="structpointer__equals.html">00576</a> <span class="preprocessor"></span>struct <a class="code" href="structpointer__equals.html">pointer_equals</a> : <span class="keyword">public</span> std::binary_function&lt;const T*, const T*, bool&gt;
<a name="l00577"></a>00577 <span class="preprocessor">#endif</span>
<a name="l00578"></a>00578 <span class="preprocessor"></span>{
<a name="l00579"></a>00579 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00580"></a>00580 <span class="preprocessor"></span> <span class="keyword">typedef</span> binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00581"></a>00581 <span class="preprocessor">#else</span>
<a name="l00582"></a><a class="code" href="structpointer__equals.html#a0c68a289e994315bfd483569707deb10">00582</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00583"></a>00583 <span class="preprocessor">#endif</span>
<a name="l00584"></a>00584 <span class="preprocessor"></span>
<a name="l00585"></a><a class="code" href="structpointer__equals.html#ac289a78a2274dc340b634c4faf4d9a99">00585</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00586"></a><a class="code" href="structpointer__equals.html#a2043e056675d39a85970ae0b8fc82bcd">00586</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::first_argument_type first_argument_type;
<a name="l00587"></a><a class="code" href="structpointer__equals.html#a4ed22b54e5bad402bf61416660f77550">00587</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::second_argument_type second_argument_type;
<a name="l00588"></a>00588
<a name="l00589"></a>00589 <a class="code" href="structpointer__equals.html#ac289a78a2274dc340b634c4faf4d9a99">result_type</a>
<a name="l00590"></a><a class="code" href="structpointer__equals.html#ab4a126c0b506739270cedd84826752eb">00590</a> <a class="code" href="structpointer__equals.html#ab4a126c0b506739270cedd84826752eb">operator()</a>(
<a name="l00591"></a>00591 <a class="code" href="structpointer__equals.html#a2043e056675d39a85970ae0b8fc82bcd">first_argument_type</a> theLHS,
<a name="l00592"></a>00592 <a class="code" href="structpointer__equals.html#a4ed22b54e5bad402bf61416660f77550">second_argument_type</a> theRHS)<span class="keyword"> const</span>
<a name="l00593"></a>00593 <span class="keyword"> </span>{
<a name="l00594"></a>00594 assert(theLHS != 0 &amp;&amp; theRHS != 0);
<a name="l00595"></a>00595
<a name="l00596"></a>00596 <span class="keywordflow">return</span> *theLHS == *theRHS;
<a name="l00597"></a>00597 }
<a name="l00598"></a>00598 };
<a name="l00599"></a>00599
<a name="l00600"></a>00600
<a name="l00601"></a>00601
<a name="l00602"></a>00602 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00603"></a>00603 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00604"></a>00604 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structpointer__equals__predicate.html">pointer_equals_predicate</a> : <span class="keyword">public</span> <a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const T*, bool&gt;
<a name="l00605"></a>00605 <span class="preprocessor">#else</span>
<a name="l00606"></a><a class="code" href="structpointer__equals__predicate.html">00606</a> <span class="preprocessor"></span>struct <a class="code" href="structpointer__equals__predicate.html">pointer_equals_predicate</a> : <span class="keyword">public</span> std::<a class="code" href="classstd_1_1unary__function.html">unary_function</a>&lt;const T*, bool&gt;
<a name="l00607"></a>00607 <span class="preprocessor">#endif</span>
<a name="l00608"></a>00608 <span class="preprocessor"></span>{
<a name="l00609"></a>00609 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00610"></a>00610 <span class="preprocessor"></span> <span class="keyword">typedef</span> <a class="code" href="classstd_1_1unary__function.html">unary_function&lt;const T*, bool&gt;</a> BaseClassType;
<a name="l00611"></a>00611 <span class="preprocessor">#else</span>
<a name="l00612"></a><a class="code" href="structpointer__equals__predicate.html#a16a32722c6392a2c14ad214025c18c95">00612</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::unary_function&lt;const T*, bool&gt; BaseClassType;
<a name="l00613"></a>00613 <span class="preprocessor">#endif</span>
<a name="l00614"></a>00614 <span class="preprocessor"></span>
<a name="l00615"></a><a class="code" href="structpointer__equals__predicate.html#a3b3d29fb2f8941873358bd75ea899c20">00615</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00616"></a><a class="code" href="structpointer__equals__predicate.html#aa30606a182add370ac89e7b559611935">00616</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::argument_type argument_type;
<a name="l00617"></a>00617
<a name="l00618"></a><a class="code" href="structpointer__equals__predicate.html#a0fe780782d526cb71ce262be3c95a37d">00618</a> <a class="code" href="structpointer__equals__predicate.html#a0fe780782d526cb71ce262be3c95a37d">pointer_equals_predicate</a>(<a class="code" href="structpointer__equals__predicate.html#aa30606a182add370ac89e7b559611935">argument_type</a> theArg) :
<a name="l00619"></a>00619 m_arg(theArg)
<a name="l00620"></a>00620 {
<a name="l00621"></a>00621 }
<a name="l00622"></a>00622
<a name="l00623"></a>00623 <a class="code" href="structpointer__equals__predicate.html#a3b3d29fb2f8941873358bd75ea899c20">result_type</a>
<a name="l00624"></a><a class="code" href="structpointer__equals__predicate.html#a4e989c2d248c1847980b55e81e3b1388">00624</a> <a class="code" href="structpointer__equals__predicate.html#a4e989c2d248c1847980b55e81e3b1388">operator()</a>(
<a name="l00625"></a>00625 <a class="code" href="structpointer__equals__predicate.html#aa30606a182add370ac89e7b559611935">argument_type</a> theOther)<span class="keyword"> const</span>
<a name="l00626"></a>00626 <span class="keyword"> </span>{
<a name="l00627"></a>00627 assert(theOther != 0);
<a name="l00628"></a>00628
<a name="l00629"></a>00629 <span class="keywordflow">return</span> *theOther == *m_arg;
<a name="l00630"></a>00630 }
<a name="l00631"></a>00631
<a name="l00632"></a>00632 <span class="keyword">private</span>:
<a name="l00633"></a>00633
<a name="l00634"></a>00634 <span class="keyword">const</span> <a class="code" href="structpointer__equals__predicate.html#aa30606a182add370ac89e7b559611935">argument_type</a> m_arg;
<a name="l00635"></a>00635 };
<a name="l00636"></a>00636
<a name="l00637"></a>00637
<a name="l00638"></a>00638
<a name="l00639"></a>00639 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00640"></a>00640 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00641"></a>00641 <span class="preprocessor"></span><span class="keyword">struct </span><a class="code" href="structpointer__less.html">pointer_less</a> : <span class="keyword">public</span> binary_function&lt;const T*, const T*, bool&gt;
<a name="l00642"></a>00642 <span class="preprocessor">#else</span>
<a name="l00643"></a><a class="code" href="structpointer__less.html">00643</a> <span class="preprocessor"></span>struct <a class="code" href="structpointer__less.html">pointer_less</a> : <span class="keyword">public</span> std::binary_function&lt;const T*, const T*, bool&gt;
<a name="l00644"></a>00644 <span class="preprocessor">#endif</span>
<a name="l00645"></a>00645 <span class="preprocessor"></span>{
<a name="l00646"></a>00646 <span class="preprocessor">#if defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00647"></a>00647 <span class="preprocessor"></span> <span class="keyword">typedef</span> binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00648"></a>00648 <span class="preprocessor">#else</span>
<a name="l00649"></a><a class="code" href="structpointer__less.html#a145f82c27ccd6b974d88fe81a3a73bc3">00649</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00650"></a>00650 <span class="preprocessor">#endif</span>
<a name="l00651"></a>00651 <span class="preprocessor"></span>
<a name="l00652"></a><a class="code" href="structpointer__less.html#a28937ce4323d74f4b260d6ae6f5ccc1a">00652</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00653"></a><a class="code" href="structpointer__less.html#a16f25fe99c7f1bd75f09b8842cdc671a">00653</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::first_argument_type first_argument_type;
<a name="l00654"></a><a class="code" href="structpointer__less.html#a97dc8340c5b94ffd323b652bf0c3e475">00654</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::second_argument_type second_argument_type;
<a name="l00655"></a>00655
<a name="l00656"></a>00656 <a class="code" href="structpointer__less.html#a28937ce4323d74f4b260d6ae6f5ccc1a">result_type</a>
<a name="l00657"></a><a class="code" href="structpointer__less.html#a9bd22bb3002752d95cba3c9ff93de175">00657</a> <a class="code" href="structpointer__less.html#a9bd22bb3002752d95cba3c9ff93de175">operator()</a>(
<a name="l00658"></a>00658 <a class="code" href="structpointer__less.html#a16f25fe99c7f1bd75f09b8842cdc671a">first_argument_type</a> theLHS,
<a name="l00659"></a>00659 <a class="code" href="structpointer__less.html#a97dc8340c5b94ffd323b652bf0c3e475">second_argument_type</a> theRHS)<span class="keyword"> const</span>
<a name="l00660"></a>00660 <span class="keyword"> </span>{
<a name="l00661"></a>00661 assert(theLHS != 0 &amp;&amp; theRHS != 0);
<a name="l00662"></a>00662
<a name="l00663"></a>00663 <span class="preprocessor">#if !defined(XALAN_NO_STD_NAMESPACE)</span>
<a name="l00664"></a>00664 <span class="preprocessor"></span> <span class="keyword">using</span> std::less;
<a name="l00665"></a>00665 <span class="preprocessor">#endif</span>
<a name="l00666"></a>00666 <span class="preprocessor"></span>
<a name="l00667"></a>00667 <span class="keywordflow">return</span> less&lt;T&gt;()(*theLHS, *theRHS);
<a name="l00668"></a>00668 }
<a name="l00669"></a>00669 };
<a name="l00670"></a>00670
<a name="l00671"></a>00671
<a name="l00672"></a>00672
<a name="l00673"></a>00673 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00674"></a><a class="code" href="structpointer__equal.html">00674</a> <span class="keyword">struct </span><a class="code" href="structpointer__equal.html">pointer_equal</a> : <span class="keyword">public</span> XALAN_STD_QUALIFIER binary_function&lt;const T*, const T*, bool&gt;
<a name="l00675"></a>00675 {
<a name="l00676"></a><a class="code" href="structpointer__equal.html#acfe757e0614f79b7367948a6d962c264">00676</a> <span class="keyword">typedef</span> XALAN_STD_QUALIFIER binary_function&lt;const T*, const T*, bool&gt; BaseClassType;
<a name="l00677"></a>00677
<a name="l00678"></a><a class="code" href="structpointer__equal.html#a3f463fa5a854357c12b1414fa232e640">00678</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::result_type result_type;
<a name="l00679"></a><a class="code" href="structpointer__equal.html#a92ba6e6bef050733adfb993d8bd09c32">00679</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::first_argument_type first_argument_type;
<a name="l00680"></a><a class="code" href="structpointer__equal.html#aecf2afeb3f352afa7024a3ff5291b700">00680</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> BaseClassType::second_argument_type second_argument_type;
<a name="l00681"></a>00681
<a name="l00682"></a>00682 <a class="code" href="structpointer__equal.html#a3f463fa5a854357c12b1414fa232e640">result_type</a>
<a name="l00683"></a><a class="code" href="structpointer__equal.html#aa22cb8ae1990be0e1241ab30a90da6ae">00683</a> <a class="code" href="structpointer__equal.html#aa22cb8ae1990be0e1241ab30a90da6ae">operator()</a>(
<a name="l00684"></a>00684 <a class="code" href="structpointer__equal.html#a92ba6e6bef050733adfb993d8bd09c32">first_argument_type</a> theLHS,
<a name="l00685"></a>00685 <a class="code" href="structpointer__equal.html#aecf2afeb3f352afa7024a3ff5291b700">second_argument_type</a> theRHS)<span class="keyword"> const</span>
<a name="l00686"></a>00686 <span class="keyword"> </span>{
<a name="l00687"></a>00687 assert(theLHS != 0 &amp;&amp; theRHS != 0);
<a name="l00688"></a>00688 <span class="keywordflow">return</span> XALAN_STD_QUALIFIER equal_to&lt;T&gt;()(*theLHS, *theRHS);
<a name="l00689"></a>00689 }
<a name="l00690"></a>00690 };
<a name="l00691"></a>00691
<a name="l00692"></a>00692
<a name="l00693"></a>00693
<a name="l00694"></a>00694
<a name="l00695"></a>00695 XALAN_CPP_NAMESPACE_END
<a name="l00696"></a>00696
<a name="l00697"></a>00697
<a name="l00698"></a>00698
<a name="l00699"></a>00699 <span class="preprocessor">#endif // STLHELPERS_HEADER_GUARD_1357924680</span>
</pre></div></div>
</div>
<p align="center"><a href="graph_legend.html">Interpreting class diagrams</a></p>
<p><font color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><a href="http://www.doxygen.org/">Doxygen</a> and
<a href="http://www.graphviz.org/">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="80%">
<tr>
<td width="80%" valign="top">
<p align="center"><b>Xalan-C++ XSLT Processor Version 1.11</b><br/>
Copyright &copy; 1999-2012 The Apache Software Foundation.<br/>
All Rights Reserved.</p>
</td>
</tr>
<tr>
<td width="100%">
<p align="center"><img src="asf_logo_wide.gif" width="268" height="25" align="bottom" border="0" alt="Apache Logo">
</td>
</tr>
</table>
</body>
</html>