Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 247b28499c443e092731ffba814075f2 > files > 965

mpqc-html-2.3.1-9mdv2010.0.i586.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>MPQC: sc::Units Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.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="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 class="navpath"><b>sc</b>::<a class="el" href="classsc_1_1Units.html">Units</a>
  </div>
</div>
<div class="contents">
<h1>sc::Units Class Reference</h1><!-- doxytag: class="sc::Units" --><!-- doxytag: inherits="sc::SavableState" -->The <a class="el" href="classsc_1_1Units.html" title="The Units class is used to perform unit converions.">Units</a> class is used to perform unit converions.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="units_8h_source.html">units.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for sc::Units:</div>
<div class="dynsection">

<p><center><img src="classsc_1_1Units.png" usemap="#sc::Units_map" border="0" alt=""></center>
<map name="sc::Units_map">
<area href="classsc_1_1SavableState.html" alt="sc::SavableState" shape="rect" coords="0,168,120,192">
<area href="classsc_1_1DescribedClass.html" alt="sc::DescribedClass" shape="rect" coords="0,112,120,136">
<area href="classsc_1_1RefCount.html" alt="sc::RefCount" shape="rect" coords="0,56,120,80">
<area href="classsc_1_1Identity.html" alt="sc::Identity" shape="rect" coords="0,0,120,24">
</map>
</div>

<p>
<a href="classsc_1_1Units-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>Storage</b> { <b>Steal</b>, 
<b>Copy</b>
 }</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="5885812eebd4642e7fee5617462d0ad3"></a><!-- doxytag: member="sc::Units::Units" ref="5885812eebd4642e7fee5617462d0ad3" args="(const char *strrep)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#5885812eebd4642e7fee5617462d0ad3">Units</a> (const char *strrep)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create using a string representation, like "kcal/mol". <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#1239d9872db4b1116dbaf1512ed1f20a">Units</a> (char *strrep, Units::Storage=Units::Copy)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create using a string representation, like "kcal/mol".  <a href="#1239d9872db4b1116dbaf1512ed1f20a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de3acbfb3e851b4274b34bcbe14e5b2b"></a><!-- doxytag: member="sc::Units::Units" ref="de3acbfb3e851b4274b34bcbe14e5b2b" args="(StateIn &amp;s)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#de3acbfb3e851b4274b34bcbe14e5b2b">Units</a> (<a class="el" href="classsc_1_1StateIn.html">StateIn</a> &amp;s)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Restore the state of a <a class="el" href="classsc_1_1Units.html" title="The Units class is used to perform unit converions.">Units</a> object from s. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8947eda8c328da6d07f12ba6fdae3211"></a><!-- doxytag: member="sc::Units::to" ref="8947eda8c328da6d07f12ba6fdae3211" args="(const Ref&lt; Units &gt; &amp;u) const " -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#8947eda8c328da6d07f12ba6fdae3211">to</a> (const <a class="el" href="classsc_1_1Ref.html">Ref</a>&lt; <a class="el" href="classsc_1_1Units.html">Units</a> &gt; &amp;u) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The conversion factor from this to u. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="092a256f9800da518bbdfe3e43341992"></a><!-- doxytag: member="sc::Units::from" ref="092a256f9800da518bbdfe3e43341992" args="(const Ref&lt; Units &gt; &amp;u) const " -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#092a256f9800da518bbdfe3e43341992">from</a> (const <a class="el" href="classsc_1_1Ref.html">Ref</a>&lt; <a class="el" href="classsc_1_1Units.html">Units</a> &gt; &amp;u) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The conversion factor from u to this. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="908985f5127545982b891a1d77701633"></a><!-- doxytag: member="sc::Units::to_atomic_units" ref="908985f5127545982b891a1d77701633" args="() const " -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#908985f5127545982b891a1d77701633">to_atomic_units</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The conversion factor from this to atomic units. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d85ba4f71a1b6e6f4aed7dfb6a68c14"></a><!-- doxytag: member="sc::Units::from_atomic_units" ref="5d85ba4f71a1b6e6f4aed7dfb6a68c14" args="() const " -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#5d85ba4f71a1b6e6f4aed7dfb6a68c14">from_atomic_units</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The conversion factor from atom units to this. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="45b4c7e516e28255a59b82e8888c518a"></a><!-- doxytag: member="sc::Units::string_rep" ref="45b4c7e516e28255a59b82e8888c518a" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#45b4c7e516e28255a59b82e8888c518a">string_rep</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The string representation of the units. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c54aa3626b6972aad1aeffd925af14b7"></a><!-- doxytag: member="sc::Units::save_data_state" ref="c54aa3626b6972aad1aeffd925af14b7" args="(StateOut &amp;s)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsc_1_1Units.html#c54aa3626b6972aad1aeffd925af14b7">save_data_state</a> (<a class="el" href="classsc_1_1StateOut.html">StateOut</a> &amp;s)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save the state of the <a class="el" href="classsc_1_1Units.html" title="The Units class is used to perform unit converions.">Units</a> object to s. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="984a3c71da3516d3f7c75427585f1ac6"></a><!-- doxytag: member="sc::Units::parse_unit" ref="984a3c71da3516d3f7c75427585f1ac6" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>parse_unit</b> ()</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="8950471928506f5c81ce2f5daf03ea3c"></a><!-- doxytag: member="sc::Units::strrep_" ref="8950471928506f5c81ce2f5daf03ea3c" args="" -->
char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>strrep_</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea6ed14ec41150b04673aa71419671b3"></a><!-- doxytag: member="sc::Units::to_atomic_units_" ref="ea6ed14ec41150b04673aa71419671b3" args="" -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><b>to_atomic_units_</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="classsc_1_1Units.html" title="The Units class is used to perform unit converions.">Units</a> class is used to perform unit converions. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="1239d9872db4b1116dbaf1512ed1f20a"></a><!-- doxytag: member="sc::Units::Units" ref="1239d9872db4b1116dbaf1512ed1f20a" args="(char *strrep, Units::Storage=Units::Copy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">sc::Units::Units           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>strrep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Units::Storage&nbsp;</td>
          <td class="paramname"> = <code>Units::Copy</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create using a string representation, like "kcal/mol". 
<p>
if Units::Steal is given is the second argment, the new <a class="el" href="classsc_1_1Units.html" title="The Units class is used to perform unit converions.">Units</a> object will delete the strrep argument when it is destroyed. 
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="units_8h_source.html">units.h</a></ul>
</div>
<hr>
<address>
<small>

Generated at Wed Oct 14 14:12:17 2009 for <a
href="http://www.mpqc.org">MPQC</a>
2.3.1 using the documentation package <a
href="http://www.doxygen.org">Doxygen</a>
1.5.9.

</small>
</address>
</body>
</html>