File: classAliasUnit__Composite.html

package info (click to toggle)
libqalculate 0.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 8,096 kB
  • ctags: 5,501
  • sloc: cpp: 40,337; sh: 9,010; makefile: 67
file content (126 lines) | stat: -rw-r--r-- 9,360 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libqalculate-0.9.6: AliasUnit_Composite Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.3 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>AliasUnit_Composite Class Reference</h1><!-- doxytag: class=<AliasUnit_Composite> --><!-- doxytag: inherits=<AliasUnit> -->A subunit in a <a class="el" href="classCompositeUnit.html">CompositeUnit</a>.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Unit.h&gt;</code>
<p>
<p>Inheritance diagram for AliasUnit_Composite:
<p><center><img src="classAliasUnit__Composite.png" usemap="#AliasUnit_Composite_map" border="0" alt=""></center>
<map name="AliasUnit_Composite_map">
<area href="classAliasUnit.html" alt="AliasUnit" shape="rect" coords="0,112,126,136">
<area href="classUnit.html" alt="Unit" shape="rect" coords="0,56,126,80">
<area href="classExpressionItem.html" alt="ExpressionItem" shape="rect" coords="0,0,126,24">
</map>
<a href="classAliasUnit__Composite-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"><a class="anchor" name="a0"></a><!-- doxytag: member=<AliasUnit_Composite::AliasUnit_Composite> ref=<a0> args=<(Unit *alias, int exp=1, Prefix *prefix_=NULL)> -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>AliasUnit_Composite</b> (<a class="el" href="classUnit.html">Unit</a> *alias, int exp=1, <a class="el" href="classPrefix.html">Prefix</a> *prefix_=NULL)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member=<AliasUnit_Composite::AliasUnit_Composite> ref=<a1> args=<(const AliasUnit_Composite *unit)> -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>AliasUnit_Composite</b> (const <a class="el" href="classAliasUnit__Composite.html">AliasUnit_Composite</a> *unit)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3"></a><!-- doxytag: member=<AliasUnit_Composite::copy> ref=<a3> args=<() const > -->
virtual <a class="el" href="classExpressionItem.html">ExpressionItem</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>copy</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4"></a><!-- doxytag: member=<AliasUnit_Composite::set> ref=<a4> args=<(const ExpressionItem *item)> -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set</b> (const <a class="el" href="classExpressionItem.html">ExpressionItem</a> *item)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAliasUnit__Composite.html#a5">print</a> (bool plural_, bool short_, 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"><a class="anchor" name="a6"></a><!-- doxytag: member=<AliasUnit_Composite::prefix> ref=<a6> args=<() const > -->
virtual <a class="el" href="classPrefix.html">Prefix</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>prefix</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7"></a><!-- doxytag: member=<AliasUnit_Composite::prefixExponent> ref=<a7> args=<() const > -->
virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><b>prefixExponent</b> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8"></a><!-- doxytag: member=<AliasUnit_Composite::set> ref=<a8> args=<(Unit *u, int exp=1, Prefix *prefix_=NULL)> -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set</b> (<a class="el" href="classUnit.html">Unit</a> *u, int exp=1, <a class="el" href="classPrefix.html">Prefix</a> *prefix_=NULL)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9"></a><!-- doxytag: member=<AliasUnit_Composite::convertToFirstBaseUnit> ref=<a9> args=<(MathStructure &amp;mvalue, MathStructure &amp;mexp) const > -->
virtual <a class="el" href="classMathStructure.html">MathStructure</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>convertToFirstBaseUnit</b> (<a class="el" href="classMathStructure.html">MathStructure</a> &amp;mvalue, <a class="el" href="classMathStructure.html">MathStructure</a> &amp;mexp) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10"></a><!-- doxytag: member=<AliasUnit_Composite::convertFromFirstBaseUnit> ref=<a10> args=<(MathStructure &amp;mvalue, MathStructure &amp;mexp) const > -->
virtual <a class="el" href="classMathStructure.html">MathStructure</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>convertFromFirstBaseUnit</b> (<a class="el" href="classMathStructure.html">MathStructure</a> &amp;mvalue, <a class="el" href="classMathStructure.html">MathStructure</a> &amp;mexp) const </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="p0"></a><!-- doxytag: member=<AliasUnit_Composite::prefixv> ref=<p0> args=<> -->
<a class="el" href="classPrefix.html">Prefix</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>prefixv</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A subunit in a <a class="el" href="classCompositeUnit.html">CompositeUnit</a>. 
<p>
Should normally not be used directly.
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a5"></a><!-- doxytag: member=<AliasUnit_Composite::print> ref=<a5> args=<(bool plural_, bool short_, bool use_unicode=false, bool(*can_display_unicode_string_function)(const char *, void *)=NULL, void *can_display_unicode_string_arg=NULL) const > --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">virtual string AliasUnit_Composite::print           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname" nowrap> <em>plural_</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>short_</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>use_unicode</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>bool(*)(const char *, void *)&nbsp;</td>
          <td class="mdname" nowrap> <em>can_display_unicode_string_function</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>void *&nbsp;</td>
          <td class="mdname" nowrap> <em>can_display_unicode_string_arg</em> = <code>NULL</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns a display string representing the unit in an expression.<p>
Equivalent to <a class="el" href="classExpressionItem.html#a10">preferredName()</a> for <a class="el" href="classUnit.html">Unit</a> and <a class="el" href="classAliasUnit.html">AliasUnit</a>, but closer to MathStructure::print() for <a class="el" href="classCompositeUnit.html">CompositeUnit</a> (prints out base expression).
<p>
Reimplemented from <a class="el" href="classUnit.html#a11">Unit</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li>libqalculate/<a class="el" href="Unit_8h.html">Unit.h</a></ul>
<hr size="1"><address style="align: right;"><small>
Generated on 17 Jun 2007 for libqalculate-0.9.6 by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.3</small></address>
</body>
</html>