• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Class template right_open_interval</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Chapter 1. Boost.Icl">
8<link rel="up" href="../../header/boost/icl/right_open_interval_hpp.html" title="Header &lt;boost/icl/right_open_interval.hpp&gt;">
9<link rel="prev" href="interval_idm46087605908736.html" title="Struct template interval_traits&lt;icl::right_open_interval&lt; DomainT, Compare &gt;&gt;">
10<link rel="next" href="type_to__idm46087605876800.html" title="Struct template type_to_string&lt;icl::right_open_interval&lt; DomainT, Compare &gt;&gt;">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="interval_idm46087605908736.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/icl/right_open_interval_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="type_to__idm46087605876800.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
26<a name="boost.icl.right_open_interval"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Class template right_open_interval</span></h2>
29<p>boost::icl::right_open_interval</p>
30</div>
31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/icl/right_open_interval_hpp.html" title="Header &lt;boost/icl/right_open_interval.hpp&gt;">boost/icl/right_open_interval.hpp</a>&gt;
33
34</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> DomainT<span class="special">,</span>
35         <span class="identifier">ICL_COMPARE</span> Compare <span class="special">=</span> <span class="identifier">ICL_COMPARE_INSTANCE</span><span class="special">(</span><span class="identifier">ICL_COMPARE_DEFAULT</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">&gt;</span>
36<span class="keyword">class</span> <a class="link" href="right_open_interval.html" title="Class template right_open_interval">right_open_interval</a> <span class="special">{</span>
37<span class="keyword">public</span><span class="special">:</span>
38  <span class="comment">// types</span>
39  <span class="keyword">typedef</span> <a class="link" href="right_open_interval.html" title="Class template right_open_interval">right_open_interval</a><span class="special">&lt;</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">Compare</span> <span class="special">&gt;</span> <a name="boost.icl.right_open_interval.type"></a><span class="identifier">type</span><span class="special">;</span>
40  <span class="keyword">typedef</span> <span class="identifier">DomainT</span>                                 <a name="boost.icl.right_open_interval.domain_type"></a><span class="identifier">domain_type</span><span class="special">;</span>
41
42  <span class="comment">// <a class="link" href="right_open_interval.html#boost.icl.right_open_intervalconstruct-copy-destruct">construct/copy/destruct</a></span>
43  <a class="link" href="right_open_interval.html#idm46087605883536-bb"><span class="identifier">right_open_interval</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
44  <span class="keyword">explicit</span> <a class="link" href="right_open_interval.html#idm46087605882352-bb"><span class="identifier">right_open_interval</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">DomainT</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
45  <a class="link" href="right_open_interval.html#idm46087605880224-bb"><span class="identifier">right_open_interval</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">DomainT</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">DomainT</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
46
47  <span class="comment">// <a class="link" href="right_open_interval.html#idm46087605888720-bb">public member functions</a></span>
48  <span class="keyword">typedef</span> <a class="link" href="right_open_interval.html#idm46087605888160-bb"><span class="identifier">ICL_COMPARE_DOMAIN</span></a><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span>
49  <span class="identifier">domain_type</span> <a class="link" href="right_open_interval.html#idm46087605885936-bb"><span class="identifier">lower</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
50  <span class="identifier">domain_type</span> <a class="link" href="right_open_interval.html#idm46087605884816-bb"><span class="identifier">upper</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
51<span class="special">}</span><span class="special">;</span></pre></div>
52<div class="refsect1">
53<a name="idm45714028172928"></a><h2>Description</h2>
54<div class="refsect2">
55<a name="idm45714028172512"></a><h3>
56<a name="boost.icl.right_open_intervalconstruct-copy-destruct"></a><code class="computeroutput">right_open_interval</code>
57        public
58       construct/copy/destruct</h3>
59<div class="orderedlist"><ol class="orderedlist" type="1">
60<li class="listitem">
61<pre class="literallayout"><a name="idm46087605883536-bb"></a><span class="identifier">right_open_interval</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
62<p>Default constructor; yields an empty interval <code class="computeroutput">[0,0)</code>. </p>
63</li>
64<li class="listitem">
65<pre class="literallayout"><span class="keyword">explicit</span> <a name="idm46087605882352-bb"></a><span class="identifier">right_open_interval</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">DomainT</span> <span class="special">&amp;</span> val<span class="special">)</span><span class="special">;</span></pre>
66<p>Constructor for a singleton interval <code class="computeroutput">[val,val+1)</code> </p>
67</li>
68<li class="listitem">
69<pre class="literallayout"><a name="idm46087605880224-bb"></a><span class="identifier">right_open_interval</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">DomainT</span> <span class="special">&amp;</span> low<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">DomainT</span> <span class="special">&amp;</span> up<span class="special">)</span><span class="special">;</span></pre>
70<p>Interval from <code class="computeroutput">low</code> to <code class="computeroutput">up</code> with bounds <code class="computeroutput">bounds</code> </p>
71</li>
72</ol></div>
73</div>
74<div class="refsect2">
75<a name="idm45714028147488"></a><h3>
76<a name="idm46087605888720-bb"></a><code class="computeroutput">right_open_interval</code> public member functions</h3>
77<div class="orderedlist"><ol class="orderedlist" type="1">
78<li class="listitem"><pre class="literallayout"><span class="keyword">typedef</span> <a name="idm46087605888160-bb"></a><span class="identifier">ICL_COMPARE_DOMAIN</span><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span></pre></li>
79<li class="listitem"><pre class="literallayout"><span class="identifier">domain_type</span> <a name="idm46087605885936-bb"></a><span class="identifier">lower</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
80<li class="listitem"><pre class="literallayout"><span class="identifier">domain_type</span> <a name="idm46087605884816-bb"></a><span class="identifier">upper</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
81</ol></div>
82</div>
83</div>
84</div>
85<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
86<td align="left"></td>
87<td align="right"><div class="copyright-footer">Copyright © 2007-2010 Joachim
88      Faulhaber<br>Copyright © 1999-2006 Cortex Software
89      GmbH<p>
90        Distributed under the Boost Software License, Version 1.0. (See accompanying
91        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
92      </p>
93</div></td>
94</tr></table>
95<hr>
96<div class="spirit-nav">
97<a accesskey="p" href="interval_idm46087605908736.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/icl/right_open_interval_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="type_to__idm46087605876800.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
98</div>
99</body>
100</html>
101