Debian Codegraph @

docs/api_reference/CXX/seqset_range.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>DbSequence::set_range()</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="seq.html" title="Chapter 12.  The DbSequence Handle" />
11 <link rel="prev" href="seqset_flags.html" title="DbSequence::set_flags()" />
12 <link rel="next" href="seqstat.html" title="DbSequence::stat()" />
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">DbSequence::set_range()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqset_flags.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 The DbSequence Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="seqstat.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="seqset_range"></a>DbSequence::set_range()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbSequence::set_range(db_seq_t min, db_seq_t max); </pre>
45 <p>
46 Configure a sequence range. This call is only effective when the
47 sequence is being created. The range is limited to a signed 64 bit
48 integer.
49 </p>
50 <p>
51 The <code class="methodname">DbSequence::set_range()</code> method may not be called after the
52 <a class="xref" href="seqopen.html" title="DbSequence::open()">DbSequence::open()</a> method is called.
53 </p>
54 <p>
55 The <code class="methodname">DbSequence::set_range()</code> <span>
56
57 <span>
58 method either returns a non-zero error value or throws an
59 exception that encapsulates a non-zero error value on
60 failure, and returns 0 on success.
61 </span>
62 </span>
63 </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h3 class="title"><a id="idp10183568"></a>Parameters</h3>
69 </div>
70 </div>
71 </div>
72 <div class="sect3" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h4 class="title"><a id="idp10190936"></a>min</h4>
77 </div>
78 </div>
79 </div>
80 <p>
81 Specifies the minimum value for the sequence.
82 </p>
83 </div>
84 <div class="sect3" lang="en" xml:lang="en">
85 <div class="titlepage">
86 <div>
87 <div>
88 <h4 class="title"><a id="idp10174576"></a>max</h4>
89 </div>
90 </div>
91 </div>
92 <p>
93 Specifies the maximum value for the sequence.
94 </p>
95 </div>
96 </div>
97 <div class="sect2" lang="en" xml:lang="en">
98 <div class="titlepage">
99 <div>
100 <div>
101 <h3 class="title"><a id="idp10181568"></a>Errors</h3>
102 </div>
103 </div>
104 </div>
105 <p>
106 The <code class="methodname">DbSequence::set_range()</code> <span>
107
108 <span>
109 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
110 exception, encapsulating one of the following non-zero errors, or return one
111 of the following non-zero errors:
112 </span>
113 </span>
114 </p>
115 <div class="sect3" lang="en" xml:lang="en">
116 <div class="titlepage">
117 <div>
118 <div>
119 <h4 class="title"><a id="idp10182632"></a>EINVAL</h4>
120 </div>
121 </div>
122 </div>
123 <p>
124 An invalid flag value or parameter was specified.
125 </p>
126 </div>
127 </div>
128 <div class="sect2" lang="en" xml:lang="en">
129 <div class="titlepage">
130 <div>
131 <div>
132 <h3 class="title"><a id="idp10190056"></a>Class</h3>
133 </div>
134 </div>
135 </div>
136 <p>
137 <a class="link" href="seq.html" title="Chapter 12.  The DbSequence Handle">DbSequence</a>
138 </p>
139 </div>
140 <div class="sect2" lang="en" xml:lang="en">
141 <div class="titlepage">
142 <div>
143 <div>
144 <h3 class="title"><a id="idp10180200"></a>See Also</h3>
145 </div>
146 </div>
147 </div>
148 <p>
149 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
150 </p>
151 </div>
152 </div>
153 <div class="navfooter">
154 <hr />
155 <table width="100%" summary="Navigation footer">
156 <tr>
157 <td width="40%" align="left"><a accesskey="p" href="seqset_flags.html">Prev</a> </td>
158 <td width="20%" align="center">
159 <a accesskey="u" href="seq.html">Up</a>
160 </td>
161 <td width="40%" align="right"> <a accesskey="n" href="seqstat.html">Next</a></td>
162 </tr>
163 <tr>
164 <td width="40%" align="left" valign="top">DbSequence::set_flags() </td>
165 <td width="20%" align="center">
166 <a accesskey="h" href="index.html">Home</a>
167 </td>
168 <td width="40%" align="right" valign="top"> DbSequence::stat()</td>
169 </tr>
170 </table>
171 </div>
172 </body>
173 </html>