Files
rippled/classripple_1_1AccountRootsDeletedClean.html
2025-01-21 19:58:08 +00:00

256 lines
16 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.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::AccountRootsDeletedClean Class Reference</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.5 -->
<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>
<!-- 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="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="classripple_1_1AccountRootsDeletedClean.html">AccountRootsDeletedClean</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classripple_1_1AccountRootsDeletedClean-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">ripple::AccountRootsDeletedClean Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Invariant: a deleted account must not have any objects left.
<a href="classripple_1_1AccountRootsDeletedClean.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="InvariantCheck_8h_source.html">InvariantCheck.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for ripple::AccountRootsDeletedClean:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1AccountRootsDeletedClean__coll__graph.png" border="0" usemap="#aripple_1_1AccountRootsDeletedClean_coll__map" alt="Collaboration graph"/></div>
<map name="aripple_1_1AccountRootsDeletedClean_coll__map" id="aripple_1_1AccountRootsDeletedClean_coll__map">
<area shape="rect" title="Invariant: a deleted account must not have any objects left." alt="" coords="2739,184,2945,224"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="2368,177,2569,231"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="2076,184,2255,224"/>
<area shape="rect" href="classripple_1_1STLedgerEntry.html" title=" " alt="" coords="1844,191,2005,217"/>
<area shape="rect" href="classripple_1_1STObject.html" title=" " alt="" coords="1617,191,1743,217"/>
<area shape="rect" href="classripple_1_1STBase.html" title="A type which can be exported to a well known binary format." alt="" coords="814,249,929,274"/>
<area shape="rect" href="classripple_1_1detail_1_1STVar.html" title=" " alt="" coords="1064,143,1213,169"/>
<area shape="rect" href="classripple_1_1SField.html" title="Identifies fields." alt="" coords="479,203,586,229"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/map.html" title=" " alt="" coords="793,184,949,224"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="216,178,303,203"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="5,171,144,211"/>
<area shape="rect" href="classJson_1_1StaticString.html" title="Lightweight wrapper to tag static string." alt="" coords="193,227,325,253"/>
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="1337,120,1500,160"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1347,184,1490,224"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="827,33,915,58"/>
<area shape="rect" href="classripple_1_1base__uint.html" title=" " alt="" coords="1609,56,1751,96"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/aligned_storage.html" title=" " alt="" coords="794,120,949,160"/>
<area shape="rect" href="classripple_1_1SOTemplate.html" title="Defines the fields and their attributes within a STObject." alt="" coords="1346,299,1491,325"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1067,349,1210,389"/>
<area shape="rect" href="classripple_1_1SOElement.html" title="An element in a SOTemplate." alt="" coords="802,357,941,382"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/utility/functional/reference_wrapper.html" title=" " alt="" coords="445,349,620,389"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1069,299,1208,325"/>
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="1599,241,1761,281"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/array.html" title=" " alt="" coords="1335,56,1503,96"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="1087,63,1190,89"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a15bc4ecdee698f74680dd8b153550bdb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1AccountRootsDeletedClean.html#a15bc4ecdee698f74680dd8b153550bdb">visitEntry</a> (bool, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const &gt; const &amp;, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const &gt; const &amp;)</td></tr>
<tr class="separator:a15bc4ecdee698f74680dd8b153550bdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ddee0e7936c0d3f07b8b96b5fb354ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1AccountRootsDeletedClean.html#a5ddee0e7936c0d3f07b8b96b5fb354ee">finalize</a> (<a class="el" href="classripple_1_1STTx.html">STTx</a> const &amp;, <a class="el" href="namespaceripple.html#adfb760bc3e4ccb79d5d4f6ecff2f1817">TER</a> const, <a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a> const, <a class="el" href="classripple_1_1ReadView.html">ReadView</a> const &amp;, <a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> const &amp;)</td></tr>
<tr class="separator:a5ddee0e7936c0d3f07b8b96b5fb354ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:af536e4b061b995d3168cde99d45de2d8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1AccountRootsDeletedClean.html#af536e4b061b995d3168cde99d45de2d8">accountsDeleted_</a></td></tr>
<tr class="separator:af536e4b061b995d3168cde99d45de2d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Invariant: a deleted account must not have any objects left. </p>
<p >We iterate all deleted account roots, and ensure that there are no objects left that are directly accessible with that account's ID.</p>
<p >There should only be one deleted account, but that's checked by <a class="el" href="classripple_1_1AccountRootsNotDeleted.html" title="Invariant: we cannot remove an account ledger entry.">AccountRootsNotDeleted</a>. This invariant will handle multiple deleted account roots without a problem. </p>
<p class="definition">Definition at line <a class="el" href="InvariantCheck_8h_source.html#l00175">175</a> of file <a class="el" href="InvariantCheck_8h_source.html">InvariantCheck.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a15bc4ecdee698f74680dd8b153550bdb" name="a15bc4ecdee698f74680dd8b153550bdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15bc4ecdee698f74680dd8b153550bdb">&#9670;&#160;</a></span>visitEntry()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::AccountRootsDeletedClean::visitEntry </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>isDelete</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const &gt; const &amp;&#160;</td>
<td class="paramname"><em>before</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const &gt; const &amp;&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="InvariantCheck_8cpp_source.html#l00365">365</a> of file <a class="el" href="InvariantCheck_8cpp_source.html">InvariantCheck.cpp</a>.</p>
</div>
</div>
<a id="a5ddee0e7936c0d3f07b8b96b5fb354ee" name="a5ddee0e7936c0d3f07b8b96b5fb354ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ddee0e7936c0d3f07b8b96b5fb354ee">&#9670;&#160;</a></span>finalize()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ripple::AccountRootsDeletedClean::finalize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1STTx.html">STTx</a> const &amp;&#160;</td>
<td class="paramname"><em>tx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceripple.html#adfb760bc3e4ccb79d5d4f6ecff2f1817">TER</a> const&#160;</td>
<td class="paramname"><em>result</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1XRPAmount.html">XRPAmount</a> const&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1ReadView.html">ReadView</a> const &amp;&#160;</td>
<td class="paramname"><em>view</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> const &amp;&#160;</td>
<td class="paramname"><em>j</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="InvariantCheck_8cpp_source.html#l00375">375</a> of file <a class="el" href="InvariantCheck_8cpp_source.html">InvariantCheck.cpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="af536e4b061b995d3168cde99d45de2d8" name="af536e4b061b995d3168cde99d45de2d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af536e4b061b995d3168cde99d45de2d8">&#9670;&#160;</a></span>accountsDeleted_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>&lt;<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt;<a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const&gt; &gt; ripple::AccountRootsDeletedClean::accountsDeleted_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="InvariantCheck_8h_source.html#l00177">177</a> of file <a class="el" href="InvariantCheck_8h_source.html">InvariantCheck.h</a>.</p>
</div>
</div>
</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.5
</small></address>
</body>
</html>