forked from XRPLF/rippled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplyContext_8h_source.html
242 lines (240 loc) · 39.5 KB
/
ApplyContext_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!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: ApplyContext.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_9f69212e4c6e2ca9ec5ab59cd7b6275c.html">app</a></li><li class="navelem"><a class="el" href="dir_08bd996c7140e5d4c4a2548bd66a393f.html">tx</a></li><li class="navelem"><a class="el" href="dir_03680b44059da148632e530fc6dc63c7.html">impl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ApplyContext.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_TX_APPLYCONTEXT_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_TX_APPLYCONTEXT_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/app/main/Application.h></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/basics/XRPAmount.h></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/beast/utility/Journal.h></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/core/Config.h></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <ripple/ledger/ApplyViewImpl.h></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <ripple/protocol/STTx.h></span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>></span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</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="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><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html"> 35</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1ApplyContext.html">ApplyContext</a></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">explicit</span> <a class="code" href="classripple_1_1ApplyContext.html#a81f8a83ee3ef4ff6001b357d905dcfbc">ApplyContext</a>(</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classripple_1_1Application.html">Application</a>& <a class="code" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">app</a>,</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& base,</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span>& <a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>,</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="classripple_1_1TERSubset.html">TER</a> <a class="code" href="classripple_1_1ApplyContext.html#ae7e2361dfcb8bfc1d367389148c07634">preclaimResult</a>,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classripple_1_1feeunit_1_1TaggedFee.html">FeeUnit64</a> <a class="code" href="classripple_1_1ApplyContext.html#ac66a1078c9945c7e003e6ac44eadb446">baseFee</a>,</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> = <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a>{<a class="code" href="classbeast_1_1Journal.html#a930d70ff72f71414fcd5b560610cefb6">beast::Journal::getNullSink</a>()});</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d"> 47</a></span>  <a class="code" href="classripple_1_1Application.html">Application</a>& <a class="code" href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">app</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0"> 48</a></span>  <a class="code" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span>& <a class="code" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#ae7e2361dfcb8bfc1d367389148c07634"> 49</a></span>  <a class="code" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1ApplyContext.html#ae7e2361dfcb8bfc1d367389148c07634">preclaimResult</a>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#ac66a1078c9945c7e003e6ac44eadb446"> 50</a></span>  <a class="code" href="classripple_1_1feeunit_1_1TaggedFee.html">FeeUnit64</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1ApplyContext.html#ac66a1078c9945c7e003e6ac44eadb446">baseFee</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#afdcc5c07be2cc8022632ed0050a024f1"> 51</a></span>  <a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> <span class="keyword">const</span> <a class="code" href="classripple_1_1ApplyContext.html#afdcc5c07be2cc8022632ed0050a024f1">journal</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classripple_1_1ApplyView.html">ApplyView</a>&</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a77320121a8dc95fb701fe4fa477c1b3d"> 54</a></span>  <a class="code" href="classripple_1_1ApplyContext.html#a77320121a8dc95fb701fe4fa477c1b3d">view</a>()</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  {</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>;</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>  </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classripple_1_1ApplyView.html">ApplyView</a> <span class="keyword">const</span>&</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a7df573e3f9e3afa18f5fe683c4adc0bd"> 60</a></span>  <a class="code" href="classripple_1_1ApplyContext.html#a7df573e3f9e3afa18f5fe683c4adc0bd">view</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</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="comment">// VFALCO Unfortunately this is necessary</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classripple_1_1RawView.html">RawView</a>&</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a77dc079164717b62995593c7633a5160"> 67</a></span>  <a class="code" href="classripple_1_1ApplyContext.html#a77dc079164717b62995593c7633a5160">rawView</a>()</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  {</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#ae41c98e735027c912354391f518e228d"> 74</a></span>  <a class="code" href="classripple_1_1ApplyContext.html#ae41c98e735027c912354391f518e228d">deliver</a>(<a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>& amount)</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>->deliver(amount);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">void</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classripple_1_1ApplyContext.html#a5967451fa668bfc8b6e6bf763da92aa7">discard</a>();</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">void</span> <a class="code" href="classripple_1_1ApplyContext.html#aca57d8bdb6612a3d8042cadf62694125">apply</a>(<a class="code" href="classripple_1_1TERSubset.html">TER</a>);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classripple_1_1ApplyContext.html#aaf553f68175966af2a29eafaf78e596e">size</a>();</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">void</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classripple_1_1ApplyContext.html#a04256a4e26ba636830cb0c6cf1c41bee">visit</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& key,</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">bool</span> isDelete,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> <span class="keyword">const</span>& before,</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a> <span class="keyword">const</span>& <a class="code" href="namespaceripple.html#aebcc26ebe20ddcd3bcbfd5402e0acb89">after</a>)> <span class="keyword">const</span>& func);</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="keywordtype">void</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a6dd28e2ef7cc9935403cbe303ebb5011"> 99</a></span>  <a class="code" href="classripple_1_1ApplyContext.html#a6dd28e2ef7cc9935403cbe303ebb5011">destroyXRP</a>(<a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span>& fee)</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>->rawDestroyXRP(fee);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classripple_1_1ApplyContext.html#acf5f75ec76cec199781a945226834410">checkInvariants</a>(<a class="code" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result, <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> fee);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">private</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classripple_1_1ApplyContext.html#a6096c37f2b0cafc3a681b9f3c17587a2">failInvariantCheck</a>(<a class="code" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">template</span> <<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>... Is></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classripple_1_1ApplyContext.html#aff25f5d949e126aa01acbd9c99c16430">checkInvariantsHelper</a>(</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result,</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classripple_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> fee,</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::index_sequence<Is...></a>);</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_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b"> 124</a></span>  <a class="code" href="classripple_1_1OpenView.html">OpenView</a>& <a class="code" href="classripple_1_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b">base_</a>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6"> 125</a></span>  <a class="code" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> <a class="code" href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6">flags_</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61"> 126</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<ApplyViewImpl></a> <a class="code" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>;</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"> 129</span> } <span class="comment">// namespace ripple</span></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> <span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a81f8a83ee3ef4ff6001b357d905dcfbc"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a81f8a83ee3ef4ff6001b357d905dcfbc">ripple::ApplyContext::ApplyContext</a></div><div class="ttdeci">ApplyContext(Application &app, OpenView &base, STTx const &tx, TER preclaimResult, FeeUnit64 baseFee, ApplyFlags flags, beast::Journal=beast::Journal{beast::Journal::getNullSink()})</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00031">ApplyContext.cpp:31</a></div></div>
<div class="ttc" id="aclassripple_1_1Application_html"><div class="ttname"><a href="classripple_1_1Application.html">ripple::Application</a></div><div class="ttdef"><b>Definition:</b> <a href="Application_8h_source.html#l00103">Application.h:103</a></div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_acf5f75ec76cec199781a945226834410"><div class="ttname"><a href="classripple_1_1ApplyContext.html#acf5f75ec76cec199781a945226834410">ripple::ApplyContext::checkInvariants</a></div><div class="ttdeci">TER checkInvariants(TER const result, XRPAmount const fee)</div><div class="ttdoc">Applies all invariant checkers one by one.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00147">ApplyContext.cpp:147</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_1ApplyContext_html_ae7e2361dfcb8bfc1d367389148c07634"><div class="ttname"><a href="classripple_1_1ApplyContext.html#ae7e2361dfcb8bfc1d367389148c07634">ripple::ApplyContext::preclaimResult</a></div><div class="ttdeci">const TER preclaimResult</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00049">ApplyContext.h:49</a></div></div>
<div class="ttc" id="ainteger_sequence_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::index_sequence</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a7df573e3f9e3afa18f5fe683c4adc0bd"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a7df573e3f9e3afa18f5fe683c4adc0bd">ripple::ApplyContext::view</a></div><div class="ttdeci">ApplyView const & view() const</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00060">ApplyContext.h:60</a></div></div>
<div class="ttc" id="aclassripple_1_1OpenView_html"><div class="ttname"><a href="classripple_1_1OpenView.html">ripple::OpenView</a></div><div class="ttdoc">Writable ledger view that accumulates state and tx changes.</div><div class="ttdef"><b>Definition:</b> <a href="OpenView_8h_source.html#l00055">OpenView.h:55</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a4ef7c25fdbb86f2252a8a97b063fe1a6"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6">ripple::ApplyContext::flags_</a></div><div class="ttdeci">ApplyFlags flags_</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00125">ApplyContext.h:125</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#l00029">ApplyView.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_afdcc5c07be2cc8022632ed0050a024f1"><div class="ttname"><a href="classripple_1_1ApplyContext.html#afdcc5c07be2cc8022632ed0050a024f1">ripple::ApplyContext::journal</a></div><div class="ttdeci">const beast::Journal journal</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00051">ApplyContext.h:51</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a77dc079164717b62995593c7633a5160"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a77dc079164717b62995593c7633a5160">ripple::ApplyContext::rawView</a></div><div class="ttdeci">RawView & rawView()</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00067">ApplyContext.h:67</a></div></div>
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a1867d261fef92d7f6d7676a1be52683b"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b">ripple::ApplyContext::base_</a></div><div class="ttdeci">OpenView & base_</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00124">ApplyContext.h:124</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html_a930d70ff72f71414fcd5b560610cefb6"><div class="ttname"><a href="classbeast_1_1Journal.html#a930d70ff72f71414fcd5b560610cefb6">beast::Journal::getNullSink</a></div><div class="ttdeci">static Sink & getNullSink()</div><div class="ttdoc">Returns a Sink which does nothing.</div><div class="ttdef"><b>Definition:</b> <a href="beast__Journal_8cpp_source.html#l00072">beast_Journal.cpp:72</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#l00139">ApplyView.h:139</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a6ec1f10e560afe30ed435c3f7eea715d"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a6ec1f10e560afe30ed435c3f7eea715d">ripple::ApplyContext::app</a></div><div class="ttdeci">Application & app</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00047">ApplyContext.h:47</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</a></div><div class="ttdoc">Integers of any length that is a multiple of 32-bits.</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00075">base_uint.h:75</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_1ApplyContext_html_a6dd28e2ef7cc9935403cbe303ebb5011"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a6dd28e2ef7cc9935403cbe303ebb5011">ripple::ApplyContext::destroyXRP</a></div><div class="ttdeci">void destroyXRP(XRPAmount const &fee)</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00099">ApplyContext.h:99</a></div></div>
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset< CanCvtToTER ></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#l00043">STAmount.h:43</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a5967451fa668bfc8b6e6bf763da92aa7"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a5967451fa668bfc8b6e6bf763da92aa7">ripple::ApplyContext::discard</a></div><div class="ttdeci">void discard()</div><div class="ttdoc">Discard changes and start fresh.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00051">ApplyContext.cpp:51</a></div></div>
<div class="ttc" id="aclassripple_1_1STTx_html"><div class="ttname"><a href="classripple_1_1STTx.html">ripple::STTx</a></div><div class="ttdef"><b>Definition:</b> <a href="STTx_8h_source.html#l00043">STTx.h:43</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_ae41c98e735027c912354391f518e228d"><div class="ttname"><a href="classripple_1_1ApplyContext.html#ae41c98e735027c912354391f518e228d">ripple::ApplyContext::deliver</a></div><div class="ttdeci">void deliver(STAmount const &amount)</div><div class="ttdoc">Sets the DeliveredAmount field in the metadata.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00074">ApplyContext.h:74</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html"><div class="ttname"><a href="classripple_1_1ApplyContext.html">ripple::ApplyContext</a></div><div class="ttdoc">State information when applying a tx.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00035">ApplyContext.h:35</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
<div class="ttc" id="aclassripple_1_1feeunit_1_1TaggedFee_html"><div class="ttname"><a href="classripple_1_1feeunit_1_1TaggedFee.html">ripple::feeunit::TaggedFee</a></div><div class="ttdef"><b>Definition:</b> <a href="FeeUnits_8h_source.html#l00070">FeeUnits.h:70</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a77320121a8dc95fb701fe4fa477c1b3d"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a77320121a8dc95fb701fe4fa477c1b3d">ripple::ApplyContext::view</a></div><div class="ttdeci">ApplyView & view()</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00054">ApplyContext.h:54</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_aca57d8bdb6612a3d8042cadf62694125"><div class="ttname"><a href="classripple_1_1ApplyContext.html#aca57d8bdb6612a3d8042cadf62694125">ripple::ApplyContext::apply</a></div><div class="ttdeci">void apply(TER)</div><div class="ttdoc">Apply the transaction result to the base.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00057">ApplyContext.cpp:57</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a04256a4e26ba636830cb0c6cf1c41bee"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a04256a4e26ba636830cb0c6cf1c41bee">ripple::ApplyContext::visit</a></div><div class="ttdeci">void visit(std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func)</div><div class="ttdoc">Visit unapplied changes.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00069">ApplyContext.cpp:69</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_1ApplyContext_html_aff25f5d949e126aa01acbd9c99c16430"><div class="ttname"><a href="classripple_1_1ApplyContext.html#aff25f5d949e126aa01acbd9c99c16430">ripple::ApplyContext::checkInvariantsHelper</a></div><div class="ttdeci">TER checkInvariantsHelper(TER const result, XRPAmount const fee, std::index_sequence< Is... >)</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00093">ApplyContext.cpp:93</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_ac3b064ffdc5c7e0b6217cac7407e2b61"><div class="ttname"><a href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">ripple::ApplyContext::view_</a></div><div class="ttdeci">std::optional< ApplyViewImpl > view_</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00126">ApplyContext.h:126</a></div></div>
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div>
<div class="ttc" id="anamespaceripple_html_aebcc26ebe20ddcd3bcbfd5402e0acb89"><div class="ttname"><a href="namespaceripple.html#aebcc26ebe20ddcd3bcbfd5402e0acb89">ripple::after</a></div><div class="ttdeci">static bool after(NetClock::time_point now, std::uint32_t mark)</div><div class="ttdoc">Has the specified time passed?</div><div class="ttdef"><b>Definition:</b> <a href="Escrow_8cpp_source.html#l00088">Escrow.cpp:88</a></div></div>
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_ac66a1078c9945c7e003e6ac44eadb446"><div class="ttname"><a href="classripple_1_1ApplyContext.html#ac66a1078c9945c7e003e6ac44eadb446">ripple::ApplyContext::baseFee</a></div><div class="ttdeci">const FeeUnit64 baseFee</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00050">ApplyContext.h:50</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_aaf553f68175966af2a29eafaf78e596e"><div class="ttname"><a href="classripple_1_1ApplyContext.html#aaf553f68175966af2a29eafaf78e596e">ripple::ApplyContext::size</a></div><div class="ttdeci">std::size_t size()</div><div class="ttdoc">Get the number of unapplied changes.</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00063">ApplyContext.cpp:63</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a8c8757b3b1f88baef47b31ed4e9682d0"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">ripple::ApplyContext::tx</a></div><div class="ttdeci">STTx const & tx</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8h_source.html#l00048">ApplyContext.h:48</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a6096c37f2b0cafc3a681b9f3c17587a2"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a6096c37f2b0cafc3a681b9f3c17587a2">ripple::ApplyContext::failInvariantCheck</a></div><div class="ttdeci">TER failInvariantCheck(TER const result)</div><div class="ttdef"><b>Definition:</b> <a href="ApplyContext_8cpp_source.html#l00079">ApplyContext.cpp:79</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>