blob: 4674ace51f4f6a5d0cf6b241852f6633630bbcd8 [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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<h1>less_null_terminated_arrays&lt; T &gt; Struct Template Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="less_null_terminated_arrays" -->
<p>This functor is designed to compare 0-terminated arrays.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>&gt;</code></p>
<p><a href="structless__null__terminated__arrays-members.html">List of all members.</a></p>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>typedef std::binary_function<br class="typebreak"/>
&lt; const T *, const T *, bool &gt; <a class="el" href="structless__null__terminated__arrays.html#a1f84a295d170c3475d3a182f2508845f">BaseClassType</a>
<li>typedef BaseClassType::result_type <a class="el" href="structless__null__terminated__arrays.html#a17af428bf668a57bc8558e6038826776">result_type</a>
<li>typedef <br class="typebreak"/>
BaseClassType::first_argument_type <a class="el" href="structless__null__terminated__arrays.html#a2a0a426396466b7c00e7df9c6e484400">first_argument_type</a>
<li>typedef <br class="typebreak"/>
BaseClassType::second_argument_type <a class="el" href="structless__null__terminated__arrays.html#a1ff276566345cdaeed8e8b6aa839607b">second_argument_type</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="structless__null__terminated__arrays.html#a17af428bf668a57bc8558e6038826776">result_type</a> <a class="el" href="structless__null__terminated__arrays.html#a7acd074360fefe19eb653e06cea992f4">operator()</a> (<a class="el" href="structless__null__terminated__arrays.html#a2a0a426396466b7c00e7df9c6e484400">first_argument_type</a> theLHS, <a class="el" href="structless__null__terminated__arrays.html#a1ff276566345cdaeed8e8b6aa839607b">second_argument_type</a> theRHS) const
<dl class="el"><dd class="mdescRight">Compare the values of two objects. <a href="#a7acd074360fefe19eb653e06cea992f4"></a><br/></dl></ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class T&gt;<br/>
struct less_null_terminated_arrays&lt; T &gt;</h3>
<p>This functor is designed to compare 0-terminated arrays. </p>
<p>It substitutes for the default less&lt;type*&gt; so that pointers to arrays can be compared, rather than copies of arrays. For example, you might want to use C-style strings as keys in a map, rather than string objects. The default algorithm less&lt;const char*&gt; would just compare the pointers, and not the vector of characters to which it points. Using this algorithm instead of the default will allow the map to work as expected. </p>
<p>Definition at line <a class="el" href="STLHelper_8hpp_source.html#l00317">317</a> of file <a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a1f84a295d170c3475d3a182f2508845f"></a><!-- doxytag: member="less_null_terminated_arrays::BaseClassType" ref="a1f84a295d170c3475d3a182f2508845f" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef std::binary_function&lt;const T*, const T*, bool&gt; <a class="el" href="structless__null__terminated__arrays.html">less_null_terminated_arrays</a>&lt; T &gt;::<a class="el" href="structless__null__terminated__arrays.html#a1f84a295d170c3475d3a182f2508845f">BaseClassType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="STLHelper_8hpp_source.html#l00323">323</a> of file <a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a2a0a426396466b7c00e7df9c6e484400"></a><!-- doxytag: member="less_null_terminated_arrays::first_argument_type" ref="a2a0a426396466b7c00e7df9c6e484400" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef BaseClassType::first_argument_type <a class="el" href="structless__null__terminated__arrays.html">less_null_terminated_arrays</a>&lt; T &gt;::<a class="el" href="structless__null__terminated__arrays.html#a2a0a426396466b7c00e7df9c6e484400">first_argument_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="STLHelper_8hpp_source.html#l00327">327</a> of file <a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a17af428bf668a57bc8558e6038826776"></a><!-- doxytag: member="less_null_terminated_arrays::result_type" ref="a17af428bf668a57bc8558e6038826776" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef BaseClassType::result_type <a class="el" href="structless__null__terminated__arrays.html">less_null_terminated_arrays</a>&lt; T &gt;::<a class="el" href="structless__null__terminated__arrays.html#a17af428bf668a57bc8558e6038826776">result_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="STLHelper_8hpp_source.html#l00326">326</a> of file <a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>.</p>
</div>
</div>
<a class="anchor" id="a1ff276566345cdaeed8e8b6aa839607b"></a><!-- doxytag: member="less_null_terminated_arrays::second_argument_type" ref="a1ff276566345cdaeed8e8b6aa839607b" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="memname">
<tr>
<td class="memname">typedef BaseClassType::second_argument_type <a class="el" href="structless__null__terminated__arrays.html">less_null_terminated_arrays</a>&lt; T &gt;::<a class="el" href="structless__null__terminated__arrays.html#a1ff276566345cdaeed8e8b6aa839607b">second_argument_type</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="STLHelper_8hpp_source.html#l00328">328</a> of file <a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>.</p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7acd074360fefe19eb653e06cea992f4"></a><!-- doxytag: member="less_null_terminated_arrays::operator()" ref="a7acd074360fefe19eb653e06cea992f4" args="(first_argument_type theLHS, second_argument_type theRHS) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structless__null__terminated__arrays.html#a17af428bf668a57bc8558e6038826776">result_type</a> <a class="el" href="structless__null__terminated__arrays.html">less_null_terminated_arrays</a>&lt; T &gt;::operator() </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structless__null__terminated__arrays.html#a2a0a426396466b7c00e7df9c6e484400">first_argument_type</a>&nbsp;</td>
<td class="paramname"> <em>theLHS</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structless__null__terminated__arrays.html#a1ff276566345cdaeed8e8b6aa839607b">second_argument_type</a>&nbsp;</td>
<td class="paramname"> <em>theRHS</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare the values of two objects. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>theLHS</em>&nbsp;</td><td>first object to compare </td></tr>
<tr><td valign="top"></td><td valign="top"><em>theRHS</em>&nbsp;</td><td>second object to compare </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if objects are the same </dd></dl>
<p>Definition at line <a class="el" href="STLHelper_8hpp_source.html#l00339">339</a> of file <a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="STLHelper_8hpp_source.html">STLHelper.hpp</a></li>
</ul>
</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>