1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
3
5
<title>Ipelib: ipe::Fixed Class Reference</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.8 -->
8
<div class="navigation" id="top">
11
<li><a href="index.html"><span>Main Page</span></a></li>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.7.3 -->
13
<table cellspacing="0" cellpadding="0">
15
<tr style="height: 56px;">
16
<td style="padding-left: 0.5em;">
17
<div id="projectname">Ipelib</div>
23
<div id="navrow1" class="tabs">
25
<li><a href="index.html"><span>Main Page</span></a></li>
12
26
<li><a href="modules.html"><span>Modules</span></a></li>
13
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
14
27
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
30
<div id="navrow2" class="tabs2">
32
<li><a href="annotated.html"><span>Class List</span></a></li>
33
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
34
<li><a href="functions.html"><span>Class Members</span></a></li>
37
<div id="nav-path" class="navpath">
19
<li><a href="annotated.html"><span>Class List</span></a></li>
20
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
21
<li><a href="functions.html"><span>Class Members</span></a></li>
24
<div class="navpath"><a class="el" href="namespaceipe.html">ipe</a>::<a class="el" href="classipe_1_1_fixed.html">Fixed</a>
39
<li class="navelem"><b>ipe</b> </li>
40
<li class="navelem"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> </li>
44
<a href="#pub-methods">Public Member Functions</a> |
45
<a href="#pub-static-methods">Static Public Member Functions</a> |
46
<a href="#friends">Friends</a> </div>
47
<div class="headertitle">
48
<h1>ipe::Fixed Class Reference<div class="ingroups"><a class="el" href="group__base.html">Ipe Base</a></div></h1> </div>
27
50
<div class="contents">
28
<h1>ipe::Fixed Class Reference<br>
30
[<a class="el" href="group__base.html">Ipe Base</a>]</small>
31
</h1><!-- doxytag: class="ipe::Fixed" --><a class="el" href="classipe_1_1_fixed.html" title="Fixed point number with three (decimal) fractional digits.">Fixed</a> point number with three (decimal) fractional digits.
32
<a href="#_details">More...</a>
34
<code>#include <ipebase.h></code>
38
<a href="classipe_1_1_fixed-members.html">List of all members.</a><h2>Public Member Functions</h2>
40
<li><a class="el" href="classipe_1_1_fixed.html#5123d14ccc439d2837444166d2c4ba5f">Fixed</a> (int val)
41
<li><a class="el" href="classipe_1_1_fixed.html#be002f9f814e28554bbae46141b52262">Fixed</a> ()
42
<li>int <a class="el" href="classipe_1_1_fixed.html#333e5ba3145c7f18ebcbeb2c1486f7e5">toInt</a> () const
43
<li>double <a class="el" href="classipe_1_1_fixed.html#c454db654175aefec465834df70f998d">toDouble</a> () const
44
<li>int <a class="el" href="classipe_1_1_fixed.html#e73e0119e7768102009a5834e8da6fa9">internal</a> () const
45
<li><a class="el" href="classipe_1_1_fixed.html">Fixed</a> <a class="el" href="classipe_1_1_fixed.html#b5697e33f371d1a802e91c2ba28d4b8a">mult</a> (int a, int b) const
46
<li>bool <a class="el" href="classipe_1_1_fixed.html#55c9fdb6242e95e1d267509acea92bef">operator==</a> (const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &rhs) const
47
<li>bool <a class="el" href="classipe_1_1_fixed.html#2c7c6d555fa54837096d9099faccf768">operator!=</a> (const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &rhs) const
48
<li>bool <a class="el" href="classipe_1_1_fixed.html#418092e485e70105e086528ba6fc1461">operator<</a> (const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &rhs) const
50
<h2>Static Public Member Functions</h2>
52
<li>static <a class="el" href="classipe_1_1_fixed.html">Fixed</a> <a class="el" href="classipe_1_1_fixed.html#b416a2f811f13a18a1452420f6e330e1">fromInternal</a> (int val)
53
<li>static <a class="el" href="classipe_1_1_fixed.html">Fixed</a> <a class="el" href="classipe_1_1_fixed.html#d8fa203131bf4905c50409d571816b25">fromDouble</a> (double val)
57
<li><a class="el" href="classipe_1_1_stream.html">Stream</a> & <a class="el" href="classipe_1_1_fixed.html#1332d5cd41cee12566d676afb8f6fecf">operator<<</a> (<a class="el" href="classipe_1_1_stream.html">Stream</a> &stream, const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &f)
59
<hr><a name="_details"></a><h2>Detailed Description</h2>
60
<a class="el" href="classipe_1_1_fixed.html" title="Fixed point number with three (decimal) fractional digits.">Fixed</a> point number with three (decimal) fractional digits. <hr><h2>Constructor & Destructor Documentation</h2>
61
<a class="anchor" name="5123d14ccc439d2837444166d2c4ba5f"></a><!-- doxytag: member="ipe::Fixed::Fixed" ref="5123d14ccc439d2837444166d2c4ba5f" args="(int val)" -->
63
<div class="memproto">
64
<table class="memname">
66
<td class="memname">ipe::Fixed::Fixed </td>
68
<td class="paramtype">int </td>
69
<td class="paramname"> <em>val</em> </td>
70
<td> ) </td>
71
<td><code> [inline, explicit]</code></td>
81
<a class="anchor" name="be002f9f814e28554bbae46141b52262"></a><!-- doxytag: member="ipe::Fixed::Fixed" ref="be002f9f814e28554bbae46141b52262" args="()" -->
83
<div class="memproto">
84
<table class="memname">
86
<td class="memname">ipe::Fixed::Fixed </td>
88
<td class="paramname"> </td>
89
<td> ) </td>
90
<td><code> [inline, explicit]</code></td>
100
<hr><h2>Member Function Documentation</h2>
101
<a class="anchor" name="b416a2f811f13a18a1452420f6e330e1"></a><!-- doxytag: member="ipe::Fixed::fromInternal" ref="b416a2f811f13a18a1452420f6e330e1" args="(int val)" -->
102
<div class="memitem">
103
<div class="memproto">
104
<table class="memname">
106
<td class="memname"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> ipe::Fixed::fromInternal </td>
108
<td class="paramtype">int </td>
109
<td class="paramname"> <em>val</em> </td>
110
<td> ) </td>
51
<!-- doxytag: class="ipe::Fixed" -->
52
<p><a class="el" href="classipe_1_1_fixed.html" title="Fixed point number with three (decimal) fractional digits.">Fixed</a> point number with three (decimal) fractional digits.
53
<a href="#_details">More...</a></p>
55
<p><code>#include <ipebase.h></code></p>
57
<p><a href="classipe_1_1_fixed-members.html">List of all members.</a></p>
58
<h2><a name="pub-methods"></a>
59
Public Member Functions</h2>
61
<li><a class="el" href="classipe_1_1_fixed.html#a5123d14ccc439d2837444166d2c4ba5f">Fixed</a> (int val)
62
<li><a class="el" href="classipe_1_1_fixed.html#abe002f9f814e28554bbae46141b52262">Fixed</a> ()
63
<li>int <a class="el" href="classipe_1_1_fixed.html#a333e5ba3145c7f18ebcbeb2c1486f7e5">toInt</a> () const
64
<li>double <a class="el" href="classipe_1_1_fixed.html#ac454db654175aefec465834df70f998d">toDouble</a> () const
65
<li>int <a class="el" href="classipe_1_1_fixed.html#ae73e0119e7768102009a5834e8da6fa9">internal</a> () const
66
<li><a class="el" href="classipe_1_1_fixed.html">Fixed</a> <a class="el" href="classipe_1_1_fixed.html#ab5697e33f371d1a802e91c2ba28d4b8a">mult</a> (int a, int b) const
67
<li>bool <a class="el" href="classipe_1_1_fixed.html#a55c9fdb6242e95e1d267509acea92bef">operator==</a> (const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &rhs) const
68
<li>bool <a class="el" href="classipe_1_1_fixed.html#a2c7c6d555fa54837096d9099faccf768">operator!=</a> (const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &rhs) const
69
<li>bool <a class="el" href="classipe_1_1_fixed.html#a418092e485e70105e086528ba6fc1461">operator<</a> (const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &rhs) const
71
<h2><a name="pub-static-methods"></a>
72
Static Public Member Functions</h2>
74
<li>static <a class="el" href="classipe_1_1_fixed.html">Fixed</a> <a class="el" href="classipe_1_1_fixed.html#ab416a2f811f13a18a1452420f6e330e1">fromInternal</a> (int val)
75
<li>static <a class="el" href="classipe_1_1_fixed.html">Fixed</a> <a class="el" href="classipe_1_1_fixed.html#ad8fa203131bf4905c50409d571816b25">fromDouble</a> (double val)
77
<h2><a name="friends"></a>
80
<li><a class="el" href="classipe_1_1_stream.html">Stream</a> & <a class="el" href="classipe_1_1_fixed.html#a1332d5cd41cee12566d676afb8f6fecf">operator<<</a> (<a class="el" href="classipe_1_1_stream.html">Stream</a> &stream, const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> &f)
82
<hr/><a name="_details"></a><h2>Detailed Description</h2>
83
<div class="textblock"><p><a class="el" href="classipe_1_1_fixed.html" title="Fixed point number with three (decimal) fractional digits.">Fixed</a> point number with three (decimal) fractional digits. </p>
84
</div><hr/><h2>Constructor & Destructor Documentation</h2>
85
<a class="anchor" id="a5123d14ccc439d2837444166d2c4ba5f"></a><!-- doxytag: member="ipe::Fixed::Fixed" ref="a5123d14ccc439d2837444166d2c4ba5f" args="(int val)" -->
87
<div class="memproto">
88
<table class="memname">
90
<td class="memname">ipe::Fixed::Fixed </td>
92
<td class="paramtype">int </td>
93
<td class="paramname"><em>val</em></td><td>)</td>
94
<td><code> [inline, explicit]</code></td>
102
<a class="anchor" id="abe002f9f814e28554bbae46141b52262"></a><!-- doxytag: member="ipe::Fixed::Fixed" ref="abe002f9f814e28554bbae46141b52262" args="()" -->
103
<div class="memitem">
104
<div class="memproto">
105
<table class="memname">
107
<td class="memname">ipe::Fixed::Fixed </td>
109
<td class="paramname"></td><td>)</td>
110
<td><code> [inline, explicit]</code></td>
118
<hr/><h2>Member Function Documentation</h2>
119
<a class="anchor" id="ab416a2f811f13a18a1452420f6e330e1"></a><!-- doxytag: member="ipe::Fixed::fromInternal" ref="ab416a2f811f13a18a1452420f6e330e1" args="(int val)" -->
120
<div class="memitem">
121
<div class="memproto">
122
<table class="memname">
124
<td class="memname"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> ipe::Fixed::fromInternal </td>
126
<td class="paramtype">int </td>
127
<td class="paramname"><em>val</em></td><td>)</td>
111
128
<td><code> [inline, static]</code></td>
115
132
<div class="memdoc">
121
<a class="anchor" name="d8fa203131bf4905c50409d571816b25"></a><!-- doxytag: member="ipe::Fixed::fromDouble" ref="d8fa203131bf4905c50409d571816b25" args="(double val)" -->
136
<a class="anchor" id="ad8fa203131bf4905c50409d571816b25"></a><!-- doxytag: member="ipe::Fixed::fromDouble" ref="ad8fa203131bf4905c50409d571816b25" args="(double val)" -->
122
137
<div class="memitem">
123
138
<div class="memproto">
124
139
<table class="memname">
126
<td class="memname"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> Fixed::fromDouble </td>
141
<td class="memname"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> Fixed::fromDouble </td>
128
<td class="paramtype">double </td>
129
<td class="paramname"> <em>val</em> </td>
130
<td> ) </td>
143
<td class="paramtype">double </td>
144
<td class="paramname"><em>val</em></td><td>)</td>
131
145
<td><code> [static]</code></td>
135
149
<div class="memdoc">
141
<a class="anchor" name="333e5ba3145c7f18ebcbeb2c1486f7e5"></a><!-- doxytag: member="ipe::Fixed::toInt" ref="333e5ba3145c7f18ebcbeb2c1486f7e5" args="() const " -->
142
<div class="memitem">
143
<div class="memproto">
144
<table class="memname">
146
<td class="memname">int ipe::Fixed::toInt </td>
148
<td class="paramname"> </td>
149
<td> ) </td>
150
<td> const<code> [inline]</code></td>
160
<a class="anchor" name="c454db654175aefec465834df70f998d"></a><!-- doxytag: member="ipe::Fixed::toDouble" ref="c454db654175aefec465834df70f998d" args="() const " -->
161
<div class="memitem">
162
<div class="memproto">
163
<table class="memname">
165
<td class="memname">double ipe::Fixed::toDouble </td>
167
<td class="paramname"> </td>
168
<td> ) </td>
169
<td> const<code> [inline]</code></td>
179
<a class="anchor" name="e73e0119e7768102009a5834e8da6fa9"></a><!-- doxytag: member="ipe::Fixed::internal" ref="e73e0119e7768102009a5834e8da6fa9" args="() const " -->
180
<div class="memitem">
181
<div class="memproto">
182
<table class="memname">
184
<td class="memname">int ipe::Fixed::internal </td>
186
<td class="paramname"> </td>
187
<td> ) </td>
188
<td> const<code> [inline]</code></td>
198
<a class="anchor" name="b5697e33f371d1a802e91c2ba28d4b8a"></a><!-- doxytag: member="ipe::Fixed::mult" ref="b5697e33f371d1a802e91c2ba28d4b8a" args="(int a, int b) const " -->
199
<div class="memitem">
200
<div class="memproto">
201
<table class="memname">
203
<td class="memname"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> Fixed::mult </td>
205
<td class="paramtype">int </td>
206
<td class="paramname"> <em>a</em>, </td>
209
<td class="paramkey"></td>
211
<td class="paramtype">int </td>
212
<td class="paramname"> <em>b</em></td><td> </td>
217
<td></td><td></td><td> const</td>
224
Return value times (a/b).
229
<a class="anchor" name="55c9fdb6242e95e1d267509acea92bef"></a><!-- doxytag: member="ipe::Fixed::operator==" ref="55c9fdb6242e95e1d267509acea92bef" args="(const Fixed &rhs) const " -->
230
<div class="memitem">
231
<div class="memproto">
232
<table class="memname">
234
<td class="memname">bool ipe::Fixed::operator== </td>
236
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
237
<td class="paramname"> <em>rhs</em> </td>
238
<td> ) </td>
239
<td> const<code> [inline]</code></td>
249
<a class="anchor" name="2c7c6d555fa54837096d9099faccf768"></a><!-- doxytag: member="ipe::Fixed::operator!=" ref="2c7c6d555fa54837096d9099faccf768" args="(const Fixed &rhs) const " -->
250
<div class="memitem">
251
<div class="memproto">
252
<table class="memname">
254
<td class="memname">bool ipe::Fixed::operator!= </td>
256
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
257
<td class="paramname"> <em>rhs</em> </td>
258
<td> ) </td>
259
<td> const<code> [inline]</code></td>
269
<a class="anchor" name="418092e485e70105e086528ba6fc1461"></a><!-- doxytag: member="ipe::Fixed::operator<" ref="418092e485e70105e086528ba6fc1461" args="(const Fixed &rhs) const " -->
270
<div class="memitem">
271
<div class="memproto">
272
<table class="memname">
274
<td class="memname">bool ipe::Fixed::operator< </td>
276
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
277
<td class="paramname"> <em>rhs</em> </td>
278
<td> ) </td>
279
<td> const<code> [inline]</code></td>
289
<hr><h2>Friends And Related Function Documentation</h2>
290
<a class="anchor" name="1332d5cd41cee12566d676afb8f6fecf"></a><!-- doxytag: member="ipe::Fixed::operator<<" ref="1332d5cd41cee12566d676afb8f6fecf" args="(Stream &stream, const Fixed &f)" -->
291
<div class="memitem">
292
<div class="memproto">
293
<table class="memname">
295
<td class="memname"><a class="el" href="classipe_1_1_stream.html">Stream</a> & operator<< </td>
297
<td class="paramtype"><a class="el" href="classipe_1_1_stream.html">Stream</a> & </td>
298
<td class="paramname"> <em>stream</em>, </td>
301
<td class="paramkey"></td>
303
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
304
<td class="paramname"> <em>f</em></td><td> </td>
309
<td></td><td></td><td><code> [friend]</code></td>
319
<hr>The documentation for this class was generated from the following files:<ul>
320
<li>ipebase.h<li>ipebase.cpp</ul>
153
<a class="anchor" id="a333e5ba3145c7f18ebcbeb2c1486f7e5"></a><!-- doxytag: member="ipe::Fixed::toInt" ref="a333e5ba3145c7f18ebcbeb2c1486f7e5" args="() const " -->
154
<div class="memitem">
155
<div class="memproto">
156
<table class="memname">
158
<td class="memname">int ipe::Fixed::toInt </td>
160
<td class="paramname"></td><td>)</td>
161
<td> const<code> [inline]</code></td>
169
<a class="anchor" id="ac454db654175aefec465834df70f998d"></a><!-- doxytag: member="ipe::Fixed::toDouble" ref="ac454db654175aefec465834df70f998d" args="() const " -->
170
<div class="memitem">
171
<div class="memproto">
172
<table class="memname">
174
<td class="memname">double ipe::Fixed::toDouble </td>
176
<td class="paramname"></td><td>)</td>
177
<td> const<code> [inline]</code></td>
185
<a class="anchor" id="ae73e0119e7768102009a5834e8da6fa9"></a><!-- doxytag: member="ipe::Fixed::internal" ref="ae73e0119e7768102009a5834e8da6fa9" args="() const " -->
186
<div class="memitem">
187
<div class="memproto">
188
<table class="memname">
190
<td class="memname">int ipe::Fixed::internal </td>
192
<td class="paramname"></td><td>)</td>
193
<td> const<code> [inline]</code></td>
201
<a class="anchor" id="ab5697e33f371d1a802e91c2ba28d4b8a"></a><!-- doxytag: member="ipe::Fixed::mult" ref="ab5697e33f371d1a802e91c2ba28d4b8a" args="(int a, int b) const " -->
202
<div class="memitem">
203
<div class="memproto">
204
<table class="memname">
206
<td class="memname"><a class="el" href="classipe_1_1_fixed.html">Fixed</a> Fixed::mult </td>
208
<td class="paramtype">int </td>
209
<td class="paramname"><em>a</em>, </td>
212
<td class="paramkey"></td>
214
<td class="paramtype">int </td>
215
<td class="paramname"><em>b</em> </td>
220
<td></td><td> const</td>
226
<p>Return value times (a/b) </p>
230
<a class="anchor" id="a55c9fdb6242e95e1d267509acea92bef"></a><!-- doxytag: member="ipe::Fixed::operator==" ref="a55c9fdb6242e95e1d267509acea92bef" args="(const Fixed &rhs) const " -->
231
<div class="memitem">
232
<div class="memproto">
233
<table class="memname">
235
<td class="memname">bool ipe::Fixed::operator== </td>
237
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
238
<td class="paramname"><em>rhs</em></td><td>)</td>
239
<td> const<code> [inline]</code></td>
247
<a class="anchor" id="a2c7c6d555fa54837096d9099faccf768"></a><!-- doxytag: member="ipe::Fixed::operator!=" ref="a2c7c6d555fa54837096d9099faccf768" args="(const Fixed &rhs) const " -->
248
<div class="memitem">
249
<div class="memproto">
250
<table class="memname">
252
<td class="memname">bool ipe::Fixed::operator!= </td>
254
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
255
<td class="paramname"><em>rhs</em></td><td>)</td>
256
<td> const<code> [inline]</code></td>
264
<a class="anchor" id="a418092e485e70105e086528ba6fc1461"></a><!-- doxytag: member="ipe::Fixed::operator<" ref="a418092e485e70105e086528ba6fc1461" args="(const Fixed &rhs) const " -->
265
<div class="memitem">
266
<div class="memproto">
267
<table class="memname">
269
<td class="memname">bool ipe::Fixed::operator< </td>
271
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
272
<td class="paramname"><em>rhs</em></td><td>)</td>
273
<td> const<code> [inline]</code></td>
281
<hr/><h2>Friends And Related Function Documentation</h2>
282
<a class="anchor" id="a1332d5cd41cee12566d676afb8f6fecf"></a><!-- doxytag: member="ipe::Fixed::operator<<" ref="a1332d5cd41cee12566d676afb8f6fecf" args="(Stream &stream, const Fixed &f)" -->
283
<div class="memitem">
284
<div class="memproto">
285
<table class="memname">
287
<td class="memname"><a class="el" href="classipe_1_1_stream.html">Stream</a> & operator<< </td>
289
<td class="paramtype"><a class="el" href="classipe_1_1_stream.html">Stream</a> & </td>
290
<td class="paramname"><em>stream</em>, </td>
293
<td class="paramkey"></td>
295
<td class="paramtype">const <a class="el" href="classipe_1_1_fixed.html">Fixed</a> & </td>
296
<td class="paramname"><em>f</em> </td>
301
<td></td><td><code> [friend]</code></td>
309
<hr/>The documentation for this class was generated from the following files:<ul>