This commit is contained in:
bthomee
2025-08-19 09:49:50 -07:00
parent bb5efdeec8
commit e7f4ae8bed
14888 changed files with 259444 additions and 168566 deletions

View File

@@ -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: CachedView.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&amp;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&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
@@ -103,12 +108,15 @@ $(function() {
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">namespace </span>detail {</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keywordtype">bool</span></div>
<div class="foldopen" id="foldopen00028" data-start="{" data-end="}">
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078"> 28</a></span><a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">CachedViewImpl::exists</a>(<a class="code hl_struct" href="structripple_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>&amp; k)<span class="keyword"> const</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b">read</a>(k) != <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span>}</div>
</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><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr&lt;SLE const&gt;</a></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_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b"> 34</a></span><a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b">CachedViewImpl::read</a>(<a class="code hl_struct" href="structripple_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>&amp; k)<span class="keyword"> const</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">static</span> <a class="code hl_class" href="classripple_1_1CountedObjects_1_1Counter.html">CountedObjects::Counter</a> hits{<span class="stringliteral">&quot;CachedView::hit&quot;</span>};</div>
@@ -158,31 +166,32 @@ $(function() {
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> sle;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>}</div>
</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>} <span class="comment">// namespace detail</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span>} <span class="comment">// namespace ripple</span></div>
<div class="ttc" id="aclassripple_1_1CountedObjects_1_1Counter_html"><div class="ttname"><a href="classripple_1_1CountedObjects_1_1Counter.html">ripple::CountedObjects::Counter</a></div><div class="ttdoc">Implementation for CountedObject.</div><div class="ttdef"><b>Definition:</b> <a href="CountedObject_8h_source.html#l00050">CountedObject.h:51</a></div></div>
<div class="ttc" id="aclassripple_1_1CountedObjects_1_1Counter_html"><div class="ttname"><a href="classripple_1_1CountedObjects_1_1Counter.html">ripple::CountedObjects::Counter</a></div><div class="ttdoc">Implementation for CountedObject.</div><div class="ttdef"><b>Definition</b> <a href="CountedObject_8h_source.html#l00050">CountedObject.h:51</a></div></div>
<div class="ttc" id="aclassripple_1_1DigestAwareReadView_html_a5ad294c301202590c41d55ec7b506edc"><div class="ttname"><a href="classripple_1_1DigestAwareReadView.html#a5ad294c301202590c41d55ec7b506edc">ripple::DigestAwareReadView::digest</a></div><div class="ttdeci">virtual std::optional&lt; digest_type &gt; digest(key_type const &amp;key) const =0</div><div class="ttdoc">Return the digest associated with the key.</div></div>
<div class="ttc" id="aclassripple_1_1ReadView_html_a0583a050ea7799ba331f6222a905f304"><div class="ttname"><a href="classripple_1_1ReadView.html#a0583a050ea7799ba331f6222a905f304">ripple::ReadView::read</a></div><div class="ttdeci">virtual std::shared_ptr&lt; SLE const &gt; read(Keylet const &amp;k) const =0</div><div class="ttdoc">Return the state item associated with a key.</div></div>
<div class="ttc" id="aclassripple_1_1TaggedCache_html_a39c3d21dc96fc55d88a5b003f05ef65a"><div class="ttname"><a href="classripple_1_1TaggedCache.html#a39c3d21dc96fc55d88a5b003f05ef65a">ripple::TaggedCache::fetch</a></div><div class="ttdeci">SharedPointerType fetch(key_type const &amp;key)</div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a3a33558e8776cb28bb8d122d61c701fa"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a3a33558e8776cb28bb8d122d61c701fa">ripple::detail::CachedViewImpl::digest</a></div><div class="ttdeci">std::optional&lt; digest_type &gt; digest(key_type const &amp;key) const override</div><div class="ttdoc">Return the digest associated with the key.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00143">CachedView.h:143</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a463c3b77580aa8e9b2a945a4b56ca748"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">ripple::detail::CachedViewImpl::cache_</a></div><div class="ttdeci">CachedSLEs &amp; cache_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00039">CachedView.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a470f48833caf730009dcfc76428aacf2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">ripple::detail::CachedViewImpl::base_</a></div><div class="ttdeci">DigestAwareReadView const &amp; base_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00038">CachedView.h:38</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a582680a14129f2d3e08018a3044a0b4b"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b">ripple::detail::CachedViewImpl::read</a></div><div class="ttdeci">std::shared_ptr&lt; SLE const &gt; read(Keylet const &amp;k) const override</div><div class="ttdoc">Return the state item associated with a key.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8cpp_source.html#l00034">CachedView.cpp:34</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a68bb9ce15af8016d45d70129fb269078"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">ripple::detail::CachedViewImpl::exists</a></div><div class="ttdeci">bool exists(Keylet const &amp;k) const override</div><div class="ttdoc">Determine if a state item exists.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8cpp_source.html#l00028">CachedView.cpp:28</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a7f2a80272a6891bb4ac27a26ac3e91d2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2">ripple::detail::CachedViewImpl::map_</a></div><div class="ttdeci">std::unordered_map&lt; key_type, uint256, hardened_hash&lt;&gt; &gt; map_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00041">CachedView.h:41</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_af882e84e266d9b4bc2194de80b638898"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">ripple::detail::CachedViewImpl::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00040">CachedView.h:40</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a3a33558e8776cb28bb8d122d61c701fa"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a3a33558e8776cb28bb8d122d61c701fa">ripple::detail::CachedViewImpl::digest</a></div><div class="ttdeci">std::optional&lt; digest_type &gt; digest(key_type const &amp;key) const override</div><div class="ttdoc">Return the digest associated with the key.</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8h_source.html#l00143">CachedView.h:143</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a463c3b77580aa8e9b2a945a4b56ca748"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">ripple::detail::CachedViewImpl::cache_</a></div><div class="ttdeci">CachedSLEs &amp; cache_</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8h_source.html#l00039">CachedView.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a470f48833caf730009dcfc76428aacf2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">ripple::detail::CachedViewImpl::base_</a></div><div class="ttdeci">DigestAwareReadView const &amp; base_</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8h_source.html#l00038">CachedView.h:38</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a582680a14129f2d3e08018a3044a0b4b"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b">ripple::detail::CachedViewImpl::read</a></div><div class="ttdeci">std::shared_ptr&lt; SLE const &gt; read(Keylet const &amp;k) const override</div><div class="ttdoc">Return the state item associated with a key.</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8cpp_source.html#l00034">CachedView.cpp:34</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a68bb9ce15af8016d45d70129fb269078"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">ripple::detail::CachedViewImpl::exists</a></div><div class="ttdeci">bool exists(Keylet const &amp;k) const override</div><div class="ttdoc">Determine if a state item exists.</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8cpp_source.html#l00028">CachedView.cpp:28</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a7f2a80272a6891bb4ac27a26ac3e91d2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2">ripple::detail::CachedViewImpl::map_</a></div><div class="ttdeci">std::unordered_map&lt; key_type, uint256, hardened_hash&lt;&gt; &gt; map_</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8h_source.html#l00041">CachedView.h:41</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_af882e84e266d9b4bc2194de80b638898"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">ripple::detail::CachedViewImpl::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition</b> <a href="CachedView_8h_source.html#l00040">CachedView.h:40</a></div></div>
<div class="ttc" id="alock_guard_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</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="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="astructripple_1_1Keylet_html"><div class="ttname"><a href="structripple_1_1Keylet.html">ripple::Keylet</a></div><div class="ttdoc">A pair of SHAMap key and LedgerEntryType.</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8h_source.html#l00038">Keylet.h:39</a></div></div>
<div class="ttc" id="astructripple_1_1Keylet_html_a1e8ccd4a50a894a338c789fc566d8802"><div class="ttname"><a href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802">ripple::Keylet::check</a></div><div class="ttdeci">bool check(STLedgerEntry const &amp;) const</div><div class="ttdoc">Returns true if the SLE matches the type.</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8cpp_source.html#l00028">Keylet.cpp:28</a></div></div>
<div class="ttc" id="astructripple_1_1Keylet_html_a482983062843a8682fcea76a309c73db"><div class="ttname"><a href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">ripple::Keylet::key</a></div><div class="ttdeci">uint256 key</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8h_source.html#l00040">Keylet.h:40</a></div></div>
<div class="ttc" id="astructripple_1_1Keylet_html"><div class="ttname"><a href="structripple_1_1Keylet.html">ripple::Keylet</a></div><div class="ttdoc">A pair of SHAMap key and LedgerEntryType.</div><div class="ttdef"><b>Definition</b> <a href="Keylet_8h_source.html#l00038">Keylet.h:39</a></div></div>
<div class="ttc" id="astructripple_1_1Keylet_html_a1e8ccd4a50a894a338c789fc566d8802"><div class="ttname"><a href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802">ripple::Keylet::check</a></div><div class="ttdeci">bool check(STLedgerEntry const &amp;) const</div><div class="ttdoc">Returns true if the SLE matches the type.</div><div class="ttdef"><b>Definition</b> <a href="Keylet_8cpp_source.html#l00028">Keylet.cpp:28</a></div></div>
<div class="ttc" id="astructripple_1_1Keylet_html_a482983062843a8682fcea76a309c73db"><div class="ttname"><a href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">ripple::Keylet::key</a></div><div class="ttdeci">uint256 key</div><div class="ttdef"><b>Definition</b> <a href="Keylet_8h_source.html#l00040">Keylet.h:40</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>