This commit is contained in:
seelabs
2021-11-19 13:45:43 +00:00
parent e4e2fce0b3
commit ef77e7e117
3534 changed files with 54687 additions and 52679 deletions

View File

@@ -117,7 +117,7 @@ $(function() {
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">digest</a> = <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1DigestAwareReadView.html#abb28ae3cc06d0450b0eae17f0a531a0f">digest</a>(k.<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>);</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">digest</a>)</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">auto</span> sle = <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">cache_</a>.<a class="code" href="classripple_1_1CachedSLEs.html#a8c5f73f01940233efbe84def5d105cee">fetch</a>(*<a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">digest</a>, [&amp;]() { <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(k); });</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">auto</span> sle = <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">cache_</a>.<a class="code" href="classripple_1_1TaggedCache.html#a3560674c26007c744baaedfc8aa0a126">fetch</a>(*<a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">digest</a>, [&amp;]() { <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">read</a>(k); });</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/lock_guard.html">std::lock_guard</a> lock(<a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">mutex_</a>);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> er = <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a7b86aa6f61d2e442e2e8705fb343cbd1">map_</a>.emplace(k.<a class="code" href="structripple_1_1Keylet.html#a482983062843a8682fcea76a309c73db">key</a>, sle);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span>&amp; iter = er.first;</div>
@@ -141,9 +141,8 @@ $(function() {
</div><!-- fragment --></div><!-- contents -->
<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:38</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ac5a3432213732d31649d46d740331a1e"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">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#l00146">CachedView.h:146</a></div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ac5a3432213732d31649d46d740331a1e"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">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="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00146">CachedView.h:146</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_1CachedSLEs_html_a8c5f73f01940233efbe84def5d105cee"><div class="ttname"><a href="classripple_1_1CachedSLEs.html#a8c5f73f01940233efbe84def5d105cee">ripple::CachedSLEs::fetch</a></div><div class="ttdeci">value_type fetch(digest_type const &amp;digest, Handler const &amp;h)</div><div class="ttdoc">Fetch an item from the cache.</div><div class="ttdef"><b>Definition:</b> <a href="CachedSLEs_8h_source.html#l00067">CachedSLEs.h:67</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_af8db00c9a63969516a98cded17930845"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#af8db00c9a63969516a98cded17930845">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="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>
@@ -151,6 +150,7 @@ $(function() {
<div class="ttc" id="aclassripple_1_1ReadView_html_a3351e0244f921234d5ba005a07ddf539"><div class="ttname"><a href="classripple_1_1ReadView.html#a3351e0244f921234d5ba005a07ddf539">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="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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</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_1TaggedCache_html_a3560674c26007c744baaedfc8aa0a126"><div class="ttname"><a href="classripple_1_1TaggedCache.html#a3560674c26007c744baaedfc8aa0a126">ripple::TaggedCache::fetch</a></div><div class="ttdeci">std::shared_ptr&lt; T &gt; fetch(const key_type &amp;key)</div><div class="ttdef"><b>Definition:</b> <a href="TaggedCache_8h_source.html#l00393">TaggedCache.h:393</a></div></div>
<div class="ttc" id="anamespaceripple_html_aefd2f77338ce3c9a2fffc4f0b289b483"><div class="ttname"><a href="namespaceripple.html#aefd2f77338ce3c9a2fffc4f0b289b483">ripple::LogicError</a></div><div class="ttdeci">void LogicError(std::string const &amp;how) noexcept</div><div class="ttdoc">Called when faulty logic causes a broken invariant.</div><div class="ttdef"><b>Definition:</b> <a href="contract_8cpp_source.html#l00048">contract.cpp:48</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="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#l00026">Keylet.cpp:26</a></div></div>