Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ae3ac0f3c84b68877416000d08e53ca8 > files > 92

libicu-doc-49.1.1-12.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>ICU 49.1.1: CurrencyAmount Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ICU 49.1.1
   &#160;<span id="projectnumber">49.1.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CurrencyAmount Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A currency together with a numeric amount, such as 200 USD.  
 <a href="classCurrencyAmount.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="curramt_8h_source.html">curramt.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CurrencyAmount:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCurrencyAmount.png" usemap="#CurrencyAmount_map" alt=""/>
  <map id="CurrencyAmount_map" name="CurrencyAmount_map">
<area href="classMeasure.html" title="An amount of a specified unit, consisting of a number and a Unit." alt="Measure" shape="rect" coords="0,112,108,136"/>
<area href="classUObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class." alt="UObject" shape="rect" coords="0,56,108,80"/>
<area href="classUMemory.html" title="UMemory is the common ICU base class." alt="UMemory" shape="rect" coords="0,0,108,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa01ed3e0ec82d5074c40812c9664b765"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#aa01ed3e0ec82d5074c40812c9664b765">CurrencyAmount</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;amount, const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *isoCode, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr class="memdesc:aa01ed3e0ec82d5074c40812c9664b765"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct an object with the given numeric amount and the given ISO currency code.  <a href="#aa01ed3e0ec82d5074c40812c9664b765">More...</a><br/></td></tr>
<tr class="separator:aa01ed3e0ec82d5074c40812c9664b765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96bd4e3e106d7892b49d45af01fb4a1e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a96bd4e3e106d7892b49d45af01fb4a1e">CurrencyAmount</a> (double amount, const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *isoCode, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr class="memdesc:a96bd4e3e106d7892b49d45af01fb4a1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct an object with the given numeric amount and the given ISO currency code.  <a href="#a96bd4e3e106d7892b49d45af01fb4a1e">More...</a><br/></td></tr>
<tr class="separator:a96bd4e3e106d7892b49d45af01fb4a1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac10e9dcf1578af646760d01d9c1eed1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#aac10e9dcf1578af646760d01d9c1eed1">CurrencyAmount</a> (const <a class="el" href="classCurrencyAmount.html">CurrencyAmount</a> &amp;other)</td></tr>
<tr class="memdesc:aac10e9dcf1578af646760d01d9c1eed1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor.  <a href="#aac10e9dcf1578af646760d01d9c1eed1">More...</a><br/></td></tr>
<tr class="separator:aac10e9dcf1578af646760d01d9c1eed1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a715828f7d013aa777e091730ac2d33b7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCurrencyAmount.html">CurrencyAmount</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a715828f7d013aa777e091730ac2d33b7">operator=</a> (const <a class="el" href="classCurrencyAmount.html">CurrencyAmount</a> &amp;other)</td></tr>
<tr class="memdesc:a715828f7d013aa777e091730ac2d33b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#a715828f7d013aa777e091730ac2d33b7">More...</a><br/></td></tr>
<tr class="separator:a715828f7d013aa777e091730ac2d33b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a324129012688a7d6213669f062b74b76"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUObject.html">UObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a324129012688a7d6213669f062b74b76">clone</a> () const </td></tr>
<tr class="memdesc:a324129012688a7d6213669f062b74b76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a polymorphic clone of this object.  <a href="#a324129012688a7d6213669f062b74b76">More...</a><br/></td></tr>
<tr class="separator:a324129012688a7d6213669f062b74b76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfee982a80a6241961b02b883c1852f9"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#abfee982a80a6241961b02b883c1852f9">~CurrencyAmount</a> ()</td></tr>
<tr class="memdesc:abfee982a80a6241961b02b883c1852f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#abfee982a80a6241961b02b883c1852f9">More...</a><br/></td></tr>
<tr class="separator:abfee982a80a6241961b02b883c1852f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a656cac9ccc74debabb28ae79942b082f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a656cac9ccc74debabb28ae79942b082f">getDynamicClassID</a> () const </td></tr>
<tr class="memdesc:a656cac9ccc74debabb28ae79942b082f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a unique class ID for this object POLYMORPHICALLY.  <a href="#a656cac9ccc74debabb28ae79942b082f">More...</a><br/></td></tr>
<tr class="separator:a656cac9ccc74debabb28ae79942b082f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9601d6dd26b64a40978c64b074b64073"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classCurrencyUnit.html">CurrencyUnit</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a9601d6dd26b64a40978c64b074b64073">getCurrency</a> () const </td></tr>
<tr class="memdesc:a9601d6dd26b64a40978c64b074b64073"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the currency unit object of this object.  <a href="#a9601d6dd26b64a40978c64b074b64073">More...</a><br/></td></tr>
<tr class="separator:a9601d6dd26b64a40978c64b074b64073"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99954a6dac387603d04cedaa1333a78b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a99954a6dac387603d04cedaa1333a78b">getISOCurrency</a> () const </td></tr>
<tr class="memdesc:a99954a6dac387603d04cedaa1333a78b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the ISO currency code of this object.  <a href="#a99954a6dac387603d04cedaa1333a78b">More...</a><br/></td></tr>
<tr class="separator:a99954a6dac387603d04cedaa1333a78b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classMeasure"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classMeasure')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classMeasure.html">Measure</a></td></tr>
<tr class="memitem:a46a388e186c1f6f60ad39202ad2ac2ef inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#a46a388e186c1f6f60ad39202ad2ac2ef">Measure</a> (const <a class="el" href="classFormattable.html">Formattable</a> &amp;number, <a class="el" href="classMeasureUnit.html">MeasureUnit</a> *adoptedUnit, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr class="memdesc:a46a388e186c1f6f60ad39202ad2ac2ef inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct an object with the given numeric amount and the given unit.  <a href="#a46a388e186c1f6f60ad39202ad2ac2ef">More...</a><br/></td></tr>
<tr class="separator:a46a388e186c1f6f60ad39202ad2ac2ef inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6860501b4d4b500d019877473ff0ad61 inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#a6860501b4d4b500d019877473ff0ad61">Measure</a> (const <a class="el" href="classMeasure.html">Measure</a> &amp;other)</td></tr>
<tr class="memdesc:a6860501b4d4b500d019877473ff0ad61 inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor.  <a href="#a6860501b4d4b500d019877473ff0ad61">More...</a><br/></td></tr>
<tr class="separator:a6860501b4d4b500d019877473ff0ad61 inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94221e3ffde5706e1f28e0a558f34981 inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMeasure.html">Measure</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#a94221e3ffde5706e1f28e0a558f34981">operator=</a> (const <a class="el" href="classMeasure.html">Measure</a> &amp;other)</td></tr>
<tr class="memdesc:a94221e3ffde5706e1f28e0a558f34981 inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#a94221e3ffde5706e1f28e0a558f34981">More...</a><br/></td></tr>
<tr class="separator:a94221e3ffde5706e1f28e0a558f34981 inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af10081ceb2f0850e74aec7202669a2 inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#a6af10081ceb2f0850e74aec7202669a2">~Measure</a> ()</td></tr>
<tr class="memdesc:a6af10081ceb2f0850e74aec7202669a2 inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a6af10081ceb2f0850e74aec7202669a2">More...</a><br/></td></tr>
<tr class="separator:a6af10081ceb2f0850e74aec7202669a2 inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43d8a81cfbbda7c050b7c4c38732c94d inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#a43d8a81cfbbda7c050b7c4c38732c94d">operator==</a> (const <a class="el" href="classUObject.html">UObject</a> &amp;other) const </td></tr>
<tr class="memdesc:a43d8a81cfbbda7c050b7c4c38732c94d inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Equality operator.  <a href="#a43d8a81cfbbda7c050b7c4c38732c94d">More...</a><br/></td></tr>
<tr class="separator:a43d8a81cfbbda7c050b7c4c38732c94d inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2935701319d4d7b2219d22130849e3b7 inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#a2935701319d4d7b2219d22130849e3b7">getNumber</a> () const </td></tr>
<tr class="memdesc:a2935701319d4d7b2219d22130849e3b7 inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a reference to the numeric value of this object.  <a href="#a2935701319d4d7b2219d22130849e3b7">More...</a><br/></td></tr>
<tr class="separator:a2935701319d4d7b2219d22130849e3b7 inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca10f62e4a418373e4b1e58e39637d0a inherit pub_methods_classMeasure"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classMeasureUnit.html">MeasureUnit</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#aca10f62e4a418373e4b1e58e39637d0a">getUnit</a> () const </td></tr>
<tr class="memdesc:aca10f62e4a418373e4b1e58e39637d0a inherit pub_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a reference to the unit of this object.  <a href="#aca10f62e4a418373e4b1e58e39637d0a">More...</a><br/></td></tr>
<tr class="separator:aca10f62e4a418373e4b1e58e39637d0a inherit pub_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr>
<tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr>
<tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ace22cf29a90641ef43350deae5bedb85">More...</a><br/></td></tr>
<tr class="separator:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a068714f400a5c13931cd9ba31c82ff21"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCurrencyAmount.html#a068714f400a5c13931cd9ba31c82ff21">getStaticClassID</a> ()</td></tr>
<tr class="memdesc:a068714f400a5c13931cd9ba31c82ff21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the class ID for this class.  <a href="#a068714f400a5c13931cd9ba31c82ff21">More...</a><br/></td></tr>
<tr class="separator:a068714f400a5c13931cd9ba31c82ff21"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classMeasure"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classMeasure')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classMeasure.html">Measure</a></td></tr>
<tr class="memitem:ab55c93d6121f43c91a337fb7bcd26825 inherit pro_methods_classMeasure"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMeasure.html#ab55c93d6121f43c91a337fb7bcd26825">Measure</a> ()</td></tr>
<tr class="memdesc:ab55c93d6121f43c91a337fb7bcd26825 inherit pro_methods_classMeasure"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#ab55c93d6121f43c91a337fb7bcd26825">More...</a><br/></td></tr>
<tr class="separator:ab55c93d6121f43c91a337fb7bcd26825 inherit pro_methods_classMeasure"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A currency together with a numeric amount, such as 200 USD. </p>
<dl class="section author"><dt>Author</dt><dd>Alan Liu </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002920">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Definition at line <a class="el" href="curramt_8h_source.html#l00035">35</a> of file <a class="el" href="curramt_8h_source.html">curramt.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa01ed3e0ec82d5074c40812c9664b765"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CurrencyAmount::CurrencyAmount </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> &amp;&#160;</td>
          <td class="paramname"><em>amount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>isoCode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>ec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct an object with the given numeric amount and the given ISO currency code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">amount</td><td>a numeric object; amount.isNumeric() must be TRUE </td></tr>
    <tr><td class="paramname">isoCode</td><td>the 3-letter ISO 4217 currency code; must not be NULL and must have length 3 </td></tr>
    <tr><td class="paramname">ec</td><td>input-output error code. If the amount or the isoCode is invalid, then this will be set to a failing value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002921">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a96bd4e3e106d7892b49d45af01fb4a1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CurrencyAmount::CurrencyAmount </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>amount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>isoCode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>ec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct an object with the given numeric amount and the given ISO currency code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">amount</td><td>the amount of the given currency </td></tr>
    <tr><td class="paramname">isoCode</td><td>the 3-letter ISO 4217 currency code; must not be NULL and must have length 3 </td></tr>
    <tr><td class="paramname">ec</td><td>input-output error code. If the isoCode is invalid, then this will be set to a failing value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002922">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aac10e9dcf1578af646760d01d9c1eed1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CurrencyAmount::CurrencyAmount </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCurrencyAmount.html">CurrencyAmount</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy constructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002923">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="abfee982a80a6241961b02b883c1852f9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual CurrencyAmount::~CurrencyAmount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002926">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a324129012688a7d6213669f062b74b76"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classUObject.html">UObject</a>* CurrencyAmount::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return a polymorphic clone of this object. </p>
<p>The result will have the same class as returned by <a class="el" href="classCurrencyAmount.html#a656cac9ccc74debabb28ae79942b082f" title="Returns a unique class ID for this object POLYMORPHICALLY.">getDynamicClassID()</a>. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002925">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Implements <a class="el" href="classMeasure.html#abc87db8d55945660b2ea2cd3d0713b89">Measure</a>.</p>

</div>
</div>
<a class="anchor" id="a9601d6dd26b64a40978c64b074b64073"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classCurrencyUnit.html">CurrencyUnit</a> &amp; CurrencyAmount::getCurrency </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the currency unit object of this object. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002929">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Definition at line <a class="el" href="curramt_8h_source.html#l00119">119</a> of file <a class="el" href="curramt_8h_source.html">curramt.h</a>.</p>

<p>References <a class="el" href="measure_8h_source.html#l00130">Measure::getUnit()</a>.</p>

<p>Referenced by <a class="el" href="curramt_8h_source.html#l00123">getISOCurrency()</a>.</p>

</div>
</div>
<a class="anchor" id="a656cac9ccc74debabb28ae79942b082f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> CurrencyAmount::getDynamicClassID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a unique class ID for this object POLYMORPHICALLY. </p>
<p>This method implements a simple form of RTTI used by ICU. </p>
<dl class="section return"><dt>Returns</dt><dd>The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002927">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p>

</div>
</div>
<a class="anchor" id="a99954a6dac387603d04cedaa1333a78b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> * CurrencyAmount::getISOCurrency </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the ISO currency code of this object. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002930">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

<p>Definition at line <a class="el" href="curramt_8h_source.html#l00123">123</a> of file <a class="el" href="curramt_8h_source.html">curramt.h</a>.</p>

<p>References <a class="el" href="curramt_8h_source.html#l00119">getCurrency()</a>, and <a class="el" href="currunit_8h_source.html#l00110">CurrencyUnit::getISOCurrency()</a>.</p>

</div>
</div>
<a class="anchor" id="a068714f400a5c13931cd9ba31c82ff21"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> CurrencyAmount::getStaticClassID </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the class ID for this class. </p>
<p>This is used to compare to the return value of <a class="el" href="classCurrencyAmount.html#a656cac9ccc74debabb28ae79942b082f" title="Returns a unique class ID for this object POLYMORPHICALLY.">getDynamicClassID()</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>The class ID for all objects of this class. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002928">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a715828f7d013aa777e091730ac2d33b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCurrencyAmount.html">CurrencyAmount</a>&amp; CurrencyAmount::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCurrencyAmount.html">CurrencyAmount</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assignment operator. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002924">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="curramt_8h_source.html">curramt.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>