Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 02354f0cc3f53bcda4b77fba3bc4135d > files > 120

lib64qalculate-devel-0.9.7-6mdv2010.1.x86_64.rpm

<!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>