Files
rippled/ApplyContext_8cpp_source.html
2025-11-04 00:36:48 -08:00

297 lines
48 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: ApplyContext.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_c69db3203fa08a9ff994909ba6ee9783.html">app</a></li><li class="navelem"><a class="el" href="dir_4b2d6f306dc33741b6f38a59a670a446.html">tx</a></li><li class="navelem"><a class="el" href="dir_7b1ffcd2aae1e871efc2e94c72e78699.html">detail</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">ApplyContext.cpp</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include &lt;xrpld/app/tx/detail/ApplyContext.h&gt;</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include &lt;xrpld/app/tx/detail/InvariantCheck.h&gt;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;xrpl/basics/Log.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;xrpl/beast/utility/instrumentation.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &lt;xrpl/json/to_string.h&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="}">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a38b71fc14ce912a2e0eda5d1d99ecb70"> 10</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#a38b71fc14ce912a2e0eda5d1d99ecb70">ApplyContext::ApplyContext</a>(</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <a class="code hl_class" href="classripple_1_1Application.html">Application</a>&amp; app_,</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <a class="code hl_class" href="classripple_1_1OpenView.html">OpenView</a>&amp; base,</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;uint256 const&gt;</a> <span class="keyword">const</span>&amp; parentBatchId,</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span>&amp; tx_,</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> preclaimResult_,</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a> baseFee_,</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <a class="code hl_enumeration" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ApplyFlags</a> flags,</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> journal_)</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> : app(app_)</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> , tx(tx_)</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> , preclaimResult(preclaimResult_)</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> , baseFee(baseFee_)</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> , journal(journal_)</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> , base_(base)</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> , flags_(flags)</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> , parentBatchId_(parentBatchId)</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> XRPL_ASSERT(</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> parentBatchId.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/operator_bool.html">has_value</a>() == ((<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6">flags_</a> &amp; <a class="code hl_enumvalue" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6eaf61f880619864a9b99bdb67fd1dc4ddf">tapBATCH</a>) == <a class="code hl_enumvalue" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6eaf61f880619864a9b99bdb67fd1dc4ddf">tapBATCH</a>),</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="stringliteral">&quot;Parent Batch ID should be set if batch apply flag is set&quot;</span>);</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>.emplace(&amp;<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b">base_</a>, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6">flags_</a>);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>}</div>
</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="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00035" data-start="{" data-end="}">
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a5967451fa668bfc8b6e6bf763da92aa7"> 35</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#a5967451fa668bfc8b6e6bf763da92aa7">ApplyContext::discard</a>()</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>{</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>.emplace(&amp;<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b">base_</a>, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6">flags_</a>);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span>}</div>
</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional&lt;TxMeta&gt;</a></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="classripple_1_1ApplyContext.html#a2dc715eb28bf35611c931d4a84de4028"> 41</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#a2dc715eb28bf35611c931d4a84de4028">ApplyContext::apply</a>(<a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> ter)</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>{</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>-&gt;apply(</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b">base_</a>, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>, ter, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#af9f9a56989246c0a965ed03458c9538e">parentBatchId_</a>, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a4ef7c25fdbb86f2252a8a97b063fe1a6">flags_</a> &amp; <a class="code hl_enumvalue" href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6eae1e50802d5dd4edba9c41f3589086a03">tapDRY_RUN</a>, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a7b78c8e924babce4d14359970f55ba02">journal</a>);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span>}</div>
</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#aaf553f68175966af2a29eafaf78e596e"> 48</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#aaf553f68175966af2a29eafaf78e596e">ApplyContext::size</a>()</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="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>-&gt;size();</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>}</div>
</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00054" data-start="{" data-end="}">
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a04256a4e26ba636830cb0c6cf1c41bee"> 54</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#a04256a4e26ba636830cb0c6cf1c41bee">ApplyContext::visit</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt;<span class="keywordtype">void</span>(</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">uint256</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">bool</span>,</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SLE const&gt;</a> <span class="keyword">const</span>&amp;,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SLE const&gt;</a> <span class="keyword">const</span>&amp;)&gt; <span class="keyword">const</span>&amp; func)</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>{</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>-&gt;visit(<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a1867d261fef92d7f6d7676a1be52683b">base_</a>, func);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>}</div>
</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="foldopen" id="foldopen00064" data-start="{" data-end="}">
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#a6096c37f2b0cafc3a681b9f3c17587a2"> 64</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#a6096c37f2b0cafc3a681b9f3c17587a2">ApplyContext::failInvariantCheck</a>(<a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result)</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span>{</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// If we already failed invariant checks before and we are now attempting to</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// only charge a fee, and even that fails the invariant checks something is</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// very wrong. We switch to tefINVARIANT_FAILED, which does NOT get included</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="comment">// in a ledger.</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">return</span> (result == <a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38caa7dccd25363fdff0d363bd16553d1c84">tecINVARIANT_FAILED</a> || result == <a class="code hl_enumvalue" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a5de771586af2869a8ef8bac2731fd456">tefINVARIANT_FAILED</a>)</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> ? <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a>{<a class="code hl_enumvalue" href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a5de771586af2869a8ef8bac2731fd456">tefINVARIANT_FAILED</a>}</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> : <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a>{<a class="code hl_enumvalue" href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38caa7dccd25363fdff0d363bd16553d1c84">tecINVARIANT_FAILED</a>};</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span>}</div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="keyword">template</span> &lt;<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>... Is&gt;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="foldopen" id="foldopen00078" data-start="{" data-end="}">
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#aff25f5d949e126aa01acbd9c99c16430"> 78</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#aff25f5d949e126aa01acbd9c99c16430">ApplyContext::checkInvariantsHelper</a>(</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result,</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> fee,</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::index_sequence&lt;Is...&gt;</a>)</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>{</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">try</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> {</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keyword">auto</span> checkers = <a class="code hl_function" href="namespaceripple.html#aceaff96130b8a2fec303ae3a730d26c6">getInvariantChecks</a>();</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="comment">// call each check&#39;s per-entry method</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_function" href="classripple_1_1ApplyContext.html#a04256a4e26ba636830cb0c6cf1c41bee">visit</a>([&amp;checkers](</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; index,</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordtype">bool</span> isDelete,</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SLE const&gt;</a> <span class="keyword">const</span>&amp; before,</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SLE const&gt;</a> <span class="keyword">const</span>&amp; <a class="code hl_function" href="namespaceripple.html#ac3e90afb749bb1f01e06729c7c860ba3">after</a>) {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> (..., <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get&lt;Is&gt;</a>(checkers).visitEntry(isDelete, before, <a class="code hl_function" href="namespaceripple.html#ac3e90afb749bb1f01e06729c7c860ba3">after</a>));</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> });</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="comment">// Note: do not replace this logic with a `...&amp;&amp;` fold expression.</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// The fold expression will only run until the first check fails (it</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="comment">// short-circuits). While the logic is still correct, the log</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="comment">// message won&#39;t be. Every failed invariant should write to the log,</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="comment">// not just the first one.</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/array.html">std::array</a>&lt;bool, <span class="keyword">sizeof</span>...(Is)&gt; finalizers{</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::get&lt;Is&gt;</a>(checkers).finalize(</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>, result, fee, *<a class="code hl_variable" href="classripple_1_1ApplyContext.html#ac3b064ffdc5c7e0b6217cac7407e2b61">view_</a>, <a class="code hl_variable" href="classripple_1_1ApplyContext.html#a7b78c8e924babce4d14359970f55ba02">journal</a>)...}};</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// call each check&#39;s finalizer to see that it passes</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keywordflow">if</span> (!<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html">std::all_of</a>(</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> finalizers.cbegin(), finalizers.cend(), [](<span class="keyword">auto</span> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> return b;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> }))</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> {</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> JLOG(<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a7b78c8e924babce4d14359970f55ba02">journal</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a3dfb8e2e3eecccdb5cf78ff21bca069c">fatal</a>())</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> &lt;&lt; <span class="stringliteral">&quot;Transaction has failed one or more invariants: &quot;</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> &lt;&lt; <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code hl_function" href="classripple_1_1STTx.html#a489c8110e24455a2e7dac783f4760cc2">getJson</a>(<a class="code hl_enumvalue" href="structripple_1_1JsonOptions.html#ab85e43ec84df987200d3355c3ba89f0aa1917451e3686dfe8d5016670eb87ab33">JsonOptions::none</a>));</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1ApplyContext.html#a6096c37f2b0cafc3a681b9f3c17587a2">failInvariantCheck</a>(result);</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> }</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> }</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">catch</span> (<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</a> <span class="keyword">const</span>&amp; ex)</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> {</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> JLOG(<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a7b78c8e924babce4d14359970f55ba02">journal</a>.<a class="code hl_function" href="classbeast_1_1Journal.html#a3dfb8e2e3eecccdb5cf78ff21bca069c">fatal</a>())</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> &lt;&lt; <span class="stringliteral">&quot;Transaction caused an exception in an invariant&quot;</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> &lt;&lt; <span class="stringliteral">&quot;, ex: &quot;</span> &lt;&lt; ex.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/error/exception/what.html">what</a>()</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> &lt;&lt; <span class="stringliteral">&quot;, tx: &quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(<a class="code hl_variable" href="classripple_1_1ApplyContext.html#a8c8757b3b1f88baef47b31ed4e9682d0">tx</a>.<a class="code hl_function" href="classripple_1_1STTx.html#a489c8110e24455a2e7dac783f4760cc2">getJson</a>(<a class="code hl_enumvalue" href="structripple_1_1JsonOptions.html#ab85e43ec84df987200d3355c3ba89f0aa1917451e3686dfe8d5016670eb87ab33">JsonOptions::none</a>));</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1ApplyContext.html#a6096c37f2b0cafc3a681b9f3c17587a2">failInvariantCheck</a>(result);</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 class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordflow">return</span> result;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span>}</div>
</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><a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="foldopen" id="foldopen00132" data-start="{" data-end="}">
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyContext.html#acf5f75ec76cec199781a945226834410"> 132</a></span><a class="code hl_function" href="classripple_1_1ApplyContext.html#acf5f75ec76cec199781a945226834410">ApplyContext::checkInvariants</a>(<a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> <span class="keyword">const</span> result, <a class="code hl_class" href="classripple_1_1XRPAmount.html">XRPAmount</a> <span class="keyword">const</span> fee)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span>{</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> XRPL_ASSERT(</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_function" href="namespaceripple.html#ab48d5d1c4e2695c12f705e9d85fa560d">isTesSuccess</a>(result) || <a class="code hl_function" href="namespaceripple.html#ae193bf65f233ba37c47a7a8fc49a26e4">isTecClaim</a>(result),</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="stringliteral">&quot;ripple::ApplyContext::checkInvariants : is tesSUCCESS or tecCLAIM&quot;</span>);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1ApplyContext.html#aff25f5d949e126aa01acbd9c99c16430">checkInvariantsHelper</a>(</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> result,</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> fee,</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/integer_sequence.html">std::make_index_sequence</a>&lt;std::tuple_size&lt;InvariantChecks&gt;::value&gt;{});</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span>}</div>
</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span>} <span class="comment">// namespace ripple</span></div>
<div class="ttc" id="aall_any_none_of_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/all_any_none_of.html">std::all_of</a></div><div class="ttdeci">T all_of(T... args)</div></div>
<div class="ttc" id="aarray_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/array.html">std::array</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#l00040">Journal.h:41</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html_a3dfb8e2e3eecccdb5cf78ff21bca069c"><div class="ttname"><a href="classbeast_1_1Journal.html#a3dfb8e2e3eecccdb5cf78ff21bca069c">beast::Journal::fatal</a></div><div class="ttdeci">Stream fatal() const</div><div class="ttdef"><b>Definition</b> <a href="Journal_8h_source.html#l00333">Journal.h:333</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#l00094">Application.h:95</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&lt; void(uint256 const &amp;key, bool isDelete, std::shared_ptr&lt; SLE const &gt; const &amp;before, std::shared_ptr&lt; SLE const &gt; const &amp;after)&gt; const &amp;func)</div><div class="ttdoc">Visit unapplied changes.</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00054">ApplyContext.cpp:54</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 &amp; base_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00135">ApplyContext.h:135</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a2dc715eb28bf35611c931d4a84de4028"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a2dc715eb28bf35611c931d4a84de4028">ripple::ApplyContext::apply</a></div><div class="ttdeci">std::optional&lt; TxMeta &gt; 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#l00041">ApplyContext.cpp:41</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a38b71fc14ce912a2e0eda5d1d99ecb70"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a38b71fc14ce912a2e0eda5d1d99ecb70">ripple::ApplyContext::ApplyContext</a></div><div class="ttdeci">ApplyContext(Application &amp;app, OpenView &amp;base, std::optional&lt; uint256 const &gt; const &amp;parentBatchId, STTx const &amp;tx, TER preclaimResult, XRPAmount baseFee, ApplyFlags flags, beast::Journal journal=beast::Journal{beast::Journal::getNullSink()})</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00010">ApplyContext.cpp:10</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#l00136">ApplyContext.h:136</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#l00035">ApplyContext.cpp:35</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#l00064">ApplyContext.cpp:64</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_a7b78c8e924babce4d14359970f55ba02"><div class="ttname"><a href="classripple_1_1ApplyContext.html#a7b78c8e924babce4d14359970f55ba02">ripple::ApplyContext::journal</a></div><div class="ttdeci">beast::Journal const journal</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00056">ApplyContext.h:56</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 &amp; tx</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00053">ApplyContext.h:53</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#l00048">ApplyContext.cpp:48</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&lt; ApplyViewImpl &gt; view_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00137">ApplyContext.h:137</a></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#l00132">ApplyContext.cpp:132</a></div></div>
<div class="ttc" id="aclassripple_1_1ApplyContext_html_af9f9a56989246c0a965ed03458c9538e"><div class="ttname"><a href="classripple_1_1ApplyContext.html#af9f9a56989246c0a965ed03458c9538e">ripple::ApplyContext::parentBatchId_</a></div><div class="ttdeci">std::optional&lt; uint256 const &gt; parentBatchId_</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8h_source.html#l00140">ApplyContext.h:140</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&lt; Is... &gt;)</div><div class="ttdef"><b>Definition</b> <a href="ApplyContext_8cpp_source.html#l00078">ApplyContext.cpp:78</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#l00045">OpenView.h:46</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#l00028">STTx.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1STTx_html_a489c8110e24455a2e7dac783f4760cc2"><div class="ttname"><a href="classripple_1_1STTx.html#a489c8110e24455a2e7dac783f4760cc2">ripple::STTx::getJson</a></div><div class="ttdeci">Json::Value getJson(JsonOptions options) const override</div><div class="ttdef"><b>Definition</b> <a href="STTx_8cpp_source.html#l00319">STTx.cpp:319</a></div></div>
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset&lt; CanCvtToTER &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1XRPAmount_html"><div class="ttname"><a href="classripple_1_1XRPAmount.html">ripple::XRPAmount</a></div><div class="ttdef"><b>Definition</b> <a href="XRPAmount_8h_source.html#l00020">XRPAmount.h:24</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aexception_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception.html">std::exception</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="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="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="anamespaceripple_html_a75cb21d7f1df42f2fdc8efddb79b63f4a5de771586af2869a8ef8bac2731fd456"><div class="ttname"><a href="namespaceripple.html#a75cb21d7f1df42f2fdc8efddb79b63f4a5de771586af2869a8ef8bac2731fd456">ripple::tefINVARIANT_FAILED</a></div><div class="ttdeci">@ tefINVARIANT_FAILED</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00164">TER.h:164</a></div></div>
<div class="ttc" id="anamespaceripple_html_aa298e929e02f59c2b05a30ee8805b38caa7dccd25363fdff0d363bd16553d1c84"><div class="ttname"><a href="namespaceripple.html#aa298e929e02f59c2b05a30ee8805b38caa7dccd25363fdff0d363bd16553d1c84">ripple::tecINVARIANT_FAILED</a></div><div class="ttdeci">@ tecINVARIANT_FAILED</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00295">TER.h:295</a></div></div>
<div class="ttc" id="anamespaceripple_html_ab48d5d1c4e2695c12f705e9d85fa560d"><div class="ttname"><a href="namespaceripple.html#ab48d5d1c4e2695c12f705e9d85fa560d">ripple::isTesSuccess</a></div><div class="ttdeci">bool isTesSuccess(TER x) noexcept</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00659">TER.h:659</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac124fe6744b7fe887dec949b56b16d50"><div class="ttname"><a href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">ripple::to_string</a></div><div class="ttdeci">std::string to_string(base_uint&lt; Bits, Tag &gt; const &amp;a)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00611">base_uint.h:611</a></div></div>
<div class="ttc" id="anamespaceripple_html_ac3e90afb749bb1f01e06729c7c860ba3"><div class="ttname"><a href="namespaceripple.html#ac3e90afb749bb1f01e06729c7c860ba3">ripple::after</a></div><div class="ttdeci">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="View_8cpp_source.html#l03247">View.cpp:3247</a></div></div>
<div class="ttc" id="anamespaceripple_html_aceaff96130b8a2fec303ae3a730d26c6"><div class="ttname"><a href="namespaceripple.html#aceaff96130b8a2fec303ae3a730d26c6">ripple::getInvariantChecks</a></div><div class="ttdeci">InvariantChecks getInvariantChecks()</div><div class="ttdoc">get a tuple of all invariant checks</div><div class="ttdef"><b>Definition</b> <a href="InvariantCheck_8h_source.html#l00820">InvariantCheck.h:820</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6e"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ripple::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00011">ApplyView.h:11</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6eae1e50802d5dd4edba9c41f3589086a03"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6eae1e50802d5dd4edba9c41f3589086a03">ripple::tapDRY_RUN</a></div><div class="ttdeci">@ tapDRY_RUN</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00031">ApplyView.h:30</a></div></div>
<div class="ttc" id="anamespaceripple_html_ad2487abbcc1a5d6064b72144b461df6eaf61f880619864a9b99bdb67fd1dc4ddf"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6eaf61f880619864a9b99bdb67fd1dc4ddf">ripple::tapBATCH</a></div><div class="ttdeci">@ tapBATCH</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00026">ApplyView.h:26</a></div></div>
<div class="ttc" id="anamespaceripple_html_ae193bf65f233ba37c47a7a8fc49a26e4"><div class="ttname"><a href="namespaceripple.html#ae193bf65f233ba37c47a7a8fc49a26e4">ripple::isTecClaim</a></div><div class="ttdeci">bool isTecClaim(TER x) noexcept</div><div class="ttdef"><b>Definition</b> <a href="TER_8h_source.html#l00666">TER.h:666</a></div></div>
<div class="ttc" id="aoperator_bool_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional/operator_bool.html">std::optional::has_value</a></div><div class="ttdeci">T has_value(T... args)</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="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</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="astructripple_1_1JsonOptions_html_ab85e43ec84df987200d3355c3ba89f0aa1917451e3686dfe8d5016670eb87ab33"><div class="ttname"><a href="structripple_1_1JsonOptions.html#ab85e43ec84df987200d3355c3ba89f0aa1917451e3686dfe8d5016670eb87ab33">ripple::JsonOptions::none</a></div><div class="ttdeci">@ none</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00024">STBase.h:24</a></div></div>
<div class="ttc" id="awhat_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/exception/what.html">std::exception::what</a></div><div class="ttdeci">T what(T... args)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>