mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
161 lines
19 KiB
HTML
161 lines
19 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: ApplyViewImpl.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&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_90ffdbabf412cfdffe6b2193e0ce938a.html">libxrpl</a></li><li class="navelem"><a class="el" href="dir_206ae571f9a7f3abb34f1a779b56a18b.html">ledger</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">ApplyViewImpl.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 <xrpl/ledger/ApplyViewImpl.h></span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="foldopen" id="foldopen00005" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyViewImpl.html#ad57339f61fc5587d7179debd358a24b5"> 5</a></span><a class="code hl_function" href="classripple_1_1ApplyViewImpl.html#a7ecc004ab6e9fd82fd4a8e153bd4ae34">ApplyViewImpl::ApplyViewImpl</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> flags)</div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> : ApplyViewBase(base, flags)</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>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<TxMeta></a></div>
|
|
<div class="foldopen" id="foldopen00011" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyViewImpl.html#a6a17545d8e41832ce2465a482cb1f50b"> 11</a></span><a class="code hl_function" href="classripple_1_1ApplyViewImpl.html#a6a17545d8e41832ce2465a482cb1f50b">ApplyViewImpl::apply</a>(</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>& to,</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <a class="code hl_class" href="classripple_1_1STTx.html">STTx</a> <span class="keyword">const</span>& tx,</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <a class="code hl_class" href="classripple_1_1TERSubset.html">TER</a> ter,</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<uint256></a> parentBatchId,</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keywordtype">bool</span> isDryRun,</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <a class="code hl_class" href="classbeast_1_1Journal.html">beast::Journal</a> j)</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span>{</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1ApplyViewBase.html#a70888ae5727e45067b092a465e8b4552">items_</a>.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyStateTable.html#ac71c446d6cd8570add6765c71d5f8e8d">apply</a>(to, tx, ter, <a class="code hl_variable" href="classripple_1_1ApplyViewImpl.html#a6a7c180ea6703b6bff9190b51c2500ce">deliver_</a>, parentBatchId, isDryRun, j);</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</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="foldopen00023" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyViewImpl.html#a888e0df87b039cfaa8f665d06f5e2f50"> 23</a></span><a class="code hl_function" href="classripple_1_1ApplyViewImpl.html#a888e0df87b039cfaa8f665d06f5e2f50">ApplyViewImpl::size</a>()</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span>{</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1ApplyViewBase.html#a70888ae5727e45067b092a465e8b4552">items_</a>.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyStateTable.html#ad6a1856ba17b6c03dda8c2e163aca613">size</a>();</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>}</div>
|
|
</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="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00029" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classripple_1_1ApplyViewImpl.html#ab609da81619688214eae68d77d572541"> 29</a></span><a class="code hl_function" href="classripple_1_1ApplyViewImpl.html#ab609da81619688214eae68d77d572541">ApplyViewImpl::visit</a>(</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <a class="code hl_class" href="classripple_1_1OpenView.html">OpenView</a>& to,</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a><<span class="keywordtype">void</span>(</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& key,</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordtype">bool</span> isDelete,</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_classRef" 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 id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_classRef" 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 hl_function" href="namespaceripple.html#ac3e90afb749bb1f01e06729c7c860ba3">after</a>)> <span class="keyword">const</span>& func)</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_1detail_1_1ApplyViewBase.html#a70888ae5727e45067b092a465e8b4552">items_</a>.<a class="code hl_function" href="classripple_1_1detail_1_1ApplyStateTable.html#a5ec327d07ac54d993660381dbc68d6a2">visit</a>(to, func);</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>} <span class="comment">// namespace ripple</span></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="aclassripple_1_1ApplyViewImpl_html_a6a17545d8e41832ce2465a482cb1f50b"><div class="ttname"><a href="classripple_1_1ApplyViewImpl.html#a6a17545d8e41832ce2465a482cb1f50b">ripple::ApplyViewImpl::apply</a></div><div class="ttdeci">std::optional< TxMeta > apply(OpenView &to, STTx const &tx, TER ter, std::optional< uint256 > parentBatchId, bool isDryRun, beast::Journal j)</div><div class="ttdoc">Apply the transaction.</div><div class="ttdef"><b>Definition</b> <a href="ApplyViewImpl_8cpp_source.html#l00011">ApplyViewImpl.cpp:11</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyViewImpl_html_a6a7c180ea6703b6bff9190b51c2500ce"><div class="ttname"><a href="classripple_1_1ApplyViewImpl.html#a6a7c180ea6703b6bff9190b51c2500ce">ripple::ApplyViewImpl::deliver_</a></div><div class="ttdeci">std::optional< STAmount > deliver_</div><div class="ttdef"><b>Definition</b> <a href="ApplyViewImpl_8h_source.html#l00075">ApplyViewImpl.h:75</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyViewImpl_html_a7ecc004ab6e9fd82fd4a8e153bd4ae34"><div class="ttname"><a href="classripple_1_1ApplyViewImpl.html#a7ecc004ab6e9fd82fd4a8e153bd4ae34">ripple::ApplyViewImpl::ApplyViewImpl</a></div><div class="ttdeci">ApplyViewImpl()=delete</div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyViewImpl_html_a888e0df87b039cfaa8f665d06f5e2f50"><div class="ttname"><a href="classripple_1_1ApplyViewImpl.html#a888e0df87b039cfaa8f665d06f5e2f50">ripple::ApplyViewImpl::size</a></div><div class="ttdeci">std::size_t size()</div><div class="ttdoc">Get the number of modified entries.</div><div class="ttdef"><b>Definition</b> <a href="ApplyViewImpl_8cpp_source.html#l00023">ApplyViewImpl.cpp:23</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1ApplyViewImpl_html_ab609da81619688214eae68d77d572541"><div class="ttname"><a href="classripple_1_1ApplyViewImpl.html#ab609da81619688214eae68d77d572541">ripple::ApplyViewImpl::visit</a></div><div class="ttdeci">void visit(OpenView &target, 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 modified entries.</div><div class="ttdef"><b>Definition</b> <a href="ApplyViewImpl_8cpp_source.html#l00029">ApplyViewImpl.cpp:29</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_1ReadView_html"><div class="ttname"><a href="classripple_1_1ReadView.html">ripple::ReadView</a></div><div class="ttdoc">A view into a ledger.</div><div class="ttdef"><b>Definition</b> <a href="ReadView_8h_source.html#l00031">ReadView.h:32</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_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_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset< CanCvtToTER ></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< 256 ></a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyStateTable_html_a5ec327d07ac54d993660381dbc68d6a2"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyStateTable.html#a5ec327d07ac54d993660381dbc68d6a2">ripple::detail::ApplyStateTable::visit</a></div><div class="ttdeci">void visit(ReadView const &base, std::function< void(uint256 const &key, bool isDelete, std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after)> const &func) const</div><div class="ttdef"><b>Definition</b> <a href="ApplyStateTable_8cpp_source.html#l00055">ApplyStateTable.cpp:55</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyStateTable_html_ac71c446d6cd8570add6765c71d5f8e8d"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyStateTable.html#ac71c446d6cd8570add6765c71d5f8e8d">ripple::detail::ApplyStateTable::apply</a></div><div class="ttdeci">void apply(RawView &to) const</div><div class="ttdef"><b>Definition</b> <a href="ApplyStateTable_8cpp_source.html#l00012">ApplyStateTable.cpp:12</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyStateTable_html_ad6a1856ba17b6c03dda8c2e163aca613"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyStateTable.html#ad6a1856ba17b6c03dda8c2e163aca613">ripple::detail::ApplyStateTable::size</a></div><div class="ttdeci">std::size_t size() const</div><div class="ttdef"><b>Definition</b> <a href="ApplyStateTable_8cpp_source.html#l00036">ApplyStateTable.cpp:36</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1detail_1_1ApplyViewBase_html_a70888ae5727e45067b092a465e8b4552"><div class="ttname"><a href="classripple_1_1detail_1_1ApplyViewBase.html#a70888ae5727e45067b092a465e8b4552">ripple::detail::ApplyViewBase::items_</a></div><div class="ttdeci">detail::ApplyStateTable items_</div><div class="ttdef"><b>Definition</b> <a href="ApplyViewBase_8h_source.html#l00105">ApplyViewBase.h:105</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="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_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_ad2487abbcc1a5d6064b72144b461df6e"><div class="ttname"><a href="namespaceripple.html#ad2487abbcc1a5d6064b72144b461df6e">ripple::ApplyFlags</a></div><div class="ttdeci">ApplyFlags</div><div class="ttdef"><b>Definition</b> <a href="ApplyView_8h_source.html#l00011">ApplyView.h:11</a></div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
|
<div class="ttc" id="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><!-- 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>
|