1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
4 | <title>Class template int_adapter</title> |
---|
5 | <link rel="stylesheet" href="boostbook.css" type="text/css"> |
---|
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.69.1"> |
---|
7 | <link rel="start" href="index.html" title="The Boost C++ Libraries"> |
---|
8 | <link rel="up" href="date_time/doxy.html#id2410223" title="Header <boost/date_time/int_adapter.hpp>"> |
---|
9 | <link rel="prev" href="gregorian_calendar_base.html" title="Class template gregorian_calendar_base"> |
---|
10 | <link rel="next" href="id2397684.html" title="Function template operator<<"> |
---|
11 | </head> |
---|
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
---|
13 | <table cellpadding="2" width="100%"> |
---|
14 | <td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td> |
---|
15 | <td align="center"><a href="../../index.htm">Home</a></td> |
---|
16 | <td align="center"><a href="../../libs/libraries.htm">Libraries</a></td> |
---|
17 | <td align="center"><a href="../../people/people.htm">People</a></td> |
---|
18 | <td align="center"><a href="../../more/faq.htm">FAQ</a></td> |
---|
19 | <td align="center"><a href="../../more/index.htm">More</a></td> |
---|
20 | </table> |
---|
21 | <hr> |
---|
22 | <div class="spirit-nav"> |
---|
23 | <a accesskey="p" href="gregorian_calendar_base.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2410223"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id2397684.html"><img src="images/next.png" alt="Next"></a> |
---|
24 | </div> |
---|
25 | <div class="refentry" lang="en"> |
---|
26 | <a name="int_adapter"></a><div class="titlepage"></div> |
---|
27 | <div class="refnamediv"> |
---|
28 | <h2><span class="refentrytitle">Class template int_adapter</span></h2> |
---|
29 | <p>boost::date_time::int_adapter — Adapter to create integer types with +-infinity, and not a value. </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="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> int_type_> |
---|
33 | <span class="bold"><strong>class</strong></span> int_adapter { |
---|
34 | <span class="bold"><strong>public</strong></span>: |
---|
35 | <span class="emphasis"><em>// types</em></span> |
---|
36 | <span class="bold"><strong>typedef</strong></span> int_type_ int_type; |
---|
37 | |
---|
38 | <span class="emphasis"><em>// <a href="int_adapter.html#int_adapterconstruct-copy-destruct">construct/copy/destruct</a></em></span> |
---|
39 | <a href="int_adapter.html#id2519909-bb">int_adapter</a>(int_type); |
---|
40 | |
---|
41 | <span class="emphasis"><em>// <a href="int_adapter.html#id2457288-bb">public member functions</a></em></span> |
---|
42 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2457293-bb">is_infinity</a>() <span class="bold"><strong>const</strong></span>; |
---|
43 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2404349-bb">is_pos_infinity</a>() <span class="bold"><strong>const</strong></span>; |
---|
44 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2404361-bb">is_neg_infinity</a>() <span class="bold"><strong>const</strong></span>; |
---|
45 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2423098-bb">is_nan</a>() <span class="bold"><strong>const</strong></span>; |
---|
46 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2423110-bb">is_special</a>() <span class="bold"><strong>const</strong></span>; |
---|
47 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2511194-bb"><span class="bold"><strong>operator</strong></span>==</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
48 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2429216-bb"><span class="bold"><strong>operator</strong></span>==</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> &) <span class="bold"><strong>const</strong></span>; |
---|
49 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2394347-bb"><span class="bold"><strong>operator</strong></span>!=</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
50 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2513015-bb"><span class="bold"><strong>operator</strong></span>!=</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> &) <span class="bold"><strong>const</strong></span>; |
---|
51 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2455292-bb"><span class="bold"><strong>operator</strong></span><</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
52 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2434443-bb"><span class="bold"><strong>operator</strong></span><</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> &) <span class="bold"><strong>const</strong></span>; |
---|
53 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2404382-bb"><span class="bold"><strong>operator</strong></span>></a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
54 | <span class="type">int_type</span> <a href="int_adapter.html#id2420528-bb">as_number</a>() <span class="bold"><strong>const</strong></span>; |
---|
55 | <span class="type">special_values</span> <a href="int_adapter.html#id2494022-bb">as_special</a>() <span class="bold"><strong>const</strong></span>; |
---|
56 | <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> rhs_type> |
---|
57 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2494039-bb"><span class="bold"><strong>operator</strong></span>+</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a>< rhs_type > &) <span class="bold"><strong>const</strong></span>; |
---|
58 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2401740-bb"><span class="bold"><strong>operator</strong></span>+</a>(<span class="bold"><strong>const</strong></span> int_type) <span class="bold"><strong>const</strong></span>; |
---|
59 | <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> rhs_type> |
---|
60 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2526406-bb"><span class="bold"><strong>operator</strong></span>-</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a>< rhs_type > &) <span class="bold"><strong>const</strong></span>; |
---|
61 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2502658-bb"><span class="bold"><strong>operator</strong></span>-</a>(<span class="bold"><strong>const</strong></span> int_type) <span class="bold"><strong>const</strong></span>; |
---|
62 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2528049-bb"><span class="bold"><strong>operator</strong></span> *</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
63 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2498655-bb"><span class="bold"><strong>operator</strong></span> *</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
64 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2428149-bb"><span class="bold"><strong>operator</strong></span>/</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
65 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2396807-bb"><span class="bold"><strong>operator</strong></span>/</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
66 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2496416-bb"><span class="bold"><strong>operator</strong></span>%</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
67 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2407883-bb"><span class="bold"><strong>operator</strong></span>%</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span>) <span class="bold"><strong>const</strong></span>; |
---|
68 | |
---|
69 | <span class="emphasis"><em>// <a href="int_adapter.html#id2412620-bb">public static functions</a></em></span> |
---|
70 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2412624-bb">has_infinity</a>() ; |
---|
71 | <span class="type"><span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2412637-bb">pos_infinity</a>() ; |
---|
72 | <span class="type"><span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2415841-bb">neg_infinity</a>() ; |
---|
73 | <span class="type"><span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2493322-bb">not_a_number</a>() ; |
---|
74 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> max</span> <a href="int_adapter.html#id2493337-bb">BOOST_PREVENT_MACRO_SUBSTITUTION</a>() ; |
---|
75 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> min</span> <a href="int_adapter.html#id2422764-bb">BOOST_PREVENT_MACRO_SUBSTITUTION</a>() ; |
---|
76 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2469798-bb">from_special</a>(special_values) ; |
---|
77 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2440052-bb">is_inf</a>(int_type) ; |
---|
78 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2507479-bb">is_neg_inf</a>(int_type) ; |
---|
79 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2527086-bb">is_pos_inf</a>(int_type) ; |
---|
80 | <span class="type"><span class="bold"><strong>bool</strong></span></span> <a href="int_adapter.html#id2464222-bb">is_not_a_number</a>(int_type) ; |
---|
81 | <span class="type">special_values</span> <a href="int_adapter.html#id2495949-bb">to_special</a>(int_type) ; |
---|
82 | <span class="type">int_type</span> <a href="int_adapter.html#id2526572-bb">maxcount</a>() ; |
---|
83 | |
---|
84 | <span class="emphasis"><em>// <a href="int_adapter.html#id2526585-bb">private member functions</a></em></span> |
---|
85 | <span class="type"><span class="bold"><strong>int</strong></span></span> <a href="int_adapter.html#id2526590-bb">compare</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
86 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2515021-bb">mult_div_specials</a>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> &) <span class="bold"><strong>const</strong></span>; |
---|
87 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a href="int_adapter.html#id2494174-bb">mult_div_specials</a>(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> &) <span class="bold"><strong>const</strong></span>; |
---|
88 | };</pre></div> |
---|
89 | <div class="refsect1" lang="en"> |
---|
90 | <a name="id2638019"></a><h2>Description</h2> |
---|
91 | <p>This class is used internally in counted date/time representations. It adds the floating point like features of infinities and not a number. It also provides mathmatical operations with consideration to special values following these rules: </p> |
---|
92 | <pre class="programlisting"> +infinity - infinity == Not A Number (NAN) |
---|
93 | infinity * non-zero == infinity |
---|
94 | infinity * zero == NAN |
---|
95 | +infinity * -integer == -infinity |
---|
96 | infinity / infinity == NAN |
---|
97 | infinity * infinity == infinity |
---|
98 | * |
---|
99 | </pre> |
---|
100 | <div class="refsect2" lang="en"> |
---|
101 | <a name="id2638037"></a><h3> |
---|
102 | <a name="int_adapterconstruct-copy-destruct"></a><code class="computeroutput">int_adapter</code> construct/copy/destruct</h3> |
---|
103 | <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><a name="id2519909-bb"></a>int_adapter(int_type v);</pre></li></ol></div> |
---|
104 | </div> |
---|
105 | <div class="refsect2" lang="en"> |
---|
106 | <a name="id2638072"></a><h3> |
---|
107 | <a name="id2457288-bb"></a><code class="computeroutput">int_adapter</code> public member functions</h3> |
---|
108 | <div class="orderedlist"><ol type="1"> |
---|
109 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2457293-bb"></a>is_infinity() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
110 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2404349-bb"></a>is_pos_infinity() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
111 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2404361-bb"></a>is_neg_infinity() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
112 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2423098-bb"></a>is_nan() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
113 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2423110-bb"></a>is_special() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
114 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2511194-bb"></a><span class="bold"><strong>operator</strong></span>==(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
115 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2429216-bb"></a><span class="bold"><strong>operator</strong></span>==(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
116 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2394347-bb"></a><span class="bold"><strong>operator</strong></span>!=(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
117 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2513015-bb"></a><span class="bold"><strong>operator</strong></span>!=(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
118 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2455292-bb"></a><span class="bold"><strong>operator</strong></span><(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
119 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2434443-bb"></a><span class="bold"><strong>operator</strong></span><(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
120 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2404382-bb"></a><span class="bold"><strong>operator</strong></span>>(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
121 | <li><pre class="literallayout"><span class="type">int_type</span> <a name="id2420528-bb"></a>as_number() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
122 | <li><pre class="literallayout"><span class="type">special_values</span> <a name="id2494022-bb"></a>as_special() <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
123 | <li> |
---|
124 | <pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> rhs_type> |
---|
125 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2494039-bb"></a><span class="bold"><strong>operator</strong></span>+(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a>< rhs_type > & rhs) <span class="bold"><strong>const</strong></span>;</pre> |
---|
126 | <p>Operator allows for adding dissimilar int_adapter types. The return type will match that of the the calling object's type </p> |
---|
127 | </li> |
---|
128 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2401740-bb"></a><span class="bold"><strong>operator</strong></span>+(<span class="bold"><strong>const</strong></span> int_type rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
129 | <li> |
---|
130 | <pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> rhs_type> |
---|
131 | <span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2526406-bb"></a><span class="bold"><strong>operator</strong></span>-(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a>< rhs_type > & rhs) <span class="bold"><strong>const</strong></span>;</pre> |
---|
132 | <p>Operator allows for subtracting dissimilar int_adapter types. The return type will match that of the the calling object's type </p> |
---|
133 | </li> |
---|
134 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2502658-bb"></a><span class="bold"><strong>operator</strong></span>-(<span class="bold"><strong>const</strong></span> int_type rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
135 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2528049-bb"></a><span class="bold"><strong>operator</strong></span> *(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
136 | <li> |
---|
137 | <pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2498655-bb"></a><span class="bold"><strong>operator</strong></span> *(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> rhs) <span class="bold"><strong>const</strong></span>;</pre> |
---|
138 | <p>Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results. </p> |
---|
139 | </li> |
---|
140 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2428149-bb"></a><span class="bold"><strong>operator</strong></span>/(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
141 | <li> |
---|
142 | <pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2396807-bb"></a><span class="bold"><strong>operator</strong></span>/(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> rhs) <span class="bold"><strong>const</strong></span>;</pre> |
---|
143 | <p>Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results. </p> |
---|
144 | </li> |
---|
145 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2496416-bb"></a><span class="bold"><strong>operator</strong></span>%(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
146 | <li> |
---|
147 | <pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2407883-bb"></a><span class="bold"><strong>operator</strong></span>%(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> rhs) <span class="bold"><strong>const</strong></span>;</pre> |
---|
148 | <p>Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results. </p> |
---|
149 | </li> |
---|
150 | </ol></div> |
---|
151 | </div> |
---|
152 | <div class="refsect2" lang="en"> |
---|
153 | <a name="id2639053"></a><h3> |
---|
154 | <a name="id2412620-bb"></a><code class="computeroutput">int_adapter</code> public static functions</h3> |
---|
155 | <div class="orderedlist"><ol type="1"> |
---|
156 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2412624-bb"></a>has_infinity() ;</pre></li> |
---|
157 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2412637-bb"></a>pos_infinity() ;</pre></li> |
---|
158 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2415841-bb"></a>neg_infinity() ;</pre></li> |
---|
159 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2493322-bb"></a>not_a_number() ;</pre></li> |
---|
160 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> max</span> <a name="id2493337-bb"></a>BOOST_PREVENT_MACRO_SUBSTITUTION() ;</pre></li> |
---|
161 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> min</span> <a name="id2422764-bb"></a>BOOST_PREVENT_MACRO_SUBSTITUTION() ;</pre></li> |
---|
162 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2469798-bb"></a>from_special(special_values sv) ;</pre></li> |
---|
163 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2440052-bb"></a>is_inf(int_type v) ;</pre></li> |
---|
164 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2507479-bb"></a>is_neg_inf(int_type v) ;</pre></li> |
---|
165 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2527086-bb"></a>is_pos_inf(int_type v) ;</pre></li> |
---|
166 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>bool</strong></span></span> <a name="id2464222-bb"></a>is_not_a_number(int_type v) ;</pre></li> |
---|
167 | <li><pre class="literallayout"><span class="type">special_values</span> <a name="id2495949-bb"></a>to_special(int_type v) ;</pre></li> |
---|
168 | <li><pre class="literallayout"><span class="type">int_type</span> <a name="id2526572-bb"></a>maxcount() ;</pre></li> |
---|
169 | </ol></div> |
---|
170 | </div> |
---|
171 | <div class="refsect2" lang="en"> |
---|
172 | <a name="id2639365"></a><h3> |
---|
173 | <a name="id2526585-bb"></a><code class="computeroutput">int_adapter</code> private member functions</h3> |
---|
174 | <div class="orderedlist"><ol type="1"> |
---|
175 | <li><pre class="literallayout"><span class="type"><span class="bold"><strong>int</strong></span></span> <a name="id2526590-bb"></a>compare(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
176 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2515021-bb"></a>mult_div_specials(<span class="bold"><strong>const</strong></span> <a href="int_adapter.html" title="Class template int_adapter">int_adapter</a> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
177 | <li><pre class="literallayout"><span class="type"><a href="int_adapter.html" title="Class template int_adapter">int_adapter</a></span> <a name="id2494174-bb"></a>mult_div_specials(<span class="bold"><strong>const</strong></span> <span class="bold"><strong>int</strong></span> & rhs) <span class="bold"><strong>const</strong></span>;</pre></li> |
---|
178 | </ol></div> |
---|
179 | </div> |
---|
180 | </div> |
---|
181 | </div> |
---|
182 | <table width="100%"><tr> |
---|
183 | <td align="left"></td> |
---|
184 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
185 | </tr></table> |
---|
186 | <hr> |
---|
187 | <div class="spirit-nav"> |
---|
188 | <a accesskey="p" href="gregorian_calendar_base.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2410223"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id2397684.html"><img src="images/next.png" alt="Next"></a> |
---|
189 | </div> |
---|
190 | </body> |
---|
191 | </html> |
---|