mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
320 lines
58 KiB
HTML
320 lines
58 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: PaymentSandbox.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&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&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&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_f732c880ba22363365bbd638a4cc259a.html">ledger</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">PaymentSandbox.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_LEDGER_PAYMENTSANDBOX_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_LEDGER_PAYMENTSANDBOX_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 <xrpl/ledger/RawView.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpl/ledger/Sandbox.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <xrpl/ledger/detail/ApplyViewBase.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <xrpl/protocol/AccountID.h></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 <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/map.html">map</a>></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">namespace </span>detail {</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment">// VFALCO TODO Inline this implementation</span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment">// into the PaymentSandbox class itself</span></div>
|
|
<div class="foldopen" id="foldopen00017" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html"> 17</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1detail_1_1DeferredCredits.html">DeferredCredits</a></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span>{</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">public</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="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html"> 20</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html">Adjustment</a></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> {</div>
|
|
<div class="foldopen" id="foldopen00022" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a1a24caade3fed56371738f42fd84f796"> 22</a></span> <a class="code hl_function" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a1a24caade3fed56371738f42fd84f796">Adjustment</a>(<a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& d, <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& c, <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& b)</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> : <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7">debits</a>(d), <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73">credits</a>(c), <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594">origBalance</a>(b)</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> {</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7"> 26</a></span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7">debits</a>;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73"> 27</a></span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73">credits</a>;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594"> 28</a></span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594">origBalance</a>;</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="comment">// Get the adjustments for the balance between main and other.</span></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="comment">// Returns the debits, credits and the original balance</span></div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Adjustment></a></div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a008844cf1b2399cb2e46b67d84071437">adjustments</a>(</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& main,</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& other,</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_class" href="classripple_1_1base__uint.html">Currency</a> <span class="keyword">const</span>& currency) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a0a107d152ac39c43626efed1fd11036c">credit</a>(</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& sender,</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& receiver,</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount,</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& preCreditSenderBalance);</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> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a4bd5dda44034352f09c578bdea51726d">ownerCount</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& <span class="keywordtype">id</span>, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> cur, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> next);</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// Get the adjusted owner count. Since DeferredCredits is meant to be used</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// in payments, and payments only decrease owner counts, return the max</span></div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="comment">// remembered owner count.</span></div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<std::uint32_t></a></div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a4bd5dda44034352f09c578bdea51726d">ownerCount</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& <span class="keywordtype">id</span>) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a39a6fe93bcff2c0449cdcc9dd7cad846">apply</a>(<a class="code hl_class" href="classripple_1_1detail_1_1DeferredCredits.html">DeferredCredits</a>& to);</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// lowAccount, highAccount</span></div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a9525acc79a4b9f0a891f88f404dcef36"> 60</a></span> <span class="keyword">using </span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">Key</a> = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple<AccountID, AccountID, Currency></a>;</div>
|
|
<div class="foldopen" id="foldopen00061" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html"> 61</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html">Value</a></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"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ab96013db12930cf70fb306ce103df882"> 63</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ab96013db12930cf70fb306ce103df882">Value</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ae04ac7b9857b9fcee01601d3afaad965"> 65</a></span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ae04ac7b9857b9fcee01601d3afaad965">lowAcctCredits</a>;</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a0da27b4df95bca65a210693b70914cb5"> 66</a></span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a0da27b4df95bca65a210693b70914cb5">highAcctCredits</a>;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a5bc03d401b63989f81de875d1e0482a8"> 67</a></span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <a class="code hl_variable" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a5bc03d401b63989f81de875d1e0482a8">lowAcctOrigBalance</a>;</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">Key</a></div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a91901f7b4ab89470f7735e1e7029a9b9">makeKey</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& a1, <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& a2, <a class="code hl_class" href="classripple_1_1base__uint.html">Currency</a> <span class="keyword">const</span>& c);</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a79e2fe0650e76cf3c71d6c6e1e5ae31c"> 73</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<Key, Value></a> <a class="code hl_variable" href="classripple_1_1detail_1_1DeferredCredits.html#a79e2fe0650e76cf3c71d6c6e1e5ae31c">credits_</a>;</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a3b06a50d03f96e8c0bf2625d26773204"> 74</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<AccountID, std::uint32_t></a> <a class="code hl_variable" href="classripple_1_1detail_1_1DeferredCredits.html#a3b06a50d03f96e8c0bf2625d26773204">ownerCounts_</a>;</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span>} <span class="comment">// namespace detail</span></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="foldopen" id="foldopen00093" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html"> 93</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> final : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1detail_1_1ApplyViewBase.html">detail::ApplyViewBase</a></div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span>{</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02"> 96</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02">PaymentSandbox</a>() = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae02b1332fe55c307074866a9c3b15546"> 97</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#ae02b1332fe55c307074866a9c3b15546">PaymentSandbox</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a963d6452986809d74d605c5c9c591b54"> 99</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a963d6452986809d74d605c5c9c591b54">operator=</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae7bec5d7c9093daeaee9b4e83e66b49b"> 101</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#ae7bec5d7c9093daeaee9b4e83e66b49b">operator=</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#aec1550eb021dc24fc76fdfa320f7c040"> 103</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#aec1550eb021dc24fc76fdfa320f7c040">PaymentSandbox</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&&) = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
|
|
<div class="foldopen" id="foldopen00105" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ab7631f4e5085e026d8c8fd65aa9b1533"> 105</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#ab7631f4e5085e026d8c8fd65aa9b1533">PaymentSandbox</a>(<a class="code hl_class" href="classripple_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>* base, <a class="code hl_enumeration" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> <a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>)</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> : <a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, <a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>)</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> {</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
|
|
<div class="foldopen" id="foldopen00110" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a6859b772e9f03d8f1bb690de83055e22"> 110</a></span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a6859b772e9f03d8f1bb690de83055e22">PaymentSandbox</a>(<a class="code hl_class" href="classripple_1_1ApplyView.html">ApplyView</a> <span class="keyword">const</span>* base) : <a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, base-><a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>())</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="comment">// VFALCO If we are constructing on top of a PaymentSandbox,</span></div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="comment">// or a PaymentSandbox-derived class, we MUST go through</span></div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="comment">// one of these constructors or invariants will be broken.</span></div>
|
|
<div class="foldopen" id="foldopen00128" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae15058fe338f8aa06837f54c21a918d0"> 128</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#ae15058fe338f8aa06837f54c21a918d0">PaymentSandbox</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>* base)</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> : <a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, base-><a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>()), <a class="code hl_variable" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ps_</a>(base)</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> {</div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
|
|
<div class="foldopen" id="foldopen00133" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#adb0094cac0964f9fed3e050364897648"> 133</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#adb0094cac0964f9fed3e050364897648">PaymentSandbox</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>* base)</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> : <a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, base-><a class="code hl_function" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>()), <a class="code hl_variable" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ps_</a>(base)</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> {</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a></div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a96457b37722d895c585bcd260dd08a0f">balanceHook</a>(</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& account,</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& issuer,</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount) <span class="keyword">const override</span>;</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a651f7b9013b9de728969272c3b1e8712">creditHook</a>(</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& from,</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& to,</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount,</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& preCreditBalance) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#abab734ed913c11e2dbca4b1d33634535">adjustOwnerCountHook</a>(</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& account,</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> cur,</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> next) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a0e77b6bdc540075e1c8e5a6f447c4b13">ownerCountHook</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& account, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> count)</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keyword">const override</span>;</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a69d4b79f512abb2d67e3b3fefa76008b">apply</a>(<a class="code hl_class" href="classripple_1_1RawView.html">RawView</a>& to);</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a69d4b79f512abb2d67e3b3fefa76008b">apply</a>(<a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>& to);</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="comment">// Return a map of balance changes on trust lines. The low account is the</span></div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="comment">// first account in the key. If the two accounts are equal, the map contains</span></div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="comment">// the total changes in currency regardless of issuer. This is useful to get</span></div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="comment">// the total change in XRP balances.</span></div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<std::tuple<AccountID, AccountID, Currency></a>, <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</a>></div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a25e9ad9e98efcc16451f8f04db41560e">balanceChanges</a>(<a class="code hl_class" href="classripple_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>& view) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a09c1937ae05634dd939c0e0b674119fd">xrpDestroyed</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a7d6e88cbd8903d7f96cf9ff8a0e143b7"> 187</a></span> <a class="code hl_class" href="classripple_1_1detail_1_1DeferredCredits.html">detail::DeferredCredits</a> <a class="code hl_variable" href="classripple_1_1PaymentSandbox.html#a7d6e88cbd8903d7f96cf9ff8a0e143b7">tab_</a>;</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc"> 188</a></span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>* <a class="code hl_variable" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ps_</a> = <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span>} <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyView_html"><div class="ttname"><a href="classripple_1_1ApplyView.html">ripple::ApplyView</a></div><div class="ttdoc">Writeable view to a ledger, for applying a transaction.</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00123">ApplyView.h:124</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html">ripple::PaymentSandbox</a></div><div class="ttdoc">A wrapper which makes credits unavailable to balances.</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00093">PaymentSandbox.h:94</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a09c1937ae05634dd939c0e0b674119fd"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a09c1937ae05634dd939c0e0b674119fd">ripple::PaymentSandbox::xrpDestroyed</a></div><div class="ttdeci">XRPAmount xrpDestroyed() const</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00375">PaymentSandbox.cpp:375</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a0e77b6bdc540075e1c8e5a6f447c4b13"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a0e77b6bdc540075e1c8e5a6f447c4b13">ripple::PaymentSandbox::ownerCountHook</a></div><div class="ttdeci">std::uint32_t ownerCountHook(AccountID const &account, std::uint32_t count) const override</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00203">PaymentSandbox.cpp:203</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a25e9ad9e98efcc16451f8f04db41560e"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a25e9ad9e98efcc16451f8f04db41560e">ripple::PaymentSandbox::balanceChanges</a></div><div class="ttdeci">std::map< std::tuple< AccountID, AccountID, Currency >, STAmount > balanceChanges(ReadView const &view) const</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00250">PaymentSandbox.cpp:250</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a651f7b9013b9de728969272c3b1e8712"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a651f7b9013b9de728969272c3b1e8712">ripple::PaymentSandbox::creditHook</a></div><div class="ttdeci">void creditHook(AccountID const &from, AccountID const &to, STAmount const &amount, STAmount const &preCreditBalance) override</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00216">PaymentSandbox.cpp:216</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a6859b772e9f03d8f1bb690de83055e22"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a6859b772e9f03d8f1bb690de83055e22">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox(ApplyView const *base)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00110">PaymentSandbox.h:110</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a69d4b79f512abb2d67e3b3fefa76008b"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a69d4b79f512abb2d67e3b3fefa76008b">ripple::PaymentSandbox::apply</a></div><div class="ttdeci">void apply(RawView &to)</div><div class="ttdoc">Apply changes to base view.</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00235">PaymentSandbox.cpp:235</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a7d6e88cbd8903d7f96cf9ff8a0e143b7"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a7d6e88cbd8903d7f96cf9ff8a0e143b7">ripple::PaymentSandbox::tab_</a></div><div class="ttdeci">detail::DeferredCredits tab_</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00187">PaymentSandbox.h:187</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a963d6452986809d74d605c5c9c591b54"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a963d6452986809d74d605c5c9c591b54">ripple::PaymentSandbox::operator=</a></div><div class="ttdeci">PaymentSandbox & operator=(PaymentSandbox &&)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_a96457b37722d895c585bcd260dd08a0f"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#a96457b37722d895c585bcd260dd08a0f">ripple::PaymentSandbox::balanceHook</a></div><div class="ttdeci">STAmount balanceHook(AccountID const &account, AccountID const &issuer, STAmount const &amount) const override</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00153">PaymentSandbox.cpp:153</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_ab1053f94b2865ac786fac9f780f4cb02"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox()=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_ab7631f4e5085e026d8c8fd65aa9b1533"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#ab7631f4e5085e026d8c8fd65aa9b1533">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox(ReadView const *base, ApplyFlags flags)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00105">PaymentSandbox.h:105</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_abab734ed913c11e2dbca4b1d33634535"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#abab734ed913c11e2dbca4b1d33634535">ripple::PaymentSandbox::adjustOwnerCountHook</a></div><div class="ttdeci">void adjustOwnerCountHook(AccountID const &account, std::uint32_t cur, std::uint32_t next) override</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00226">PaymentSandbox.cpp:226</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_adb0094cac0964f9fed3e050364897648"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#adb0094cac0964f9fed3e050364897648">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox(PaymentSandbox *base)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00133">PaymentSandbox.h:133</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_ae02b1332fe55c307074866a9c3b15546"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#ae02b1332fe55c307074866a9c3b15546">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox(PaymentSandbox const &)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_ae15058fe338f8aa06837f54c21a918d0"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#ae15058fe338f8aa06837f54c21a918d0">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox(PaymentSandbox const *base)</div><div class="ttdoc">Construct on top of existing PaymentSandbox.</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00128">PaymentSandbox.h:128</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_ae78206dbf89c2dd73869fe9658daa1bc"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ripple::PaymentSandbox::ps_</a></div><div class="ttdeci">PaymentSandbox const * ps_</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00188">PaymentSandbox.h:188</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_ae7bec5d7c9093daeaee9b4e83e66b49b"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#ae7bec5d7c9093daeaee9b4e83e66b49b">ripple::PaymentSandbox::operator=</a></div><div class="ttdeci">PaymentSandbox & operator=(PaymentSandbox const &)=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_aec1550eb021dc24fc76fdfa320f7c040"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#aec1550eb021dc24fc76fdfa320f7c040">ripple::PaymentSandbox::PaymentSandbox</a></div><div class="ttdeci">PaymentSandbox(PaymentSandbox &&)=default</div></div>
|
|
<div class="ttc" id="aclassripple_1_1RawView_html"><div class="ttname"><a href="classripple_1_1RawView.html">ripple::RawView</a></div><div class="ttdoc">Interface for ledger entry changes.</div><div class="ttdef"><b>Definition</b> <a href="RawView_8h_source.html#l00014">RawView.h:15</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ReadView_html"><div class="ttname"><a href="classripple_1_1ReadView.html">ripple::ReadView</a></div><div class="ttdoc">A view into a ledger.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00031">ReadView.h:32</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STAmount_html"><div class="ttname"><a href="classripple_1_1STAmount.html">ripple::STAmount</a></div><div class="ttdef"><b>Definition</b> <a href="STAmount_8h_source.html#l00030">STAmount.h:31</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition</b> <a href="XRPAmount_8h_source.html#l00020">XRPAmount.h:24</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint< 160, detail::AccountIDTag ></a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html">ripple::detail::ApplyViewBase</a></div><div class="ttdef"><b>Definition</b> <a href="ApplyViewBase_8h_source.html#l00012">ApplyViewBase.h:13</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html_a18d0784d266ce17d5d25df3c13ce31aa"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ripple::detail::ApplyViewBase::ApplyViewBase</a></div><div class="ttdeci">ApplyViewBase()=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html_ad615aed650814602031c446241bbca10"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">ripple::detail::ApplyViewBase::flags</a></div><div class="ttdeci">ApplyFlags flags() const override</div><div class="ttdoc">Returns the tx apply flags.</div><div class="ttdef"><b>Definition</b> <a href="ApplyViewBase_8cpp_source.html#l00102">ApplyViewBase.cpp:102</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html">ripple::detail::DeferredCredits</a></div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00017">PaymentSandbox.h:18</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a008844cf1b2399cb2e46b67d84071437"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a008844cf1b2399cb2e46b67d84071437">ripple::detail::DeferredCredits::adjustments</a></div><div class="ttdeci">std::optional< Adjustment > adjustments(AccountID const &main, AccountID const &other, Currency const &currency) const</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00094">PaymentSandbox.cpp:94</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a0a107d152ac39c43626efed1fd11036c"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a0a107d152ac39c43626efed1fd11036c">ripple::detail::DeferredCredits::credit</a></div><div class="ttdeci">void credit(AccountID const &sender, AccountID const &receiver, STAmount const &amount, STAmount const &preCreditSenderBalance)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00023">PaymentSandbox.cpp:23</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a39a6fe93bcff2c0449cdcc9dd7cad846"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a39a6fe93bcff2c0449cdcc9dd7cad846">ripple::detail::DeferredCredits::apply</a></div><div class="ttdeci">void apply(DeferredCredits &to)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00123">PaymentSandbox.cpp:123</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a3b06a50d03f96e8c0bf2625d26773204"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a3b06a50d03f96e8c0bf2625d26773204">ripple::detail::DeferredCredits::ownerCounts_</a></div><div class="ttdeci">std::map< AccountID, std::uint32_t > ownerCounts_</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00074">PaymentSandbox.h:74</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a4bd5dda44034352f09c578bdea51726d"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a4bd5dda44034352f09c578bdea51726d">ripple::detail::DeferredCredits::ownerCount</a></div><div class="ttdeci">void ownerCount(AccountID const &id, std::uint32_t cur, std::uint32_t next)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00069">PaymentSandbox.cpp:69</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a79e2fe0650e76cf3c71d6c6e1e5ae31c"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a79e2fe0650e76cf3c71d6c6e1e5ae31c">ripple::detail::DeferredCredits::credits_</a></div><div class="ttdeci">std::map< Key, Value > credits_</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00073">PaymentSandbox.h:73</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1DeferredCredits_html_a91901f7b4ab89470f7735e1e7029a9b9"><div class="ttname"><a href="classripple_1_1detail_1_1DeferredCredits.html#a91901f7b4ab89470f7735e1e7029a9b9">ripple::detail::DeferredCredits::makeKey</a></div><div class="ttdeci">static Key makeKey(AccountID const &a1, AccountID const &a2, Currency const &c)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8cpp_source.html#l00011">PaymentSandbox.cpp:11</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="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/map.html">map</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</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="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6e"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ripple::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00011">ApplyView.h:11</a></div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Adjustment_html"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html">ripple::detail::DeferredCredits::Adjustment</a></div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00020">PaymentSandbox.h:21</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Adjustment_html_a1a24caade3fed56371738f42fd84f796"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a1a24caade3fed56371738f42fd84f796">ripple::detail::DeferredCredits::Adjustment::Adjustment</a></div><div class="ttdeci">Adjustment(STAmount const &d, STAmount const &c, STAmount const &b)</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00022">PaymentSandbox.h:22</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Adjustment_html_a22232061daeba00a18b3c6344a612b73"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73">ripple::detail::DeferredCredits::Adjustment::credits</a></div><div class="ttdeci">STAmount credits</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00027">PaymentSandbox.h:27</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Adjustment_html_a71f19ff3222e33b81b15b8f4413e7aa7"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7">ripple::detail::DeferredCredits::Adjustment::debits</a></div><div class="ttdeci">STAmount debits</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00026">PaymentSandbox.h:26</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Adjustment_html_ad3c2a90298850c6c6106cac96d285594"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594">ripple::detail::DeferredCredits::Adjustment::origBalance</a></div><div class="ttdeci">STAmount origBalance</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00028">PaymentSandbox.h:28</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Value_html"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html">ripple::detail::DeferredCredits::Value</a></div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00061">PaymentSandbox.h:62</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Value_html_a0da27b4df95bca65a210693b70914cb5"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a0da27b4df95bca65a210693b70914cb5">ripple::detail::DeferredCredits::Value::highAcctCredits</a></div><div class="ttdeci">STAmount highAcctCredits</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00066">PaymentSandbox.h:66</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Value_html_a5bc03d401b63989f81de875d1e0482a8"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a5bc03d401b63989f81de875d1e0482a8">ripple::detail::DeferredCredits::Value::lowAcctOrigBalance</a></div><div class="ttdeci">STAmount lowAcctOrigBalance</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00067">PaymentSandbox.h:67</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Value_html_ab96013db12930cf70fb306ce103df882"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ab96013db12930cf70fb306ce103df882">ripple::detail::DeferredCredits::Value::Value</a></div><div class="ttdeci">Value()=default</div></div>
|
|
<div class="ttc" id="astructripple_1_1detail_1_1DeferredCredits_1_1Value_html_ae04ac7b9857b9fcee01601d3afaad965"><div class="ttname"><a href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ae04ac7b9857b9fcee01601d3afaad965">ripple::detail::DeferredCredits::Value::lowAcctCredits</a></div><div class="ttdeci">STAmount lowAcctCredits</div><div class="ttdef"><b>Definition</b> <a href="PaymentSandbox_8h_source.html#l00065">PaymentSandbox.h:65</a></div></div>
|
|
<div class="ttc" id="atuple_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <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>
|