mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
339 lines
62 KiB
HTML
339 lines
62 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="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
|
<div class="line"><a id="l00003" 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 id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00006" 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 id="l00007" 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 id="l00008" 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 id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
|
<div class="line"><a id="l00010" 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 id="l00011" 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 id="l00012" 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 id="l00013" 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 id="l00014" 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 id="l00015" 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 id="l00016" 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 id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef RIPPLE_LEDGER_PAYMENTSANDBOX_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_LEDGER_PAYMENTSANDBOX_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <xrpl/ledger/RawView.h></span></div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <xrpl/ledger/Sandbox.h></span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <xrpl/ledger/detail/ApplyViewBase.h></span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <xrpl/protocol/AccountID.h></span></div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><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="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">namespace </span>detail {</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="comment">// VFALCO TODO Inline this implementation</span></div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="comment">// into the PaymentSandbox class itself</span></div>
|
|
<div class="foldopen" id="foldopen00036" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00036" 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 hl_class" href="classripple_1_1detail_1_1DeferredCredits.html">DeferredCredits</a></div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>{</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">public</span>:</div>
|
|
<div class="foldopen" id="foldopen00039" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00039" 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 hl_struct" href="structripple_1_1detail_1_1DeferredCredits_1_1Adjustment.html">Adjustment</a></div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> {</div>
|
|
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00041" 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 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="l00042" name="l00042"></a><span class="lineno"> 42</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="l00043" name="l00043"></a><span class="lineno"> 43</span> {</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00045" 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 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="l00046" 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 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="l00047" 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 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="l00048" name="l00048"></a><span class="lineno"> 48</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// Get the adjustments for the balance between main and other.</span></div>
|
|
<div class="line"><a id="l00051" 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 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<Adjustment></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#a008844cf1b2399cb2e46b67d84071437">adjustments</a>(</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</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="l00055" name="l00055"></a><span class="lineno"> 55</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="l00056" name="l00056"></a><span class="lineno"> 56</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="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="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_function" href="classripple_1_1detail_1_1DeferredCredits.html#a0a107d152ac39c43626efed1fd11036c">credit</a>(</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</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="l00061" name="l00061"></a><span class="lineno"> 61</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="l00062" name="l00062"></a><span class="lineno"> 62</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="l00063" name="l00063"></a><span class="lineno"> 63</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="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</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="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a id="l00068" 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 id="l00069" 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 id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// remembered owner count.</span></div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</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="l00072" name="l00072"></a><span class="lineno"> 72</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="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</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="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="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="comment">// lowAccount, highAccount</span></div>
|
|
<div class="line"><a id="l00079" 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="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="foldopen00080" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00080" 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 hl_struct" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html">Value</a></div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> {</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="structripple_1_1detail_1_1DeferredCredits_1_1Value.html#ab96013db12930cf70fb306ce103df882"> 82</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="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a id="l00084" 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 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="l00085" 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 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="l00086" 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 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="l00087" name="l00087"></a><span class="lineno"> 87</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</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="l00090" name="l00090"></a><span class="lineno"> 90</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="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a79e2fe0650e76cf3c71d6c6e1e5ae31c"> 92</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="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1DeferredCredits.html#a3b06a50d03f96e8c0bf2625d26773204"> 93</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="l00094" name="l00094"></a><span class="lineno"> 94</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span>} <span class="comment">// namespace detail</span></div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
|
<div class="foldopen" id="foldopen00112" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00112" 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 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="l00113" name="l00113"></a><span class="lineno"> 113</span>{</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ab1053f94b2865ac786fac9f780f4cb02"> 115</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="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae02b1332fe55c307074866a9c3b15546"> 116</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="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a963d6452986809d74d605c5c9c591b54"> 118</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="l00119" name="l00119"></a><span class="lineno"> 119</span> <a class="code hl_class" href="classripple_1_1PaymentSandbox.html">PaymentSandbox</a>&</div>
|
|
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae7bec5d7c9093daeaee9b4e83e66b49b"> 120</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="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
|
|
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#aec1550eb021dc24fc76fdfa320f7c040"> 122</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="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
|
|
<div class="foldopen" id="foldopen00124" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ab7631f4e5085e026d8c8fd65aa9b1533"> 124</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="l00125" name="l00125"></a><span class="lineno"> 125</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="l00126" name="l00126"></a><span class="lineno"> 126</span> {</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
|
|
<div class="foldopen" id="foldopen00129" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a6859b772e9f03d8f1bb690de83055e22"> 129</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="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="line"><a id="l00143" 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 id="l00144" 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 id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// one of these constructors or invariants will be broken.</span></div>
|
|
<div class="foldopen" id="foldopen00147" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae15058fe338f8aa06837f54c21a918d0"> 147</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="l00148" name="l00148"></a><span class="lineno"> 148</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="l00149" name="l00149"></a><span class="lineno"> 149</span> {</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="foldopen" id="foldopen00152" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00152" 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 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="l00153" name="l00153"></a><span class="lineno"> 153</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="l00154" name="l00154"></a><span class="lineno"> 154</span> {</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_class" href="classripple_1_1STAmount.html">STAmount</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#a96457b37722d895c585bcd260dd08a0f">balanceHook</a>(</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</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="l00161" name="l00161"></a><span class="lineno"> 161</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="l00162" name="l00162"></a><span class="lineno"> 162</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="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#a651f7b9013b9de728969272c3b1e8712">creditHook</a>(</div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</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="l00167" name="l00167"></a><span class="lineno"> 167</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="l00168" name="l00168"></a><span class="lineno"> 168</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="l00169" name="l00169"></a><span class="lineno"> 169</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="l00170" name="l00170"></a><span class="lineno"> 170</span> </div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <a class="code hl_function" href="classripple_1_1PaymentSandbox.html#abab734ed913c11e2dbca4b1d33634535">adjustOwnerCountHook</a>(</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</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="l00174" name="l00174"></a><span class="lineno"> 174</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="l00175" name="l00175"></a><span class="lineno"> 175</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="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</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="l00178" name="l00178"></a><span class="lineno"> 178</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="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">const override</span>;</div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</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="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="keywordtype">void</span></div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</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="l00195" 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 id="l00196" 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 id="l00197" 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 id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="comment">// the total change in XRP balances.</span></div>
|
|
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</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="l00200" name="l00200"></a><span class="lineno"> 200</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="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
|
|
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a></div>
|
|
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</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="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#a7d6e88cbd8903d7f96cf9ff8a0e143b7"> 206</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="l00207" name="l00207"></a><span class="lineno"><a class="line" href="classripple_1_1PaymentSandbox.html#ae78206dbf89c2dd73869fe9658daa1bc"> 207</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="l00208" name="l00208"></a><span class="lineno"> 208</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> </div>
|
|
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span>} <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
|
|
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</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#l00142">ApplyView.h:143</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:113</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#l00394">PaymentSandbox.cpp:394</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_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_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_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_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="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_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#l00172">PaymentSandbox.cpp:172</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#l00124">PaymentSandbox.h:124</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="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_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#l00147">PaymentSandbox.h:147</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="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#l00033">RawView.h:34</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#l00050">ReadView.h:51</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#l00049">STAmount.h:50</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#l00039">XRPAmount.h:43</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#l00031">ApplyViewBase.h:32</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#l00121">ApplyViewBase.cpp:121</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:37</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_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#l00042">PaymentSandbox.cpp:42</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="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_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_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_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#l00030">PaymentSandbox.cpp:30</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#l00025">algorithm.h:25</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#l00030">ApplyView.h:30</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#l00039">PaymentSandbox.h:40</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="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="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="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_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:81</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_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="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#l00084">PaymentSandbox.h:84</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>
|