mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +00:00
deploy: afc05659ed
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<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="generator" content="Doxygen 1.9.8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>rippled: LedgerTrie_test.cpp Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -29,7 +29,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<!-- 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');
|
||||
@@ -46,6 +46,11 @@ $(function() {
|
||||
/* @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()"
|
||||
@@ -106,9 +111,11 @@ $(function() {
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span>test {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
||||
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html"> 31</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1LedgerTrie__test.html">LedgerTrie_test</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>{</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00034" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a27ae0412634dfe9956f294980c4407eb"> 34</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a27ae0412634dfe9956f294980c4407eb">testInsert</a>()</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> {</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -234,8 +241,10 @@ $(function() {
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">branchSupport</a>(h[<span class="stringliteral">"a"</span>]) == 6);</div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> }</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00161" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a3154fc0065b86577bef1672451eeef59"> 161</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a3154fc0065b86577bef1672451eeef59">testRemove</a>()</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> {</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -366,8 +375,10 @@ $(function() {
|
||||
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">branchSupport</a>(h[<span class="stringliteral">"ab"</span>]) == 1);</div>
|
||||
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> }</div>
|
||||
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> </div>
|
||||
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00293" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a7cf4e9c7bb80effcd76d809c57eba0e6"> 293</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a7cf4e9c7bb80effcd76d809c57eba0e6">testEmpty</a>()</div>
|
||||
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> {</div>
|
||||
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -386,8 +397,10 @@ $(function() {
|
||||
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ae39438d885031f58c1045ad727823121">remove</a>(h[<span class="stringliteral">"abc"</span>]);</div>
|
||||
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#a2dabb9996f229ce5dfdb82fbf904d521">empty</a>());</div>
|
||||
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> </div>
|
||||
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00313" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a319a5799c220e9af13f2d223dd4c20e7"> 313</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a319a5799c220e9af13f2d223dd4c20e7">testSupport</a>()</div>
|
||||
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> {</div>
|
||||
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -433,8 +446,10 @@ $(function() {
|
||||
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">branchSupport</a>(h[<span class="stringliteral">"abc"</span>]) == 0);</div>
|
||||
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">branchSupport</a>(h[<span class="stringliteral">"abe"</span>]) == 1);</div>
|
||||
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> </div>
|
||||
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00360" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a42477c0d3a28d1f88074c949e2a91789"> 360</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a42477c0d3a28d1f88074c949e2a91789">testGetPreferred</a>()</div>
|
||||
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> {</div>
|
||||
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -442,8 +457,8 @@ $(function() {
|
||||
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> <span class="comment">// Empty</span></div>
|
||||
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> {</div>
|
||||
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> <a class="code hl_class" href="classripple_1_1LedgerTrie.html">LedgerTrie<Ledger></a> t;</div>
|
||||
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{0}) == std::nullopt);</div>
|
||||
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{2}) == std::nullopt);</div>
|
||||
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{0}) == <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>);</div>
|
||||
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{2}) == <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>);</div>
|
||||
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> }</div>
|
||||
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> <span class="comment">// Genesis support is NOT empty</span></div>
|
||||
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> {</div>
|
||||
@@ -453,7 +468,7 @@ $(function() {
|
||||
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#a83e81099b1cded82b5d679a80f646ae2">insert</a>(genesis);</div>
|
||||
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{0})->id == genesis.id());</div>
|
||||
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ae39438d885031f58c1045ad727823121">remove</a>(genesis));</div>
|
||||
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{0}) == std::nullopt);</div>
|
||||
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{0}) == <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>);</div>
|
||||
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> BEAST_EXPECT(!t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ae39438d885031f58c1045ad727823121">remove</a>(genesis));</div>
|
||||
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> }</div>
|
||||
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> <span class="comment">// Single node no children</span></div>
|
||||
@@ -624,8 +639,10 @@ $(function() {
|
||||
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno"> 590</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">getPreferred</a>(Seq{5})->id == h[<span class="stringliteral">"ab"</span>].id());</div>
|
||||
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno"> 591</span> }</div>
|
||||
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno"> 592</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno"> 593</span> </div>
|
||||
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno"> 594</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00595" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#abc6b2311c06cb9f95ccd1fdbae2db210"> 595</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#abc6b2311c06cb9f95ccd1fdbae2db210">testRootRelated</a>()</div>
|
||||
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno"> 596</span> {</div>
|
||||
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno"> 597</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -653,8 +670,10 @@ $(function() {
|
||||
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno"> 619</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">branchSupport</a>(h[<span class="stringliteral">""</span>]) == 1);</div>
|
||||
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno"> 620</span> BEAST_EXPECT(t.<a class="code hl_function" href="classripple_1_1LedgerTrie.html#a6d723672c2cc27ee8815f4d3ce1d82eb">tipSupport</a>(h[<span class="stringliteral">""</span>]) == 0);</div>
|
||||
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno"> 621</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno"> 622</span> </div>
|
||||
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno"> 623</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00624" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a19500e934c89b469cece0f0d5bebee1f"> 624</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a19500e934c89b469cece0f0d5bebee1f">testStress</a>()</div>
|
||||
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno"> 625</span> {</div>
|
||||
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno"> 626</span> <span class="keyword">using namespace </span>csf;</div>
|
||||
@@ -698,8 +717,10 @@ $(function() {
|
||||
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno"> 664</span> <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno"> 665</span> }</div>
|
||||
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno"> 666</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno"> 667</span> </div>
|
||||
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno"> 668</span> <span class="keywordtype">void</span></div>
|
||||
<div class="foldopen" id="foldopen00669" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1LedgerTrie__test.html#a21dcf6495d2c4adf0d595fd02bbda82b"> 669</a></span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a21dcf6495d2c4adf0d595fd02bbda82b">run</a>()<span class="keyword"> override</span></div>
|
||||
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno"> 670</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno"> 671</span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a27ae0412634dfe9956f294980c4407eb">testInsert</a>();</div>
|
||||
@@ -710,40 +731,43 @@ $(function() {
|
||||
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno"> 676</span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#abc6b2311c06cb9f95ccd1fdbae2db210">testRootRelated</a>();</div>
|
||||
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno"> 677</span> <a class="code hl_function" href="classripple_1_1test_1_1LedgerTrie__test.html#a19500e934c89b469cece0f0d5bebee1f">testStress</a>();</div>
|
||||
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno"> 678</span> }</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno"> 679</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno"> 680</span> </div>
|
||||
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test.html#a2d949529106be8ad9e6d26bc39948702"> 681</a></span>BEAST_DEFINE_TESTSUITE(<a class="code hl_class" href="classripple_1_1LedgerTrie.html">LedgerTrie</a>, consensus, <a class="code hl_namespace" href="namespaceripple.html">ripple</a>);</div>
|
||||
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno"> 682</span>} <span class="comment">// namespace test</span></div>
|
||||
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno"> 683</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition:</b> <a href="suite_8h_source.html#l00054">suite.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html"><div class="ttname"><a href="classripple_1_1LedgerTrie.html">ripple::LedgerTrie</a></div><div class="ttdoc">Ancestry trie of ledgers.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00350">LedgerTrie.h:351</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_a2dabb9996f229ce5dfdb82fbf904d521"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#a2dabb9996f229ce5dfdb82fbf904d521">ripple::LedgerTrie::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Return whether the trie is tracking any ledgers.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00783">LedgerTrie.h:783</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_a6d723672c2cc27ee8815f4d3ce1d82eb"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#a6d723672c2cc27ee8815f4d3ce1d82eb">ripple::LedgerTrie::tipSupport</a></div><div class="ttdeci">std::uint32_t tipSupport(Ledger const &ledger) const</div><div class="ttdoc">Return count of tip support for the specific ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00597">LedgerTrie.h:597</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_a83e81099b1cded82b5d679a80f646ae2"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#a83e81099b1cded82b5d679a80f646ae2">ripple::LedgerTrie::insert</a></div><div class="ttdeci">void insert(Ledger const &ledger, std::uint32_t count=1)</div><div class="ttdoc">Insert and/or increment the support for the given ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00453">LedgerTrie.h:453</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_aaad699afb36cc8ad5b31f00c3cc38e4c"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">ripple::LedgerTrie::getPreferred</a></div><div class="ttdeci">std::optional< SpanTip< Ledger > > getPreferred(Seq const largestIssued) const</div><div class="ttdoc">Return the preferred ledger ID.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00685">LedgerTrie.h:685</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_ab309fde8ae0efdd1945604cf12c7781e"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">ripple::LedgerTrie::branchSupport</a></div><div class="ttdeci">std::uint32_t branchSupport(Ledger const &ledger) const</div><div class="ttdoc">Return the count of branch support for the specific ledger.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00611">LedgerTrie.h:611</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_ae39438d885031f58c1045ad727823121"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#ae39438d885031f58c1045ad727823121">ripple::LedgerTrie::remove</a></div><div class="ttdeci">bool remove(Ledger const &ledger, std::uint32_t count=1)</div><div class="ttdoc">Decrease support for a ledger, removing and compressing if possible.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00541">LedgerTrie.h:541</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_afc1528ebb53bf5d632a17092eb7cefb8"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#afc1528ebb53bf5d632a17092eb7cefb8">ripple::LedgerTrie::checkInvariants</a></div><div class="ttdeci">bool checkInvariants() const</div><div class="ttdoc">Check the compressed trie and support invariants.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie_8h_source.html#l00812">LedgerTrie.h:812</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Ledger_html"><div class="ttname"><a href="classripple_1_1Ledger.html">ripple::Ledger</a></div><div class="ttdoc">Holds a ledger.</div><div class="ttdef"><b>Definition:</b> <a href="Ledger_8h_source.html#l00076">Ledger.h:80</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html">ripple::test::LedgerTrie_test</a></div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00031">LedgerTrie_test.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a19500e934c89b469cece0f0d5bebee1f"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a19500e934c89b469cece0f0d5bebee1f">ripple::test::LedgerTrie_test::testStress</a></div><div class="ttdeci">void testStress()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00624">LedgerTrie_test.cpp:624</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a21dcf6495d2c4adf0d595fd02bbda82b"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a21dcf6495d2c4adf0d595fd02bbda82b">ripple::test::LedgerTrie_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00669">LedgerTrie_test.cpp:669</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a27ae0412634dfe9956f294980c4407eb"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a27ae0412634dfe9956f294980c4407eb">ripple::test::LedgerTrie_test::testInsert</a></div><div class="ttdeci">void testInsert()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00034">LedgerTrie_test.cpp:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a3154fc0065b86577bef1672451eeef59"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a3154fc0065b86577bef1672451eeef59">ripple::test::LedgerTrie_test::testRemove</a></div><div class="ttdeci">void testRemove()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00161">LedgerTrie_test.cpp:161</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a319a5799c220e9af13f2d223dd4c20e7"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a319a5799c220e9af13f2d223dd4c20e7">ripple::test::LedgerTrie_test::testSupport</a></div><div class="ttdeci">void testSupport()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00313">LedgerTrie_test.cpp:313</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a42477c0d3a28d1f88074c949e2a91789"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a42477c0d3a28d1f88074c949e2a91789">ripple::test::LedgerTrie_test::testGetPreferred</a></div><div class="ttdeci">void testGetPreferred()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00360">LedgerTrie_test.cpp:360</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a7cf4e9c7bb80effcd76d809c57eba0e6"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a7cf4e9c7bb80effcd76d809c57eba0e6">ripple::test::LedgerTrie_test::testEmpty</a></div><div class="ttdeci">void testEmpty()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00293">LedgerTrie_test.cpp:293</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_abc6b2311c06cb9f95ccd1fdbae2db210"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#abc6b2311c06cb9f95ccd1fdbae2db210">ripple::test::LedgerTrie_test::testRootRelated</a></div><div class="ttdeci">void testRootRelated()</div><div class="ttdef"><b>Definition:</b> <a href="LedgerTrie__test_8cpp_source.html#l00595">LedgerTrie_test.cpp:595</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00054">suite.h:55</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html"><div class="ttname"><a href="classripple_1_1LedgerTrie.html">ripple::LedgerTrie</a></div><div class="ttdoc">Ancestry trie of ledgers.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00350">LedgerTrie.h:351</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_a2dabb9996f229ce5dfdb82fbf904d521"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#a2dabb9996f229ce5dfdb82fbf904d521">ripple::LedgerTrie::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Return whether the trie is tracking any ledgers.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00783">LedgerTrie.h:783</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_a6d723672c2cc27ee8815f4d3ce1d82eb"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#a6d723672c2cc27ee8815f4d3ce1d82eb">ripple::LedgerTrie::tipSupport</a></div><div class="ttdeci">std::uint32_t tipSupport(Ledger const &ledger) const</div><div class="ttdoc">Return count of tip support for the specific ledger.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00597">LedgerTrie.h:597</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_a83e81099b1cded82b5d679a80f646ae2"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#a83e81099b1cded82b5d679a80f646ae2">ripple::LedgerTrie::insert</a></div><div class="ttdeci">void insert(Ledger const &ledger, std::uint32_t count=1)</div><div class="ttdoc">Insert and/or increment the support for the given ledger.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00453">LedgerTrie.h:453</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_aaad699afb36cc8ad5b31f00c3cc38e4c"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#aaad699afb36cc8ad5b31f00c3cc38e4c">ripple::LedgerTrie::getPreferred</a></div><div class="ttdeci">std::optional< SpanTip< Ledger > > getPreferred(Seq const largestIssued) const</div><div class="ttdoc">Return the preferred ledger ID.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00685">LedgerTrie.h:685</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_ab309fde8ae0efdd1945604cf12c7781e"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#ab309fde8ae0efdd1945604cf12c7781e">ripple::LedgerTrie::branchSupport</a></div><div class="ttdeci">std::uint32_t branchSupport(Ledger const &ledger) const</div><div class="ttdoc">Return the count of branch support for the specific ledger.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00611">LedgerTrie.h:611</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_ae39438d885031f58c1045ad727823121"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#ae39438d885031f58c1045ad727823121">ripple::LedgerTrie::remove</a></div><div class="ttdeci">bool remove(Ledger const &ledger, std::uint32_t count=1)</div><div class="ttdoc">Decrease support for a ledger, removing and compressing if possible.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00541">LedgerTrie.h:541</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1LedgerTrie_html_afc1528ebb53bf5d632a17092eb7cefb8"><div class="ttname"><a href="classripple_1_1LedgerTrie.html#afc1528ebb53bf5d632a17092eb7cefb8">ripple::LedgerTrie::checkInvariants</a></div><div class="ttdeci">bool checkInvariants() const</div><div class="ttdoc">Check the compressed trie and support invariants.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie_8h_source.html#l00812">LedgerTrie.h:812</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Ledger_html"><div class="ttname"><a href="classripple_1_1Ledger.html">ripple::Ledger</a></div><div class="ttdoc">Holds a ledger.</div><div class="ttdef"><b>Definition</b> <a href="Ledger_8h_source.html#l00076">Ledger.h:80</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html">ripple::test::LedgerTrie_test</a></div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00031">LedgerTrie_test.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a19500e934c89b469cece0f0d5bebee1f"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a19500e934c89b469cece0f0d5bebee1f">ripple::test::LedgerTrie_test::testStress</a></div><div class="ttdeci">void testStress()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00624">LedgerTrie_test.cpp:624</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a21dcf6495d2c4adf0d595fd02bbda82b"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a21dcf6495d2c4adf0d595fd02bbda82b">ripple::test::LedgerTrie_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00669">LedgerTrie_test.cpp:669</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a27ae0412634dfe9956f294980c4407eb"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a27ae0412634dfe9956f294980c4407eb">ripple::test::LedgerTrie_test::testInsert</a></div><div class="ttdeci">void testInsert()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00034">LedgerTrie_test.cpp:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a3154fc0065b86577bef1672451eeef59"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a3154fc0065b86577bef1672451eeef59">ripple::test::LedgerTrie_test::testRemove</a></div><div class="ttdeci">void testRemove()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00161">LedgerTrie_test.cpp:161</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a319a5799c220e9af13f2d223dd4c20e7"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a319a5799c220e9af13f2d223dd4c20e7">ripple::test::LedgerTrie_test::testSupport</a></div><div class="ttdeci">void testSupport()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00313">LedgerTrie_test.cpp:313</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a42477c0d3a28d1f88074c949e2a91789"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a42477c0d3a28d1f88074c949e2a91789">ripple::test::LedgerTrie_test::testGetPreferred</a></div><div class="ttdeci">void testGetPreferred()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00360">LedgerTrie_test.cpp:360</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_a7cf4e9c7bb80effcd76d809c57eba0e6"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#a7cf4e9c7bb80effcd76d809c57eba0e6">ripple::test::LedgerTrie_test::testEmpty</a></div><div class="ttdeci">void testEmpty()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00293">LedgerTrie_test.cpp:293</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1test_1_1LedgerTrie__test_html_abc6b2311c06cb9f95ccd1fdbae2db210"><div class="ttname"><a href="classripple_1_1test_1_1LedgerTrie__test.html#abc6b2311c06cb9f95ccd1fdbae2db210">ripple::test::LedgerTrie_test::testRootRelated</a></div><div class="ttdeci">void testRootRelated()</div><div class="ttdef"><b>Definition</b> <a href="LedgerTrie__test_8cpp_source.html#l00595">LedgerTrie_test.cpp:595</a></div></div>
|
||||
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</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="amersenne_twister_engine_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine.html">std::mt19937</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#l00025">algorithm.h:25</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#l00025">algorithm.h:25</a></div></div>
|
||||
<div class="ttc" id="arandom_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/random.html">random</a></div></div>
|
||||
<div class="ttc" id="auniform_int_distribution_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution.html">std::uniform_int_distribution</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.5
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user