1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Xapian: API Documentation: Xapian::ValueRangeProcessor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">xapian-core
 <span id="projectnumber">1.4.18</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a class="el" href="classXapian_1_1ValueRangeProcessor.html">ValueRangeProcessor</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classXapian_1_1ValueRangeProcessor-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Xapian::ValueRangeProcessor Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Base class for value range processors.
<a href="classXapian_1_1ValueRangeProcessor.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Xapian::ValueRangeProcessor:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classXapian_1_1ValueRangeProcessor__inherit__graph.png" border="0" usemap="#aXapian_1_1ValueRangeProcessor_inherit__map" alt="Inheritance graph"/></div>
<map name="aXapian_1_1ValueRangeProcessor_inherit__map" id="aXapian_1_1ValueRangeProcessor_inherit__map">
<area shape="rect" title="Base class for value range processors." alt="" coords="146,95,362,121"/>
<area shape="rect" href="classXapian_1_1StringValueRangeProcessor.html" title="Handle a string range." alt="" coords="159,169,349,211"/>
<area shape="rect" title=" " alt="" coords="177,5,331,47"/>
<area shape="rect" href="classXapian_1_1DateValueRangeProcessor.html" title="Handle a date range." alt="" coords="5,266,252,293"/>
<area shape="rect" href="classXapian_1_1NumberValueRangeProcessor.html" title="Handle a number range." alt="" coords="277,259,482,300"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a49c2fa240e0d3651efce6dce881f09d7"><td class="memItemLeft" align="right" valign="top"><a id="a49c2fa240e0d3651efce6dce881f09d7"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValueRangeProcessor.html#a49c2fa240e0d3651efce6dce881f09d7">ValueRangeProcessor</a> ()</td></tr>
<tr class="memdesc:a49c2fa240e0d3651efce6dce881f09d7"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a49c2fa240e0d3651efce6dce881f09d7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab32baad9238adb002b47f99ec362e56e"><td class="memItemLeft" align="right" valign="top"><a id="ab32baad9238adb002b47f99ec362e56e"></a>
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValueRangeProcessor.html#ab32baad9238adb002b47f99ec362e56e">~ValueRangeProcessor</a> ()</td></tr>
<tr class="memdesc:ab32baad9238adb002b47f99ec362e56e"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ab32baad9238adb002b47f99ec362e56e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa04e11c41e40ceed5f796c94348d2ad2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValueRangeProcessor.html#aa04e11c41e40ceed5f796c94348d2ad2">operator()</a> (std::string &begin, std::string &end)=0</td></tr>
<tr class="memdesc:aa04e11c41e40ceed5f796c94348d2ad2"><td class="mdescLeft"> </td><td class="mdescRight">Check for a valid range of this type. <a href="classXapian_1_1ValueRangeProcessor.html#aa04e11c41e40ceed5f796c94348d2ad2">More...</a><br /></td></tr>
<tr class="separator:aa04e11c41e40ceed5f796c94348d2ad2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa53c7c9c9308ecd9a3cc422a2e726ada"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1ValueRangeProcessor.html">ValueRangeProcessor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValueRangeProcessor.html#aa53c7c9c9308ecd9a3cc422a2e726ada">release</a> ()</td></tr>
<tr class="memdesc:aa53c7c9c9308ecd9a3cc422a2e726ada"><td class="mdescLeft"> </td><td class="mdescRight">Start reference counting this object. <a href="classXapian_1_1ValueRangeProcessor.html#aa53c7c9c9308ecd9a3cc422a2e726ada">More...</a><br /></td></tr>
<tr class="separator:aa53c7c9c9308ecd9a3cc422a2e726ada"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3af6afed59542f771793971205d1f957"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classXapian_1_1ValueRangeProcessor.html">ValueRangeProcessor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1ValueRangeProcessor.html#a3af6afed59542f771793971205d1f957">release</a> () const</td></tr>
<tr class="memdesc:a3af6afed59542f771793971205d1f957"><td class="mdescLeft"> </td><td class="mdescRight">Start reference counting this object. <a href="classXapian_1_1ValueRangeProcessor.html#a3af6afed59542f771793971205d1f957">More...</a><br /></td></tr>
<tr class="separator:a3af6afed59542f771793971205d1f957"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Base class for value range processors. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa04e11c41e40ceed5f796c94348d2ad2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa04e11c41e40ceed5f796c94348d2ad2">◆ </a></span>operator()()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="namespaceXapian.html#a94a899651fa920c72ffa9635bde630ea">Xapian::valueno</a> Xapian::ValueRangeProcessor::operator() </td>
<td>(</td>
<td class="paramtype">std::string & </td>
<td class="paramname"><em>begin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::string & </td>
<td class="paramname"><em>end</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Check for a valid range of this type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in,out]</td><td class="paramname">begin</td><td>The start of the range as specified in the query string by the user. This parameter is a non-const reference so the <a class="el" href="classXapian_1_1ValueRangeProcessor.html" title="Base class for value range processors.">ValueRangeProcessor</a> can modify it to return the value to start the range with. </td></tr>
<tr><td class="paramdir">[in,out]</td><td class="paramname">end</td><td>The end of the range. This is also a non-const reference so it can be modified.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>If this <a class="el" href="classXapian_1_1ValueRangeProcessor.html" title="Base class for value range processors.">ValueRangeProcessor</a> recognises the range BEGIN..END it returns the value slot number to range filter on. Otherwise it returns <a class="el" href="namespaceXapian.html#a0a75ef120e641c77f703e60f595ffda2" title="Reserved value to indicate "no valueno".">Xapian::BAD_VALUENO</a>. </dd></dl>
<p>Implemented in <a class="el" href="classXapian_1_1NumberValueRangeProcessor.html#a4a0951e57a4ea8fcdcd9bec6a8037514">Xapian::NumberValueRangeProcessor</a>, <a class="el" href="classXapian_1_1DateValueRangeProcessor.html#a29c079d9156a872f38fca82195525a92">Xapian::DateValueRangeProcessor</a>, and <a class="el" href="classXapian_1_1StringValueRangeProcessor.html#aac2cd6bf4645a3bb242cf5ad5022ae5e">Xapian::StringValueRangeProcessor</a>.</p>
</div>
</div>
<a id="aa53c7c9c9308ecd9a3cc422a2e726ada"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa53c7c9c9308ecd9a3cc422a2e726ada">◆ </a></span>release() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXapian_1_1ValueRangeProcessor.html">ValueRangeProcessor</a>* Xapian::ValueRangeProcessor::release </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Start reference counting this object. </p>
<p>You can hand ownership of a dynamically allocated <a class="el" href="classXapian_1_1ValueRangeProcessor.html" title="Base class for value range processors.">ValueRangeProcessor</a> object to <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> by calling <a class="el" href="classXapian_1_1ValueRangeProcessor.html#aa53c7c9c9308ecd9a3cc422a2e726ada" title="Start reference counting this object.">release()</a> and then passing the object to a <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> method. <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> will arrange to delete the object once it is no longer required. </p>
</div>
</div>
<a id="a3af6afed59542f771793971205d1f957"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3af6afed59542f771793971205d1f957">◆ </a></span>release() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classXapian_1_1ValueRangeProcessor.html">ValueRangeProcessor</a>* Xapian::ValueRangeProcessor::release </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Start reference counting this object. </p>
<p>You can hand ownership of a dynamically allocated <a class="el" href="classXapian_1_1ValueRangeProcessor.html" title="Base class for value range processors.">ValueRangeProcessor</a> object to <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> by calling <a class="el" href="classXapian_1_1ValueRangeProcessor.html#aa53c7c9c9308ecd9a3cc422a2e726ada" title="Start reference counting this object.">release()</a> and then passing the object to a <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> method. <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library.">Xapian</a> will arrange to delete the object once it is no longer required. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>xapian/<a class="el" href="queryparser_8h.html">queryparser.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/">Doxygen 1.9.1</a>
</small></address>
</body>
</html>
|