<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Kyoto Cabinet: kyotocabinet::Comparator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Kyoto Cabinet
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</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 id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacekyotocabinet.html">kyotocabinet</a> </li>
<li class="navelem"><a class="el" href="classkyotocabinet_1_1Comparator.html">Comparator</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">kyotocabinet::Comparator Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="kyotocabinet::Comparator" -->
<p>Interfrace of comparator of record keys.
<a href="classkyotocabinet_1_1Comparator.html#details">More...</a></p>
<p><code>#include <kccompare.h></code></p>
<p><a href="classkyotocabinet_1_1Comparator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Comparator.html#af42c70435d966cb6bf4218743e3363f3">~Comparator</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#af42c70435d966cb6bf4218743e3363f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Comparator.html#ac144cf6a46232fb09b9f712630e879e6">compare</a> (const char *akbuf, size_t aksiz, const char *bkbuf, size_t bksiz)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two keys. <a href="#ac144cf6a46232fb09b9f712630e879e6"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Interfrace of comparator of record keys. </p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="af42c70435d966cb6bf4218743e3363f3"></a><!-- doxytag: member="kyotocabinet::Comparator::~Comparator" ref="af42c70435d966cb6bf4218743e3363f3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classkyotocabinet_1_1Comparator.html#af42c70435d966cb6bf4218743e3363f3">kyotocabinet::Comparator::~Comparator</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac144cf6a46232fb09b9f712630e879e6"></a><!-- doxytag: member="kyotocabinet::Comparator::compare" ref="ac144cf6a46232fb09b9f712630e879e6" args="(const char *akbuf, size_t aksiz, const char *bkbuf, size_t bksiz)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int32_t <a class="el" href="classkyotocabinet_1_1Comparator.html#ac144cf6a46232fb09b9f712630e879e6">kyotocabinet::Comparator::compare</a> </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>akbuf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>aksiz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>bkbuf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>bksiz</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Compare two keys. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">akbuf</td><td>the pointer to the region of one key. </td></tr>
<tr><td class="paramname">aksiz</td><td>the size of the region of one key. </td></tr>
<tr><td class="paramname">bkbuf</td><td>the pointer to the region of the other key. </td></tr>
<tr><td class="paramname">bksiz</td><td>the size of the region of the other key. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>positive if the former is big, negative if the latter is big, 0 if both are equivalent. </dd></dl>
<p>Implemented in <a class="el" href="classkyotocabinet_1_1DecimalDescendingComparator.html#a903546d67cdbad5524f92e3a5e749a18">kyotocabinet::DecimalDescendingComparator</a>, <a class="el" href="classkyotocabinet_1_1DecimalComparator.html#ac58aa9d256898c6be1fc83ac5df89828">kyotocabinet::DecimalComparator</a>, <a class="el" href="classkyotocabinet_1_1LexicalDescendingComparator.html#aa973a6ffe88344abdd4579bd4a47a2f4">kyotocabinet::LexicalDescendingComparator</a>, and <a class="el" href="classkyotocabinet_1_1LexicalComparator.html#ac854055cbeef97514005d20b26ead080">kyotocabinet::LexicalComparator</a>.</p>
</div>
</div>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri May 25 2012 01:21:36 for Kyoto Cabinet by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>