Debian Codegraph @

docs/api_reference/CXX/logcompare.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DbEnv::log_compare()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" />
10 <link rel="up" href="lsn.html" title="Chapter 8.  The DbLsn Handle" />
11 <link rel="prev" href="logcget.html" title="DbLogc::get()" />
12 <link rel="next" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbEnv::log_compare()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="logcget.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 8. 
26 The DbLsn Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="memp.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="logcompare"></a>DbEnv::log_compare()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 static int
44 DbEnv::log_compare(const DbLsn *lsn0, const DbLsn *lsn1); </pre>
45 <p>
46 The
47
48 <code class="methodname">DbEnv::log_compare()</code>
49 method allows the caller to compare two <code class="classname">DbLsn</code>
50 structures, returning 0 if they are equal, 1 if <span class="bold"><strong>lsn0</strong></span> is greater than <span class="bold"><strong>lsn1</strong></span>, and -1 if <span class="bold"><strong>lsn0</strong></span> is less than <span class="bold"><strong>lsn1</strong></span>.
51 </p>
52 <div class="sect2" lang="en" xml:lang="en">
53 <div class="titlepage">
54 <div>
55 <div>
56 <h3 class="title"><a id="idp8548480"></a>Parameters</h3>
57 </div>
58 </div>
59 </div>
60 <div class="sect3" lang="en" xml:lang="en">
61 <div class="titlepage">
62 <div>
63 <div>
64 <h4 class="title"><a id="idp8552544"></a>lsn0</h4>
65 </div>
66 </div>
67 </div>
68 <p>
69 The <span class="bold"><strong>lsn0</strong></span> parameter is one of the
70 <code class="classname">DbLsn</code> structures to be compared.
71 </p>
72 </div>
73 <div class="sect3" lang="en" xml:lang="en">
74 <div class="titlepage">
75 <div>
76 <div>
77 <h4 class="title"><a id="idp8565432"></a>lsn1</h4>
78 </div>
79 </div>
80 </div>
81 <p>
82 The <span class="bold"><strong>lsn1</strong></span> parameter is one of the
83 <code class="classname">DbLsn</code> structures to be compared.
84
85 </p>
86 </div>
87 </div>
88 <div class="sect2" lang="en" xml:lang="en">
89 <div class="titlepage">
90 <div>
91 <div>
92 <h3 class="title"><a id="idp8563304"></a>Class</h3>
93 </div>
94 </div>
95 </div>
96 <p>
97 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>,
98 <a class="link" href="logc.html" title="The DbLogc Handle">DbLogc</a>,
99 <a class="link" href="lsn.html" title="Chapter 8.  The DbLsn Handle">DbLsn</a>
100 </p>
101 </div>
102 <div class="sect2" lang="en" xml:lang="en">
103 <div class="titlepage">
104 <div>
105 <div>
106 <h3 class="title"><a id="idp8545704"></a>See Also</h3>
107 </div>
108 </div>
109 </div>
110 <p>
111 <a class="xref" href="lsn.html#loglist" title="Logging Subsystem and Related Methods">Logging Subsystem and Related Methods</a>
112 </p>
113 </div>
114 </div>
115 <div class="navfooter">
116 <hr />
117 <table width="100%" summary="Navigation footer">
118 <tr>
119 <td width="40%" align="left"><a accesskey="p" href="logcget.html">Prev</a> </td>
120 <td width="20%" align="center">
121 <a accesskey="u" href="lsn.html">Up</a>
122 </td>
123 <td width="40%" align="right"> <a accesskey="n" href="memp.html">Next</a></td>
124 </tr>
125 <tr>
126 <td width="40%" align="left" valign="top">DbLogc::get() </td>
127 <td width="20%" align="center">
128 <a accesskey="h" href="index.html">Home</a>
129 </td>
130 <td width="40%" align="right" valign="top"> Chapter 9. 
131 The DbMpoolFile Handle
132 </td>
133 </tr>
134 </table>
135 </div>
136 </body>
137 </html>