mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
287 lines
19 KiB
HTML
287 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: 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.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>
|
|
<!-- 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> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<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 <<a class="el" href="InvariantCheck_8h_source.html">InvariantCheck.h</a>></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="2744,187,2951,227"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="2373,179,2575,234"/>
|
|
<area shape="poly" title=" " alt="" coords="2589,204,2743,204,2743,209,2589,209"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html" title=" " alt="" coords="2081,187,2260,227"/>
|
|
<area shape="poly" title=" " alt="" coords="2274,204,2373,204,2373,209,2274,209"/>
|
|
<area shape="rect" href="classripple_1_1STLedgerEntry.html" title=" " alt="" coords="1849,194,2011,219"/>
|
|
<area shape="poly" title=" " alt="" coords="2025,204,2081,204,2081,209,2025,209"/>
|
|
<area shape="rect" href="classripple_1_1STObject.html" title=" " alt="" coords="1623,194,1748,219"/>
|
|
<area shape="poly" title=" " alt="" coords="1762,204,1849,204,1849,209,1762,209"/>
|
|
<area shape="rect" href="classripple_1_1STBase.html" title="A type which can be exported to a well known binary format." alt="" coords="820,247,935,273"/>
|
|
<area shape="poly" title=" " alt="" coords="948,258,1196,256,1351,249,1508,236,1626,217,1626,222,1508,241,1352,254,1196,261,948,264"/>
|
|
<area shape="rect" href="classripple_1_1detail_1_1STVar.html" title=" " alt="" coords="1069,147,1219,173"/>
|
|
<area shape="poly" title=" " alt="" coords="924,240,1108,170,1110,175,926,245"/>
|
|
<area shape="rect" href="classripple_1_1SField.html" title="Identifies fields." alt="" coords="479,237,586,262"/>
|
|
<area shape="poly" title=" " alt="" coords="600,253,644,256,820,258,820,264,644,261,600,258"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="801,301,953,355"/>
|
|
<area shape="poly" title=" " alt="" coords="558,270,597,301,620,315,645,325,684,335,724,339,801,337,801,342,724,344,683,340,643,331,618,320,594,305,555,274"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="801,155,953,210"/>
|
|
<area shape="poly" title=" " alt="" coords="567,228,603,210,643,196,724,182,801,178,801,184,725,188,645,201,605,215,569,232"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="216,162,303,187"/>
|
|
<area shape="poly" title=" " alt="" coords="317,187,486,234,485,239,316,193"/>
|
|
<area shape="poly" title=" " alt="" coords="316,166,405,158,519,152,647,151,776,159,801,162,801,168,776,164,647,156,520,157,405,164,317,171"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="5,155,144,195"/>
|
|
<area shape="poly" title=" " alt="" coords="158,172,216,172,216,177,158,177"/>
|
|
<area shape="rect" href="classJson_1_1StaticString.html" title="Lightweight wrapper to tag static string." alt="" coords="193,237,325,262"/>
|
|
<area shape="poly" title=" " alt="" coords="339,247,479,247,479,252,339,252"/>
|
|
<area shape="poly" title=" " alt="" coords="787,314,643,283,576,265,578,260,645,277,788,309"/>
|
|
<area shape="poly" title=" " alt="" coords="789,213,777,216,676,235,587,246,586,241,675,229,775,211,787,208"/>
|
|
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="1343,123,1505,163"/>
|
|
<area shape="poly" title=" " alt="" coords="1519,163,1633,191,1632,196,1518,168"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1353,187,1495,227"/>
|
|
<area shape="poly" title=" " alt="" coords="1509,204,1622,204,1622,209,1509,209"/>
|
|
<area shape="poly" title=" " alt="" coords="1233,172,1353,192,1352,197,1232,177"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="833,25,921,50"/>
|
|
<area shape="poly" title=" " alt="" coords="923,53,1046,108,1120,145,1117,150,1044,113,921,58"/>
|
|
<area shape="rect" href="classripple_1_1base__uint.html" title=" " alt="" coords="1615,59,1756,99"/>
|
|
<area shape="poly" title=" " alt="" coords="935,33,1184,30,1345,34,1508,44,1615,60,1614,66,1508,49,1345,39,1184,35,935,38"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/aligned_storage.html" title=" " alt="" coords="800,91,955,131"/>
|
|
<area shape="poly" title=" " alt="" coords="968,125,1075,145,1074,150,967,130"/>
|
|
<area shape="rect" href="classripple_1_1SOTemplate.html" title="Defines the fields and their attributes within a STObject." alt="" coords="1351,307,1497,333"/>
|
|
<area shape="poly" title=" " alt="" coords="1510,321,1546,313,1578,295,1588,281,1590,265,1592,248,1602,230,1621,217,1624,222,1606,234,1597,249,1595,266,1593,283,1582,299,1548,318,1511,326"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1073,369,1215,409"/>
|
|
<area shape="poly" title=" " alt="" coords="1228,366,1371,330,1372,335,1230,371"/>
|
|
<area shape="rect" href="classripple_1_1SOElement.html" title="An element in a SOTemplate." alt="" coords="808,383,947,409"/>
|
|
<area shape="poly" title=" " alt="" coords="960,391,1072,388,1072,394,960,397"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/utility/functional/reference_wrapper.html" title=" " alt="" coords="445,376,620,416"/>
|
|
<area shape="poly" title=" " alt="" coords="634,393,807,393,807,399,634,399"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/vector.html" title=" " alt="" coords="1075,307,1213,333"/>
|
|
<area shape="poly" title=" " alt="" coords="1227,317,1351,317,1351,323,1227,323"/>
|
|
<area shape="rect" href="classripple_1_1CountedObject.html" title=" " alt="" coords="1604,244,1767,284"/>
|
|
<area shape="poly" title=" " alt="" coords="1779,239,1874,217,1876,222,1781,244"/>
|
|
<area shape="poly" title=" " alt="" coords="1738,103,1906,192,1903,196,1735,107"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/array.html" title=" " alt="" coords="1340,59,1508,99"/>
|
|
<area shape="poly" title=" " alt="" coords="1522,76,1615,76,1615,81,1522,81"/>
|
|
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="1093,66,1195,91"/>
|
|
<area shape="poly" title=" " alt="" coords="1209,76,1340,76,1340,81,1209,81"/>
|
|
</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" id="r_a15bc4ecdee698f74680dd8b153550bdb"><td class="memItemLeft" align="right" valign="top">void </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>< <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const > const &, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>< <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const > const &)</td></tr>
|
|
<tr class="separator:a15bc4ecdee698f74680dd8b153550bdb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5ddee0e7936c0d3f07b8b96b5fb354ee" id="r_a5ddee0e7936c0d3f07b8b96b5fb354ee"><td class="memItemLeft" align="right" valign="top">bool </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 &, <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 &, <a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> const &)</td></tr>
|
|
<tr class="separator:a5ddee0e7936c0d3f07b8b96b5fb354ee"><td class="memSeparator" colspan="2"> </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" id="r_af536e4b061b995d3168cde99d45de2d8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>< <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const > > </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"> </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#l00159">159</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">◆ </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 </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>< <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const > const & </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>< <a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const > const & </td>
|
|
<td class="paramname"> </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#l00479">479</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">◆ </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 & </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 </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 </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 & </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 & </td>
|
|
<td class="paramname"><em>j</em> </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#l00489">489</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">◆ </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><<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a><<a class="el" href="namespaceripple.html#abbba3966df1925ac76f6d04c0aa1abe3">SLE</a> const> > 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#l00161">161</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 <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>
|