Files
rippled/structripple_1_1EitherAmount.html
2025-11-04 00:36:48 -08:00

365 lines
19 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::EitherAmount Struct 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="structripple_1_1EitherAmount.html">EitherAmount</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="structripple_1_1EitherAmount-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">ripple::EitherAmount Struct Reference</div></div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for ripple::EitherAmount:</div>
<div class="dyncontent">
<div class="center"><img src="structripple_1_1EitherAmount__coll__graph.png" border="0" usemap="#aripple_1_1EitherAmount_coll__map" alt="Collaboration graph"/></div>
<map name="aripple_1_1EitherAmount_coll__map" id="aripple_1_1EitherAmount_coll__map">
<area shape="rect" title=" " alt="" coords="567,170,723,195"/>
<area shape="rect" href="classripple_1_1IOUAmount.html" title="Floating point representation of amounts with high dynamic range." alt="" coords="351,87,493,113"/>
<area shape="poly" title=" " alt="" coords="471,115,610,167,608,172,469,120"/>
<area shape="rect" title=" " alt="" coords="35,5,201,45"/>
<area shape="poly" title=" " alt="" coords="215,45,327,72,375,85,374,90,326,77,213,50"/>
<area shape="rect" title=" " alt="" coords="6,70,230,95"/>
<area shape="poly" title=" " alt="" coords="244,87,351,93,350,99,243,92"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="71,119,165,145"/>
<area shape="poly" title=" " alt="" coords="179,125,326,112,350,109,351,114,327,117,179,131"/>
<area shape="rect" href="classripple_1_1XRPAmount.html" title=" " alt="" coords="351,214,493,239"/>
<area shape="poly" title=" " alt="" coords="180,142,231,155,318,184,390,211,389,216,317,189,230,160,178,147"/>
<area shape="poly" title=" " alt="" coords="500,209,579,193,580,198,501,214"/>
<area shape="rect" title=" " alt="" coords="35,169,201,209"/>
<area shape="poly" title=" " alt="" coords="215,198,351,215,350,221,214,204"/>
<area shape="rect" title=" " alt="" coords="5,234,231,259"/>
<area shape="poly" title=" " alt="" coords="244,236,350,229,351,234,245,241"/>
<area shape="rect" title=" " alt="" coords="13,284,223,324"/>
<area shape="poly" title=" " alt="" coords="210,278,370,237,372,242,211,283"/>
<area shape="rect" title=" " alt="" coords="11,348,225,388"/>
<area shape="poly" title=" " alt="" coords="210,341,230,334,327,283,401,237,403,242,330,288,232,338,212,346"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae5e0f75d87995c51ae001467347b3a79" id="r_ae5e0f75d87995c51ae001467347b3a79"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1EitherAmount.html#ae5e0f75d87995c51ae001467347b3a79">EitherAmount</a> ()=default</td></tr>
<tr class="separator:ae5e0f75d87995c51ae001467347b3a79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0cabee8cba81ca1809d86039c7d2be8" id="r_ac0cabee8cba81ca1809d86039c7d2be8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1EitherAmount.html#ac0cabee8cba81ca1809d86039c7d2be8">EitherAmount</a> (<a class="el" href="classripple_1_1IOUAmount.html">IOUAmount</a> const &amp;a)</td></tr>
<tr class="separator:ac0cabee8cba81ca1809d86039c7d2be8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e4271999d64bd0fc9d844d8377e73a1" id="r_a1e4271999d64bd0fc9d844d8377e73a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1EitherAmount.html#a1e4271999d64bd0fc9d844d8377e73a1">EitherAmount</a> (<a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a> const &amp;a)</td></tr>
<tr class="separator:a1e4271999d64bd0fc9d844d8377e73a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac67ad3ad911ab8b89160c5b5e41c6af5" id="r_ac67ad3ad911ab8b89160c5b5e41c6af5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1EitherAmount.html#ac67ad3ad911ab8b89160c5b5e41c6af5">EitherAmount</a> (<a class="el" href="structripple_1_1AmountSpec.html">AmountSpec</a> const &amp;a)</td></tr>
<tr class="separator:ac67ad3ad911ab8b89160c5b5e41c6af5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aeb918509d735ed47b9236190b9538a28" id="r_aeb918509d735ed47b9236190b9538a28"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1EitherAmount.html#aeb918509d735ed47b9236190b9538a28">native</a> = false</td></tr>
<tr class="separator:aeb918509d735ed47b9236190b9538a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab82bf14b8199b1979e2e5b5f39789d7c" id="r_ab82bf14b8199b1979e2e5b5f39789d7c"><td class="memItemLeft" >union {&#160;</td><td class="memItemRight" valign="bottom"></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af364a68c5fd946136bf85b70f8efa045" id="r_af364a68c5fd946136bf85b70f8efa045"><td class="memItemLeft" >&#160;&#160;&#160;<a class="el" href="classripple_1_1IOUAmount.html">IOUAmount</a>&#160;&#160;&#160;<a class="el" href="structripple_1_1EitherAmount.html#a25adf797dae38999e3904a946410c405">iou</a> = {}&#160;</td><td class="memItemRight" valign="bottom"></td></tr>
<tr class="separator:af364a68c5fd946136bf85b70f8efa045"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2c57c65c341869c5f874d469109377b" id="r_aa2c57c65c341869c5f874d469109377b"><td class="memItemLeft" >&#160;&#160;&#160;<a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a>&#160;&#160;&#160;<a class="el" href="structripple_1_1EitherAmount.html#aec8b0d37cced4ef89d51eaff7fc8e6f8">xrp</a>&#160;</td><td class="memItemRight" valign="bottom"></td></tr>
<tr class="separator:aa2c57c65c341869c5f874d469109377b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab82bf14b8199b1979e2e5b5f39789d7c" id="r_ab82bf14b8199b1979e2e5b5f39789d7c"><td class="memItemLeft" valign="top">};&#160;</td><td class="memItemRight" valign="bottom">&#160;</td><td class="memItemRight" valign="bottom"></td></tr>
<tr class="separator:ab82bf14b8199b1979e2e5b5f39789d7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a6d3ff02506d0806cb7c3f33bad0a36cb" id="r_a6d3ff02506d0806cb7c3f33bad0a36cb"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structripple_1_1EitherAmount.html#a6d3ff02506d0806cb7c3f33bad0a36cb">operator&lt;&lt;</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> &amp;stream, <a class="el" href="structripple_1_1EitherAmount.html">EitherAmount</a> const &amp;amt)</td></tr>
<tr class="separator:a6d3ff02506d0806cb7c3f33bad0a36cb"><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 class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00040">40</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae5e0f75d87995c51ae001467347b3a79" name="ae5e0f75d87995c51ae001467347b3a79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5e0f75d87995c51ae001467347b3a79">&#9670;&#160;</a></span>EitherAmount() <span class="overload">[1/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::EitherAmount::EitherAmount </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ac0cabee8cba81ca1809d86039c7d2be8" name="ac0cabee8cba81ca1809d86039c7d2be8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0cabee8cba81ca1809d86039c7d2be8">&#9670;&#160;</a></span>EitherAmount() <span class="overload">[2/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::EitherAmount::EitherAmount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1IOUAmount.html">IOUAmount</a> const &amp;&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00054">54</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<a id="a1e4271999d64bd0fc9d844d8377e73a1" name="a1e4271999d64bd0fc9d844d8377e73a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e4271999d64bd0fc9d844d8377e73a1">&#9670;&#160;</a></span>EitherAmount() <span class="overload">[3/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::EitherAmount::EitherAmount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a> const &amp;&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00063">63</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<a id="ac67ad3ad911ab8b89160c5b5e41c6af5" name="ac67ad3ad911ab8b89160c5b5e41c6af5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac67ad3ad911ab8b89160c5b5e41c6af5">&#9670;&#160;</a></span>EitherAmount() <span class="overload">[4/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::EitherAmount::EitherAmount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structripple_1_1AmountSpec.html">AmountSpec</a> const &amp;&#160;</td>
<td class="paramname"><em>a</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00073">73</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Friends And Related Symbol Documentation</h2>
<a id="a6d3ff02506d0806cb7c3f33bad0a36cb" name="a6d3ff02506d0806cb7c3f33bad0a36cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d3ff02506d0806cb7c3f33bad0a36cb">&#9670;&#160;</a></span>operator&lt;&lt;</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> &amp; operator&lt;&lt; </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a> &amp;&#160;</td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structripple_1_1EitherAmount.html">EitherAmount</a> const &amp;&#160;</td>
<td class="paramname"><em>amt</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00085">85</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aeb918509d735ed47b9236190b9538a28" name="aeb918509d735ed47b9236190b9538a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb918509d735ed47b9236190b9538a28">&#9670;&#160;</a></span>native</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ripple::EitherAmount::native = false</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00043">43</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<a id="a25adf797dae38999e3904a946410c405" name="a25adf797dae38999e3904a946410c405"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25adf797dae38999e3904a946410c405">&#9670;&#160;</a></span>iou</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1IOUAmount.html">IOUAmount</a> ripple::EitherAmount::iou = {}</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00048">48</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<a id="aec8b0d37cced4ef89d51eaff7fc8e6f8" name="aec8b0d37cced4ef89d51eaff7fc8e6f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec8b0d37cced4ef89d51eaff7fc8e6f8">&#9670;&#160;</a></span>xrp</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a> ripple::EitherAmount::xrp</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="AmountSpec_8h_source.html#l00049">49</a> of file <a class="el" href="AmountSpec_8h_source.html">AmountSpec.h</a>.</p>
</div>
</div>
<a id="ab82bf14b8199b1979e2e5b5f39789d7c" name="ab82bf14b8199b1979e2e5b5f39789d7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab82bf14b8199b1979e2e5b5f39789d7c">&#9670;&#160;</a></span>[union]</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">union { ... } <a class="el" href="structripple_1_1EitherAmount.html">ripple::EitherAmount</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>