mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 03:55:53 +00:00
309 lines
57 KiB
HTML
309 lines
57 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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_df67e75ba07853ef5c3c9d8f74c2f968.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 name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_LEDGER_PAYMENTSANDBOX_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_LEDGER_PAYMENTSANDBOX_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/ledger/RawView.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/ledger/Sandbox.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/ledger/detail/ApplyViewBase.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/protocol/AccountID.h></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</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 name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span>detail {</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// VFALCO TODO Inline this implementation</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">// into the PaymentSandbox class itself</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html"> 36</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1detail_1_1DeferredCredits.html">DeferredCredits</a></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html"> 39</a></span>  <span class="keyword">struct </span><a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html">Adjustment</a></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a1a24caade3fed56371738f42fd84f796"> 41</a></span>  <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a1a24caade3fed56371738f42fd84f796">Adjustment</a>(<a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& d, <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& c, <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& b)</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  : <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7">debits</a>(d), <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73">credits</a>(c), <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594">origBalance</a>(b)</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7"> 45</a></span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a71f19ff3222e33b81b15b8f4413e7aa7">debits</a>;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73"> 46</a></span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#a22232061daeba00a18b3c6344a612b73">credits</a>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594"> 47</a></span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html#ad3c2a90298850c6c6106cac96d285594">origBalance</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  };</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="comment">// Get the adjustments for the balance between main and other.</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// Returns the debits, credits and the original balance</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Adjustment></a></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a008844cf1b2399cb2e46b67d84071437">adjustments</a>(</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& main,</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& other,</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classripple_1_1base__uint.html">Currency</a> <span class="keyword">const</span>& currency) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a0a107d152ac39c43626efed1fd11036c">credit</a>(</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& sender,</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& receiver,</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount,</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& preCreditSenderBalance);</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a4bd5dda44034352f09c578bdea51726d">ownerCount</a>(<a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& <span class="keywordtype">id</span>, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> cur, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> next);</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// Get the adjusted owner count. Since DeferredCredits is meant to be used</span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// in payments, and payments only decrease owner counts, return the max</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// remembered owner count.</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<std::uint32_t></a></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a4bd5dda44034352f09c578bdea51726d">ownerCount</a>(<a class="code" 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 name="l00073"></a><span class="lineno"> 73</span>  </div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a39a6fe93bcff2c0449cdcc9dd7cad846">apply</a>(<a class="code" href="classripple_1_1detail_1_1DeferredCredits.html">DeferredCredits</a>& to);</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">// lowAccount, highAccount</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a9525acc79a4b9f0a891f88f404dcef36"> 79</a></span>  <span class="keyword">using</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">Key</a> = <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">std::tuple<AccountID, AccountID, Currency></a>;</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html"> 80</a></span>  <span class="keyword">struct </span><a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html">Value</a></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">explicit</span> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ab96013db12930cf70fb306ce103df882">Value</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ae04ac7b9857b9fcee01601d3afaad965"> 84</a></span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ae04ac7b9857b9fcee01601d3afaad965">lowAcctCredits</a>;</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a0da27b4df95bca65a210693b70914cb5"> 85</a></span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a0da27b4df95bca65a210693b70914cb5">highAcctCredits</a>;</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a5bc03d401b63989f81de875d1e0482a8"> 86</a></span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <a class="code" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#a5bc03d401b63989f81de875d1e0482a8">lowAcctOrigBalance</a>;</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  };</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/tuple.html">Key</a></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a91901f7b4ab89470f7735e1e7029a9b9">makeKey</a>(<a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& a1, <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& a2, <a class="code" href="classripple_1_1base__uint.html">Currency</a> <span class="keyword">const</span>& c);</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a79e2fe0650e76cf3c71d6c6e1e5ae31c"> 92</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<Key, Value></a> <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a79e2fe0650e76cf3c71d6c6e1e5ae31c">credits_</a>;</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a3b06a50d03f96e8c0bf2625d26773204"> 93</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<AccountID, std::uint32_t></a> <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html#a3b06a50d03f96e8c0bf2625d26773204">ownerCounts_</a>;</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> };</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> } <span class="comment">// namespace detail</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html"> 112</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> final : <span class="keyword">public</span> <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html">detail::ApplyViewBase</a></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> {</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02">PaymentSandbox</a>() = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02">PaymentSandbox</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#aa02fb6d94f19902c3443bf82e5f86706">operator=</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#aa02fb6d94f19902c3443bf82e5f86706">operator=</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02">PaymentSandbox</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&&) = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  </div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ab7631f4e5085e026d8c8fd65aa9b1533"> 124</a></span>  <a class="code" href="classripple_1_1PaymentSandbox.html#ab7631f4e5085e026d8c8fd65aa9b1533">PaymentSandbox</a>(<a class="code" href="classripple_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>* base, <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>)</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  : <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>)</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  {</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a6859b772e9f03d8f1bb690de83055e22"> 129</a></span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a6859b772e9f03d8f1bb690de83055e22">PaymentSandbox</a>(<a class="code" href="classripple_1_1ApplyView.html">ApplyView</a> <span class="keyword">const</span>* base) : <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, base-><a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>())</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  }</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">// VFALCO If we are constructing on top of a PaymentSandbox,</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// or a PaymentSandbox-derived class, we MUST go through</span></div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="comment">// one of these constructors or invariants will be broken.</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae15058fe338f8aa06837f54c21a918d0"> 147</a></span> <span class="comment"></span> <span class="keyword">explicit</span> <a class="code" href="classripple_1_1PaymentSandbox.html#ae15058fe338f8aa06837f54c21a918d0">PaymentSandbox</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>* base)</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  : <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, base-><a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>()), <a class="code" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ps_</a>(base)</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  {</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  }</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#adb0094cac0964f9fed3e050364897648"> 152</a></span>  <span class="keyword">explicit</span> <a class="code" href="classripple_1_1PaymentSandbox.html#adb0094cac0964f9fed3e050364897648">PaymentSandbox</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>* base)</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  : <a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#a18d0784d266ce17d5d25df3c13ce31aa">ApplyViewBase</a>(base, base-><a class="code" href="classripple_1_1detail_1_1ApplyViewBase.html#ad615aed650814602031c446241bbca10">flags</a>()), <a class="code" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ps_</a>(base)</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  {</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a96457b37722d895c585bcd260dd08a0f">balanceHook</a>(</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& account,</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& issuer,</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount) <span class="keyword">const override</span>;</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a651f7b9013b9de728969272c3b1e8712">creditHook</a>(</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& from,</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& to,</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount,</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& preCreditBalance) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#abab734ed913c11e2dbca4b1d33634535">adjustOwnerCountHook</a>(</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& account,</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> cur,</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="codeRef" 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 name="l00176"></a><span class="lineno"> 176</span>  </div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a0e77b6bdc540075e1c8e5a6f447c4b13">ownerCountHook</a>(<a class="code" href="classripple_1_1base__uint.html">AccountID</a> <span class="keyword">const</span>& account, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> count)</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">const override</span>;</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a69d4b79f512abb2d67e3b3fefa76008b">apply</a>(<a class="code" href="classripple_1_1RawView.html">RawView</a>& to);</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  </div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a69d4b79f512abb2d67e3b3fefa76008b">apply</a>(<a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>& to);</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="comment">// Return a map of balance changes on trust lines. The low account is the</span></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">// first account in the key. If the two accounts are equal, the map contains</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="comment">// the total changes in currency regardless of issuer. This is useful to get</span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="comment">// the total change in XRP balances.</span></div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/map.html">std::map<std::tuple<AccountID, AccountID, Currency></a>, <a class="code" href="classripple_1_1STAmount.html">STAmount</a>></div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a25e9ad9e98efcc16451f8f04db41560e">balanceChanges</a>(<a class="code" href="classripple_1_1ReadView.html">ReadView</a> <span class="keyword">const</span>& view) <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  </div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="classripple_1_1PaymentSandbox.html#a09c1937ae05634dd939c0e0b674119fd">xrpDestroyed</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  </div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a7d6e88cbd8903d7f96cf9ff8a0e143b7"> 206</a></span>  <a class="code" href="classripple_1_1detail_1_1DeferredCredits.html">detail::DeferredCredits</a> <a class="code" href="classripple_1_1PaymentSandbox.html#a7d6e88cbd8903d7f96cf9ff8a0e143b7">tab_</a>;</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc"> 207</a></span>  <a class="code" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a> <span class="keyword">const</span>* <a class="code" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc">ps_</a> = <span class="keyword">nullptr</span>;</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> };</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> } <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<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#l00045">PaymentSandbox.h:45</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#l00391">PaymentSandbox.cpp:391</a></div></div>
|
|
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</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#l00129">PaymentSandbox.h:129</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#l00112">PaymentSandbox.h:112</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#l00039">PaymentSandbox.h:39</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#l00113">PaymentSandbox.cpp:113</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="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#l00029">ApplyView.h:29</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 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#l00152">PaymentSandbox.h:152</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#l00245">PaymentSandbox.cpp:245</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#l00080">PaymentSandbox.h:80</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#l00269">PaymentSandbox.cpp:269</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#l00092">PaymentSandbox.h:92</a></div></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#l00134">ApplyView.h:134</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#l00046">PaymentSandbox.cpp:46</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_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_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#l00036">RawView.h:36</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#l00207">PaymentSandbox.h:207</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#l00085">PaymentSandbox.h:85</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#l00047">PaymentSandbox.h:47</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#l00046">PaymentSandbox.h:46</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#l00044">STAmount.h:44</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="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#l00142">PaymentSandbox.cpp:142</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="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#l00147">PaymentSandbox.h:147</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#l00206">PaymentSandbox.h:206</a></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#l00122">ApplyViewBase.cpp:122</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#l00135">ReadView.h:135</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</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#l00254">PaymentSandbox.cpp:254</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#l00041">PaymentSandbox.h:41</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#l00088">PaymentSandbox.cpp:88</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1PaymentSandbox_html_aa02fb6d94f19902c3443bf82e5f86706"><div class="ttname"><a href="classripple_1_1PaymentSandbox.html#aa02fb6d94f19902c3443bf82e5f86706">ripple::PaymentSandbox::operator=</a></div><div class="ttdeci">PaymentSandbox & operator=(PaymentSandbox &&)=delete</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#l00084">PaymentSandbox.h:84</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_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_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#l00086">PaymentSandbox.h:86</a></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#l00124">PaymentSandbox.h:124</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#l00034">PaymentSandbox.cpp:34</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#l00222">PaymentSandbox.cpp:222</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#l00032">ApplyViewBase.h:32</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#l00235">PaymentSandbox.cpp:235</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#l00093">PaymentSandbox.h:93</a></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#l00172">PaymentSandbox.cpp:172</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#l00036">PaymentSandbox.h:36</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#l00046">XRPAmount.h:46</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|