File: classPrefix.html

package info (click to toggle)
libqalculate 0.9.7-9.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,764 kB
  • ctags: 6,001
  • sloc: cpp: 40,541; sh: 9,291; makefile: 64
file content (472 lines) | stat: -rw-r--r-- 24,249 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libqalculate-0.9.7: Prefix Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="classes.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Prefix Class Reference</h1><!-- doxytag: class="Prefix" -->Abstract class for prefixes.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Prefix.h&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Prefix:</div>
<div class="dynsection">

<p><center><img src="classPrefix.png" usemap="#Prefix_map" border="0" alt=""></center>
<map name="Prefix_map">
<area href="classBinaryPrefix.html" alt="BinaryPrefix" shape="rect" coords="0,56,90,80">
<area href="classDecimalPrefix.html" alt="DecimalPrefix" shape="rect" coords="100,56,190,80">
<area href="classNumberPrefix.html" alt="NumberPrefix" shape="rect" coords="200,56,290,80">
</map>
</div>

<p>
<a href="classPrefix-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#95e885d4eaac9c882c19191fd7fbde4d">Prefix</a> (string long_name, string short_name=&quot;&quot;, string unicode_name=&quot;&quot;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#67cf7edd770b1ec1caf8ba996c2571a7">shortName</a> (bool return_long_if_no_short=true, bool use_unicode=false) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#0888b9b1f06e0a8e0a08cb36d4a8b07f">longName</a> (bool return_short_if_no_long=true, bool use_unicode=false) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#14e3f9398773d91cc1ced091a3ecbc28">unicodeName</a> (bool return_short_if_no_uni=true) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#2f7900f2008a38fef1e2ef28f0a50818">setShortName</a> (string short_name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#b79f5f1f30df0b83c5dced088d3249ca">setLongName</a> (string long_name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#ab619e6438242ea51ea867b5ee001309">setUnicodeName</a> (string unicode_name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#1245060cfdaba967dc20062200f919a0">name</a> (bool short_default=true, bool use_unicode=false, bool(*can_display_unicode_string_function)(const char *, void *)=NULL, void *can_display_unicode_string_arg=NULL) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classNumber.html">Number</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#e828e66c2fc5b58cc6cc6df5db15d2b2">value</a> (const <a class="el" href="classNumber.html">Number</a> &amp;nexp) const =0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classNumber.html">Number</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#a1eec8b3ac6266f3865d169c07d9e26d">value</a> (int iexp) const =0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classNumber.html">Number</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#e304214d9254a1e9e06d8ee2c6df09ab">value</a> () const =0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPrefix.html#2e3d9095de33a874a898b7218636be3a">type</a> () const =0</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="767cdf477214c78f225d5deb106a7d34"></a><!-- doxytag: member="Prefix::l_name" ref="767cdf477214c78f225d5deb106a7d34" args="" -->
string&nbsp;</td><td class="memItemRight" valign="bottom"><b>l_name</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d5fa13203e437a2b9c36db5bd8d86444"></a><!-- doxytag: member="Prefix::s_name" ref="d5fa13203e437a2b9c36db5bd8d86444" args="" -->
string&nbsp;</td><td class="memItemRight" valign="bottom"><b>s_name</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3e3e84e9e7319271118df1e3f47081fb"></a><!-- doxytag: member="Prefix::u_name" ref="3e3e84e9e7319271118df1e3f47081fb" args="" -->
string&nbsp;</td><td class="memItemRight" valign="bottom"><b>u_name</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract class for prefixes. 
<p>
A prefix is prepended to a unit to specificy a quantity multiplicator. A prefix has a numerical value which raised to the units power defines the quantity. In for example the expression "3 kilometers", meter is the unit, 3 is regular quantity, and kilo is a prefix with a value 1000, thus the example equals "3000 meters". If the unit instead had been squared, the value of the prefix would have been raised by two and the total quantity would have been 3.000.000.<p>
Prefixes can have up to free different three names -- a long name, a short name and a short unicode name. The unicode name is an alternative to the short name that is preferred if unicode characters can be displayed. The names or used to reference the prefix in mathematical expressions and to display a prefix in a result. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="95e885d4eaac9c882c19191fd7fbde4d"></a><!-- doxytag: member="Prefix::Prefix" ref="95e885d4eaac9c882c19191fd7fbde4d" args="(string long_name, string short_name=&quot;&quot;, string unicode_name=&quot;&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Prefix::Prefix           </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>long_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>short_name</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>unicode_name</em> = <code>&quot;&quot;</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>long_name</em>&nbsp;</td><td>Long name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>short_name</em>&nbsp;</td><td>Short name. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>unicode_name</em>&nbsp;</td><td>Unicode name. </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="67cf7edd770b1ec1caf8ba996c2571a7"></a><!-- doxytag: member="Prefix::shortName" ref="67cf7edd770b1ec1caf8ba996c2571a7" args="(bool return_long_if_no_short=true, bool use_unicode=false) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string&amp; Prefix::shortName           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>return_long_if_no_short</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>use_unicode</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the short name of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>return_long_if_no_short</em>&nbsp;</td><td>If the long name shall be returned if the prefix has not got a short name (if it is empty). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>use_unicode</em>&nbsp;</td><td>If a unicode version of the name is allowed and preferred. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The short name of the prefix. </dd></dl>

</div>
</div><p>
<a class="anchor" name="0888b9b1f06e0a8e0a08cb36d4a8b07f"></a><!-- doxytag: member="Prefix::longName" ref="0888b9b1f06e0a8e0a08cb36d4a8b07f" args="(bool return_short_if_no_long=true, bool use_unicode=false) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string&amp; Prefix::longName           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>return_short_if_no_long</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>use_unicode</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the long name of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>return_short_if_no_long</em>&nbsp;</td><td>If the short name shall be returned if the prefix has not got a long name (if it is empty). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>use_unicode</em>&nbsp;</td><td>If a unicode version of the name is allowed and preferred. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The long name of the prefix. </dd></dl>

</div>
</div><p>
<a class="anchor" name="14e3f9398773d91cc1ced091a3ecbc28"></a><!-- doxytag: member="Prefix::unicodeName" ref="14e3f9398773d91cc1ced091a3ecbc28" args="(bool return_short_if_no_uni=true) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string&amp; Prefix::unicodeName           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>return_short_if_no_uni</em> = <code>true</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the unicode name of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>return_short_if_no_uni</em>&nbsp;</td><td>If the short name shall be returned if the prefix has not got a unicode name (if it is empty). </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The unicode name of the prefix. </dd></dl>

</div>
</div><p>
<a class="anchor" name="2f7900f2008a38fef1e2ef28f0a50818"></a><!-- doxytag: member="Prefix::setShortName" ref="2f7900f2008a38fef1e2ef28f0a50818" args="(string short_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Prefix::setShortName           </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>short_name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the short name of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>short_name</em>&nbsp;</td><td>The new short name for the prefix. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="b79f5f1f30df0b83c5dced088d3249ca"></a><!-- doxytag: member="Prefix::setLongName" ref="b79f5f1f30df0b83c5dced088d3249ca" args="(string long_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Prefix::setLongName           </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>long_name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the long name of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>long_name</em>&nbsp;</td><td>The new long name for the prefix. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="ab619e6438242ea51ea867b5ee001309"></a><!-- doxytag: member="Prefix::setUnicodeName" ref="ab619e6438242ea51ea867b5ee001309" args="(string unicode_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Prefix::setUnicodeName           </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>unicode_name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the unicode name of the prefix. The unicode name is an alternative to the short name that is preferred if unicode characters can be displayed.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>unicode_name</em>&nbsp;</td><td>The new unicode name for the prefix. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="1245060cfdaba967dc20062200f919a0"></a><!-- doxytag: member="Prefix::name" ref="1245060cfdaba967dc20062200f919a0" args="(bool short_default=true, bool use_unicode=false, bool(*can_display_unicode_string_function)(const char *, void *)=NULL, void *can_display_unicode_string_arg=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const string&amp; Prefix::name           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>short_default</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>use_unicode</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool(*)(const char *, void *)&nbsp;</td>
          <td class="paramname"> <em>can_display_unicode_string_function</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>can_display_unicode_string_arg</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a preferred name of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>short_default</em>&nbsp;</td><td>If a short name is preferred. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>use_unicode</em>&nbsp;</td><td>If a unicode name is preferred. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>can_display_unicode_string_function</em>&nbsp;</td><td>Function that tests if the unicode characters in a name can be displayed. If the function returns false, the name will be rejected. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>can_display_unicode_string_arg</em>&nbsp;</td><td><a class="el" href="classArgument.html" title="A mathematical function argument definition with free value and base class for all...">Argument</a> to pass to the above test function. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A preferred name. </dd></dl>

</div>
</div><p>
<a class="anchor" name="e828e66c2fc5b58cc6cc6df5db15d2b2"></a><!-- doxytag: member="Prefix::value" ref="e828e66c2fc5b58cc6cc6df5db15d2b2" args="(const Number &amp;nexp) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classNumber.html">Number</a> Prefix::value           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classNumber.html">Number</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>nexp</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the value of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>nexp</em>&nbsp;</td><td>The power of the prefixed unit. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The value of the prefix. </dd></dl>

<p>Implemented in <a class="el" href="classDecimalPrefix.html#e1117227f6a7b3e479a9c2f2a21e3096">DecimalPrefix</a>, <a class="el" href="classBinaryPrefix.html#793e040ded8004a840829df7ce43ffba">BinaryPrefix</a>, and <a class="el" href="classNumberPrefix.html#9953b942076bb8dbf8e8acd4069bfc88">NumberPrefix</a>.</p>

</div>
</div><p>
<a class="anchor" name="a1eec8b3ac6266f3865d169c07d9e26d"></a><!-- doxytag: member="Prefix::value" ref="a1eec8b3ac6266f3865d169c07d9e26d" args="(int iexp) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classNumber.html">Number</a> Prefix::value           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>iexp</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the value of the prefix.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>iexp</em>&nbsp;</td><td>The power of the prefixed unit. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The value of the prefix. </dd></dl>

<p>Implemented in <a class="el" href="classDecimalPrefix.html#cb8f98fb9b7acc0b3943431bf125ff7b">DecimalPrefix</a>, <a class="el" href="classBinaryPrefix.html#6266650763a476d9d4f467e994f9acf1">BinaryPrefix</a>, and <a class="el" href="classNumberPrefix.html#4bdf545584d6630697e78df2753c097d">NumberPrefix</a>.</p>

</div>
</div><p>
<a class="anchor" name="e304214d9254a1e9e06d8ee2c6df09ab"></a><!-- doxytag: member="Prefix::value" ref="e304214d9254a1e9e06d8ee2c6df09ab" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classNumber.html">Number</a> Prefix::value           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the value of the prefix.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The value of the prefix. </dd></dl>

<p>Implemented in <a class="el" href="classDecimalPrefix.html#f810a95e1f94ff2e3119c54aa43be05c">DecimalPrefix</a>, <a class="el" href="classBinaryPrefix.html#3ab4790b8d1b5b9452e9a5ff6f2078a1">BinaryPrefix</a>, and <a class="el" href="classNumberPrefix.html#92d2db988693ef42acf7be7250903878">NumberPrefix</a>.</p>

</div>
</div><p>
<a class="anchor" name="2e3d9095de33a874a898b7218636be3a"></a><!-- doxytag: member="Prefix::type" ref="2e3d9095de33a874a898b7218636be3a" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int Prefix::type           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns type, subclass, of the prefix. This can be PREFIX_DECIMAL for prefixes of the class <a class="el" href="classDecimalPrefix.html" title="A decimal (metric) prefix.">DecimalPrefix</a>, PREFIX_BINARY for <a class="el" href="classBinaryPrefix.html" title="A binary prefix.">BinaryPrefix</a>, or PREFIX_NUMBER for <a class="el" href="classNumberPrefix.html" title="A prefix with a free numerical value.">NumberPrefix</a>.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The type of the prefix. </dd></dl>

<p>Implemented in <a class="el" href="classDecimalPrefix.html#59759de2b0394b0bc906ec923ea80e40">DecimalPrefix</a>, <a class="el" href="classBinaryPrefix.html#b4bff478fa4c2cc6322dceb56595b643">BinaryPrefix</a>, and <a class="el" href="classNumberPrefix.html#a8e52c7be3aed02064ebff65785fc0e0">NumberPrefix</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>libqalculate/<a class="el" href="Prefix_8h.html">Prefix.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jan 5 08:26:29 2010 for libqalculate-0.9.7 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>