Files
rippled/Rate_8h_source.html
2025-12-11 08:55:10 -08:00

199 lines
23 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: Rate.h Source File</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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- 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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_8d04e3c0b58cad28d7755ed462d1b6c0.html">protocol</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">Rate.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef XRPL_PROTOCOL_RATE_H_INCLUDED</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_PROTOCOL_RATE_H_INCLUDED</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;xrpl/beast/utility/instrumentation.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;xrpl/protocol/STAmount.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;boost/operators.hpp&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a>&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/ostream.html">ostream</a>&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="foldopen" id="foldopen00020" data-start="{" data-end="};">
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="structxrpl_1_1Rate.html"> 20</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structxrpl_1_1Rate.html">Rate</a> : <span class="keyword">private</span> boost::totally_ordered&lt;Rate&gt;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>{</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="structxrpl_1_1Rate.html#a6ec5042462b69ef01e253ca885f3066e"> 22</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <a class="code hl_variable" href="structxrpl_1_1Rate.html#a6ec5042462b69ef01e253ca885f3066e">value</a>;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structxrpl_1_1Rate.html#aab66fc58fd3598d0a2e42f1e294fac5f"> 24</a></span> <a class="code hl_function" href="structxrpl_1_1Rate.html#aab66fc58fd3598d0a2e42f1e294fac5f">Rate</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="foldopen" id="foldopen00026" data-start="{" data-end="}">
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structxrpl_1_1Rate.html#ac9f7b7f23264a79a29829e8d82d0c620"> 26</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structxrpl_1_1Rate.html#ac9f7b7f23264a79a29829e8d82d0c620">Rate</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> rate) : <a class="code hl_variable" href="structxrpl_1_1Rate.html#a6ec5042462b69ef01e253ca885f3066e">value</a>(rate)</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> }</div>
</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span>};</div>
</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">inline</span> <span class="keywordtype">bool</span></div>
<div class="foldopen" id="foldopen00032" data-start="{" data-end="}">
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a02530f625464356bee1dcacd0b6afe89"> 32</a></span><a class="code hl_function" href="namespacexrpl.html#a6f18cc68977abb1569062f2baad2d13b">operator==</a>(<a class="code hl_struct" href="structxrpl_1_1Rate.html">Rate</a> <span class="keyword">const</span>&amp; lhs, <a class="code hl_struct" href="structxrpl_1_1Rate.html">Rate</a> <span class="keyword">const</span>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span>{</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">return</span> lhs.value == rhs.value;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>}</div>
</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="foldopen" id="foldopen00037" data-start="{" data-end="}">
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="namespacexrpl.html#ad71554385b8626283a4480bf5e4cc436"> 37</a></span><span class="keyword">inline</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><a class="code hl_function" href="namespacexrpl.html#a0a3cfcd2feb63c8382a773bc061dc7a2">operator&lt;</a>(<a class="code hl_struct" href="structxrpl_1_1Rate.html">Rate</a> <span class="keyword">const</span>&amp; lhs, <a class="code hl_struct" href="structxrpl_1_1Rate.html">Rate</a> <span class="keyword">const</span>&amp; rhs) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>{</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">return</span> lhs.value &lt; rhs.value;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>}</div>
</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="}">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a1f423e2aaf6dfa1912cdfce77ce6824f"> 43</a></span><span class="keyword">inline</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><a class="code hl_function" href="namespacexrpl.html#a588b222bb4a0e8eb023bcb778d479cf9">operator&lt;&lt;</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp; os, <a class="code hl_struct" href="structxrpl_1_1Rate.html">Rate</a> <span class="keyword">const</span>&amp; rate)</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span>{</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> os &lt;&lt; rate.<a class="code hl_variable" href="structxrpl_1_1Rate.html#a6ec5042462b69ef01e253ca885f3066e">value</a>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> os;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>}</div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>STAmount</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span><a class="code hl_function" href="namespacexrpl.html#a63a3223bbf81dbd09717eb04d45d58cf">multiply</a>(STAmount <span class="keyword">const</span>&amp; amount, Rate <span class="keyword">const</span>&amp; rate);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>STAmount</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><a class="code hl_function" href="namespacexrpl.html#a9d3edaf31e0a6d3f577de28c01b5bc30">multiplyRound</a>(STAmount <span class="keyword">const</span>&amp; amount, Rate <span class="keyword">const</span>&amp; rate, <span class="keywordtype">bool</span> roundUp);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span>STAmount</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><a class="code hl_function" href="namespacexrpl.html#a9d3edaf31e0a6d3f577de28c01b5bc30">multiplyRound</a>(</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> STAmount <span class="keyword">const</span>&amp; amount,</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> Rate <span class="keyword">const</span>&amp; rate,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> Asset <span class="keyword">const</span>&amp; asset,</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordtype">bool</span> roundUp);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>STAmount</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><a class="code hl_function" href="namespacexrpl.html#a09e2c009495835877a485de7e8bdc7fb">divide</a>(STAmount <span class="keyword">const</span>&amp; amount, Rate <span class="keyword">const</span>&amp; rate);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span>STAmount</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span><a class="code hl_function" href="namespacexrpl.html#aeb09ae3afa06ae45d208d89e735e21c3">divideRound</a>(STAmount <span class="keyword">const</span>&amp; amount, Rate <span class="keyword">const</span>&amp; rate, <span class="keywordtype">bool</span> roundUp);</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>STAmount</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><a class="code hl_function" href="namespacexrpl.html#aeb09ae3afa06ae45d208d89e735e21c3">divideRound</a>(</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> STAmount <span class="keyword">const</span>&amp; amount,</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> Rate <span class="keyword">const</span>&amp; rate,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> Asset <span class="keyword">const</span>&amp; asset,</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordtype">bool</span> roundUp);</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keyword">namespace </span>nft {</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>Rate</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><a class="code hl_function" href="namespacexrpl_1_1nft.html#af7fff4194ca6c2345cf1e6a306f951d1">transferFeeAsRate</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> fee);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span>} <span class="comment">// namespace nft</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="keyword">extern</span> Rate <span class="keyword">const</span> <a class="code hl_variable" href="namespacexrpl.html#af8a15fd8af86039685935558c047a0fa">parityRate</a>;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span>} <span class="comment">// namespace xrpl</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a></div></div>
<div class="ttc" id="acstdint_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdint.html">cstdint</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<div class="ttc" id="anamespacexrpl_1_1nft_html_af7fff4194ca6c2345cf1e6a306f951d1"><div class="ttname"><a href="namespacexrpl_1_1nft.html#af7fff4194ca6c2345cf1e6a306f951d1">xrpl::nft::transferFeeAsRate</a></div><div class="ttdeci">Rate transferFeeAsRate(std::uint16_t fee)</div><div class="ttdoc">Given a transfer fee (in basis points) convert it to a transfer rate.</div><div class="ttdef"><b>Definition</b> <a href="Rate2_8cpp_source.html#l00026">Rate2.cpp:26</a></div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a09e2c009495835877a485de7e8bdc7fb"><div class="ttname"><a href="namespacexrpl.html#a09e2c009495835877a485de7e8bdc7fb">xrpl::divide</a></div><div class="ttdeci">STAmount divide(STAmount const &amp;amount, Rate const &amp;rate)</div><div class="ttdef"><b>Definition</b> <a href="Rate2_8cpp_source.html#l00074">Rate2.cpp:74</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a0a3cfcd2feb63c8382a773bc061dc7a2"><div class="ttname"><a href="namespacexrpl.html#a0a3cfcd2feb63c8382a773bc061dc7a2">xrpl::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(Slice const &amp;lhs, Slice const &amp;rhs) noexcept</div><div class="ttdef"><b>Definition</b> <a href="Slice_8h_source.html#l00203">Slice.h:204</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a588b222bb4a0e8eb023bcb778d479cf9"><div class="ttname"><a href="namespacexrpl.html#a588b222bb4a0e8eb023bcb778d479cf9">xrpl::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, base_uint&lt; Bits, Tag &gt; const &amp;u)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00627">base_uint.h:628</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a63a3223bbf81dbd09717eb04d45d58cf"><div class="ttname"><a href="namespacexrpl.html#a63a3223bbf81dbd09717eb04d45d58cf">xrpl::multiply</a></div><div class="ttdeci">STAmount multiply(STAmount const &amp;amount, Rate const &amp;rate)</div><div class="ttdef"><b>Definition</b> <a href="Rate2_8cpp_source.html#l00034">Rate2.cpp:34</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a6f18cc68977abb1569062f2baad2d13b"><div class="ttname"><a href="namespacexrpl.html#a6f18cc68977abb1569062f2baad2d13b">xrpl::operator==</a></div><div class="ttdeci">constexpr bool operator==(base_uint&lt; Bits, Tag &gt; const &amp;lhs, base_uint&lt; Bits, Tag &gt; const &amp;rhs)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00566">base_uint.h:566</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a9d3edaf31e0a6d3f577de28c01b5bc30"><div class="ttname"><a href="namespacexrpl.html#a9d3edaf31e0a6d3f577de28c01b5bc30">xrpl::multiplyRound</a></div><div class="ttdeci">STAmount multiplyRound(STAmount const &amp;amount, Rate const &amp;rate, bool roundUp)</div><div class="ttdef"><b>Definition</b> <a href="Rate2_8cpp_source.html#l00045">Rate2.cpp:45</a></div></div>
<div class="ttc" id="anamespacexrpl_html_aeb09ae3afa06ae45d208d89e735e21c3"><div class="ttname"><a href="namespacexrpl.html#aeb09ae3afa06ae45d208d89e735e21c3">xrpl::divideRound</a></div><div class="ttdeci">STAmount divideRound(STAmount const &amp;amount, Rate const &amp;rate, bool roundUp)</div><div class="ttdef"><b>Definition</b> <a href="Rate2_8cpp_source.html#l00085">Rate2.cpp:85</a></div></div>
<div class="ttc" id="anamespacexrpl_html_af8a15fd8af86039685935558c047a0fa"><div class="ttname"><a href="namespacexrpl.html#af8a15fd8af86039685935558c047a0fa">xrpl::parityRate</a></div><div class="ttdeci">Rate const parityRate</div><div class="ttdoc">A transfer rate signifying a 1:1 exchange.</div></div>
<div class="ttc" id="aostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/ostream.html">ostream</a></div></div>
<div class="ttc" id="astructxrpl_1_1Rate_html"><div class="ttname"><a href="structxrpl_1_1Rate.html">xrpl::Rate</a></div><div class="ttdoc">Represents a transfer rate.</div><div class="ttdef"><b>Definition</b> <a href="Rate_8h_source.html#l00020">Rate.h:21</a></div></div>
<div class="ttc" id="astructxrpl_1_1Rate_html_a6ec5042462b69ef01e253ca885f3066e"><div class="ttname"><a href="structxrpl_1_1Rate.html#a6ec5042462b69ef01e253ca885f3066e">xrpl::Rate::value</a></div><div class="ttdeci">std::uint32_t value</div><div class="ttdef"><b>Definition</b> <a href="Rate_8h_source.html#l00022">Rate.h:22</a></div></div>
<div class="ttc" id="astructxrpl_1_1Rate_html_aab66fc58fd3598d0a2e42f1e294fac5f"><div class="ttname"><a href="structxrpl_1_1Rate.html#aab66fc58fd3598d0a2e42f1e294fac5f">xrpl::Rate::Rate</a></div><div class="ttdeci">Rate()=delete</div></div>
<div class="ttc" id="astructxrpl_1_1Rate_html_ac9f7b7f23264a79a29829e8d82d0c620"><div class="ttname"><a href="structxrpl_1_1Rate.html#ac9f7b7f23264a79a29829e8d82d0c620">xrpl::Rate::Rate</a></div><div class="ttdeci">Rate(std::uint32_t rate)</div><div class="ttdef"><b>Definition</b> <a href="Rate_8h_source.html#l00026">Rate.h:26</a></div></div>
</div><!-- fragment --></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>