Files
rippled/classripple_1_1ManifestCache.html
2025-11-04 00:36:48 -08:00

792 lines
50 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::ManifestCache 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&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_1ManifestCache.html">ManifestCache</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_1ManifestCache-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">ripple::ManifestCache Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Remembers manifests with the highest sequence number.
<a href="classripple_1_1ManifestCache.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="Manifest_8h_source.html">Manifest.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for ripple::ManifestCache:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1ManifestCache__coll__graph.png" border="0" usemap="#aripple_1_1ManifestCache_coll__map" alt="Collaboration graph"/></div>
<map name="aripple_1_1ManifestCache_coll__map" id="aripple_1_1ManifestCache_coll__map">
<area shape="rect" title="Remembers manifests with the highest sequence number." alt="" coords="1163,123,1327,149"/>
<area shape="rect" href="classbeast_1_1Journal.html" title="A generic endpoint for log messages." alt="" coords="930,10,1041,35"/>
<area shape="poly" title=" " alt="" coords="1032,38,1140,84,1218,121,1216,126,1138,89,1030,43"/>
<area shape="rect" href="classbeast_1_1Journal_1_1Sink.html" title="Abstraction for the underlying message destination." alt="" coords="508,6,655,31"/>
<area shape="poly" title=" " alt="" coords="668,17,930,19,930,25,668,22"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/thread/shared_mutex.html" title=" " alt="" coords="914,71,1057,97"/>
<area shape="poly" title=" " alt="" coords="1063,97,1181,121,1180,126,1062,102"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="909,191,1061,246"/>
<area shape="poly" title=" " alt="" coords="1074,188,1203,146,1204,151,1075,193"/>
<area shape="rect" href="classripple_1_1PublicKey.html" title="A public key." alt="" coords="241,297,372,322"/>
<area shape="poly" title=" " alt="" coords="385,296,909,226,909,231,386,302"/>
<area shape="rect" href="structripple_1_1Manifest.html" title=" " alt="" coords="519,206,643,231"/>
<area shape="poly" title=" " alt="" coords="358,290,541,229,543,234,360,295"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/container/unordered_map.html" title=" " alt="" coords="706,337,858,391"/>
<area shape="poly" title=" " alt="" coords="341,326,373,342,409,355,487,368,566,373,641,373,706,369,706,375,642,378,566,378,486,373,407,360,371,347,338,331"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/size_t.html" title=" " alt="" coords="31,321,119,346"/>
<area shape="poly" title=" " alt="" coords="133,330,205,325,244,319,245,325,206,331,133,335"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="27,271,122,297"/>
<area shape="poly" title=" " alt="" coords="136,288,241,300,241,305,135,293"/>
<area shape="poly" title=" " alt="" coords="657,216,909,216,909,221,657,221"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="263,150,350,175"/>
<area shape="poly" title=" " alt="" coords="364,172,520,204,519,209,363,177"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/string/basic_string.html" title=" " alt="" coords="5,143,144,183"/>
<area shape="poly" title=" " alt="" coords="158,160,263,160,263,165,158,165"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/utility/optional.html" title=" " alt="" coords="229,200,384,240"/>
<area shape="poly" title=" " alt="" coords="398,217,519,216,519,222,398,222"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/types/integer.html" title=" " alt="" coords="255,79,358,105"/>
<area shape="poly" title=" " alt="" coords="372,106,428,124,485,148,530,176,566,203,563,208,527,181,483,153,426,129,370,111"/>
<area shape="rect" target="_parent" href="http://en.cppreference.com/w/cpp/atomic/atomic.html" title=" " alt="" coords="679,90,885,115"/>
<area shape="poly" title=" " alt="" coords="372,91,679,98,679,103,372,96"/>
<area shape="poly" title=" " alt="" coords="871,340,964,311,1060,270,1111,239,1158,205,1228,147,1231,151,1162,209,1114,244,1063,274,966,316,872,345"/>
<area shape="poly" title=" " alt="" coords="867,115,910,120,1043,129,1163,133,1162,138,1043,134,909,125,867,120"/>
</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:a2c088a5eb9f576fc06b07a5a91877093" id="r_a2c088a5eb9f576fc06b07a5a91877093"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a2c088a5eb9f576fc06b07a5a91877093">ManifestCache</a> (<a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> j=<a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>(<a class="el" href="classbeast_1_1Journal.html#a930d70ff72f71414fcd5b560610cefb6">beast::Journal::getNullSink</a>()))</td></tr>
<tr class="separator:a2c088a5eb9f576fc06b07a5a91877093"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55b2fe63f46ce104f2dffb351e792c79" id="r_a55b2fe63f46ce104f2dffb351e792c79"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a55b2fe63f46ce104f2dffb351e792c79">sequence</a> () const</td></tr>
<tr class="memdesc:a55b2fe63f46ce104f2dffb351e792c79"><td class="mdescLeft">&#160;</td><td class="mdescRight">A monotonically increasing number used to detect new manifests. <br /></td></tr>
<tr class="separator:a55b2fe63f46ce104f2dffb351e792c79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a557c94c2a57c5bbe75557524420b1e9d" id="r_a557c94c2a57c5bbe75557524420b1e9d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a557c94c2a57c5bbe75557524420b1e9d">getSigningKey</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;pk) const</td></tr>
<tr class="memdesc:a557c94c2a57c5bbe75557524420b1e9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns master key's current signing key. <br /></td></tr>
<tr class="separator:a557c94c2a57c5bbe75557524420b1e9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbe8167cfd5ac328a9bf8b85c319ddc1" id="r_adbe8167cfd5ac328a9bf8b85c319ddc1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#adbe8167cfd5ac328a9bf8b85c319ddc1">getMasterKey</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;pk) const</td></tr>
<tr class="memdesc:adbe8167cfd5ac328a9bf8b85c319ddc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns ephemeral signing key's master public key. <br /></td></tr>
<tr class="separator:adbe8167cfd5ac328a9bf8b85c319ddc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a093d015f0c2d38111f217ab167a3973d" id="r_a093d015f0c2d38111f217ab167a3973d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a093d015f0c2d38111f217ab167a3973d">getSequence</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;pk) const</td></tr>
<tr class="memdesc:a093d015f0c2d38111f217ab167a3973d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns master key's current manifest sequence. <br /></td></tr>
<tr class="separator:a093d015f0c2d38111f217ab167a3973d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3996fe85083b04c4f568cd527a84dc8" id="r_ae3996fe85083b04c4f568cd527a84dc8"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#ae3996fe85083b04c4f568cd527a84dc8">getDomain</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;pk) const</td></tr>
<tr class="memdesc:ae3996fe85083b04c4f568cd527a84dc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns domain claimed by a given public key. <br /></td></tr>
<tr class="separator:ae3996fe85083b04c4f568cd527a84dc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fd705df2aded2766ea1e5a98eb0ca74" id="r_a4fd705df2aded2766ea1e5a98eb0ca74"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a4fd705df2aded2766ea1e5a98eb0ca74">getManifest</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;pk) const</td></tr>
<tr class="memdesc:a4fd705df2aded2766ea1e5a98eb0ca74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns mainfest corresponding to a given public key. <br /></td></tr>
<tr class="separator:a4fd705df2aded2766ea1e5a98eb0ca74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6494e744b90cbecd735b460fcd7be82f" id="r_a6494e744b90cbecd735b460fcd7be82f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a6494e744b90cbecd735b460fcd7be82f">revoked</a> (<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;pk) const</td></tr>
<tr class="memdesc:a6494e744b90cbecd735b460fcd7be82f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns <code>true</code> if master key has been revoked in a manifest. <br /></td></tr>
<tr class="separator:a6494e744b90cbecd735b460fcd7be82f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a882c588d2f26d7d61ae3ffe4212cbae0" id="r_a882c588d2f26d7d61ae3ffe4212cbae0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#a8a16d6f665a032453ec4cbfca01929b6">ManifestDisposition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a882c588d2f26d7d61ae3ffe4212cbae0">applyManifest</a> (<a class="el" href="structripple_1_1Manifest.html">Manifest</a> m)</td></tr>
<tr class="memdesc:a882c588d2f26d7d61ae3ffe4212cbae0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add manifest to cache. <br /></td></tr>
<tr class="separator:a882c588d2f26d7d61ae3ffe4212cbae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac42643e71e254d658a38a61a070864c6" id="r_ac42643e71e254d658a38a61a070864c6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#ac42643e71e254d658a38a61a070864c6">load</a> (<a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a> &amp;dbCon, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;dbTable, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;configManifest, <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/string/basic_string.html">std::string</a> &gt; const &amp;configRevocation)</td></tr>
<tr class="memdesc:ac42643e71e254d658a38a61a070864c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Populate manifest cache with manifests in database and config. <br /></td></tr>
<tr class="separator:ac42643e71e254d658a38a61a070864c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba96a3ca5f51243e21c858537ef16722" id="r_aba96a3ca5f51243e21c858537ef16722"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#aba96a3ca5f51243e21c858537ef16722">load</a> (<a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a> &amp;dbCon, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;dbTable)</td></tr>
<tr class="memdesc:aba96a3ca5f51243e21c858537ef16722"><td class="mdescLeft">&#160;</td><td class="mdescRight">Populate manifest cache with manifests in database. <br /></td></tr>
<tr class="separator:aba96a3ca5f51243e21c858537ef16722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad38243694bc875ac8bff27e7370ef307" id="r_ad38243694bc875ac8bff27e7370ef307"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#ad38243694bc875ac8bff27e7370ef307">save</a> (<a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a> &amp;dbCon, <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;dbTable, <a class="elRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; bool(<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;)&gt; const &amp;isTrusted)</td></tr>
<tr class="memdesc:ad38243694bc875ac8bff27e7370ef307"><td class="mdescLeft">&#160;</td><td class="mdescRight">Save cached manifests to database. <br /></td></tr>
<tr class="separator:ad38243694bc875ac8bff27e7370ef307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f05c967613f99e5f05af017673c6765" id="r_a7f05c967613f99e5f05af017673c6765"><td class="memTemplParams" colspan="2">template&lt;class Function &gt; </td></tr>
<tr class="memitem:a7f05c967613f99e5f05af017673c6765"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a7f05c967613f99e5f05af017673c6765">for_each_manifest</a> (Function &amp;&amp;f) const</td></tr>
<tr class="memdesc:a7f05c967613f99e5f05af017673c6765"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invokes the callback once for every populated manifest. <br /></td></tr>
<tr class="separator:a7f05c967613f99e5f05af017673c6765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2e75cff2c2f79664967d4c0f0bf8284" id="r_ad2e75cff2c2f79664967d4c0f0bf8284"><td class="memTemplParams" colspan="2">template&lt;class PreFun , class EachFun &gt; </td></tr>
<tr class="memitem:ad2e75cff2c2f79664967d4c0f0bf8284"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#ad2e75cff2c2f79664967d4c0f0bf8284">for_each_manifest</a> (PreFun &amp;&amp;pf, EachFun &amp;&amp;f) const</td></tr>
<tr class="memdesc:ad2e75cff2c2f79664967d4c0f0bf8284"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invokes the callback once for every populated manifest. <br /></td></tr>
<tr class="separator:ad2e75cff2c2f79664967d4c0f0bf8284"><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:a78e50a3a9a3c02e82874340a07eaef5d" id="r_a78e50a3a9a3c02e82874340a07eaef5d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a78e50a3a9a3c02e82874340a07eaef5d">j_</a></td></tr>
<tr class="separator:a78e50a3a9a3c02e82874340a07eaef5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c8a04996a9f90aa043d52e83db15935" id="r_a5c8a04996a9f90aa043d52e83db15935"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/thread/shared_mutex.html">std::shared_mutex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a5c8a04996a9f90aa043d52e83db15935">mutex_</a></td></tr>
<tr class="separator:a5c8a04996a9f90aa043d52e83db15935"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2506c2817784a9f62f8ecf0f151fcf9" id="r_ab2506c2817784a9f62f8ecf0f151fcf9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt; <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>, <a class="el" href="structripple_1_1Manifest.html">Manifest</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#ab2506c2817784a9f62f8ecf0f151fcf9">map_</a></td></tr>
<tr class="memdesc:ab2506c2817784a9f62f8ecf0f151fcf9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Active manifests stored by master public key. <br /></td></tr>
<tr class="separator:ab2506c2817784a9f62f8ecf0f151fcf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23063af048722db1bc29db23e2c86d0f" id="r_a23063af048722db1bc29db23e2c86d0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt; <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>, <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#a23063af048722db1bc29db23e2c86d0f">signingToMasterKeys_</a></td></tr>
<tr class="memdesc:a23063af048722db1bc29db23e2c86d0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Master public keys stored by current ephemeral public key. <br /></td></tr>
<tr class="separator:a23063af048722db1bc29db23e2c86d0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd2b0682f4ce9cafc0b643c332e053b" id="r_acfd2b0682f4ce9cafc0b643c332e053b"><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1ManifestCache.html#acfd2b0682f4ce9cafc0b643c332e053b">seq_</a> {0}</td></tr>
<tr class="separator:acfd2b0682f4ce9cafc0b643c332e053b"><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>Remembers manifests with the highest sequence number. </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00236">236</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2c088a5eb9f576fc06b07a5a91877093" name="a2c088a5eb9f576fc06b07a5a91877093"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c088a5eb9f576fc06b07a5a91877093">&#9670;&#160;</a></span>ManifestCache()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">ripple::ManifestCache::ManifestCache </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>&#160;</td>
<td class="paramname"><em>j</em> = <code><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a>(<a class="el" href="classbeast_1_1Journal.html#a930d70ff72f71414fcd5b560610cefb6">beast::Journal::getNullSink</a>())</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00251">251</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a55b2fe63f46ce104f2dffb351e792c79" name="a55b2fe63f46ce104f2dffb351e792c79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55b2fe63f46ce104f2dffb351e792c79">&#9670;&#160;</a></span>sequence()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ripple::ManifestCache::sequence </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>A monotonically increasing number used to detect new manifests. </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00259">259</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<a id="a557c94c2a57c5bbe75557524420b1e9d" name="a557c94c2a57c5bbe75557524420b1e9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a557c94c2a57c5bbe75557524420b1e9d">&#9670;&#160;</a></span>getSigningKey()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> &gt; ripple::ManifestCache::getSigningKey </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>pk</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns master key's current signing key. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pk</td><td>Master public key</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pk if no known signing key from a manifest</dd></dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00292">292</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="adbe8167cfd5ac328a9bf8b85c319ddc1" name="adbe8167cfd5ac328a9bf8b85c319ddc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbe8167cfd5ac328a9bf8b85c319ddc1">&#9670;&#160;</a></span>getMasterKey()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> ripple::ManifestCache::getMasterKey </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>pk</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns ephemeral signing key's master public key. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pk</td><td>Ephemeral signing public key</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pk if signing key is not in a valid manifest</dd></dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00304">304</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="a093d015f0c2d38111f217ab167a3973d" name="a093d015f0c2d38111f217ab167a3973d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a093d015f0c2d38111f217ab167a3973d">&#9670;&#160;</a></span>getSequence()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> &gt; ripple::ManifestCache::getSequence </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>pk</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns master key's current manifest sequence. </p>
<dl class="section return"><dt>Returns</dt><dd>sequence corresponding to Master public key if configured or <a class="elRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a> otherwise </dd></dl>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00316">316</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="ae3996fe85083b04c4f568cd527a84dc8" name="ae3996fe85083b04c4f568cd527a84dc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3996fe85083b04c4f568cd527a84dc8">&#9670;&#160;</a></span>getDomain()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt; ripple::ManifestCache::getDomain </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>pk</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns domain claimed by a given public key. </p>
<dl class="section return"><dt>Returns</dt><dd>domain corresponding to Master public key if present, otherwise <a class="elRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a> </dd></dl>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00328">328</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="a4fd705df2aded2766ea1e5a98eb0ca74" name="a4fd705df2aded2766ea1e5a98eb0ca74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fd705df2aded2766ea1e5a98eb0ca74">&#9670;&#160;</a></span>getManifest()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a>&lt; <a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &gt; ripple::ManifestCache::getManifest </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>pk</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns mainfest corresponding to a given public key. </p>
<dl class="section return"><dt>Returns</dt><dd>manifest corresponding to Master public key if present, otherwise <a class="elRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a> </dd></dl>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00340">340</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="a6494e744b90cbecd735b460fcd7be82f" name="a6494e744b90cbecd735b460fcd7be82f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6494e744b90cbecd735b460fcd7be82f">&#9670;&#160;</a></span>revoked()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ripple::ManifestCache::revoked </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;&#160;</td>
<td class="paramname"><em>pk</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if master key has been revoked in a manifest. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pk</td><td>Master public key</td></tr>
</table>
</dd>
</dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00352">352</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="a882c588d2f26d7d61ae3ffe4212cbae0" name="a882c588d2f26d7d61ae3ffe4212cbae0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a882c588d2f26d7d61ae3ffe4212cbae0">&#9670;&#160;</a></span>applyManifest()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#a8a16d6f665a032453ec4cbfca01929b6">ManifestDisposition</a> ripple::ManifestCache::applyManifest </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structripple_1_1Manifest.html">Manifest</a>&#160;</td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add manifest to cache. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td><a class="el" href="structripple_1_1Manifest.html">Manifest</a> to add</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code><a class="el" href="namespaceripple.html#a8a16d6f665a032453ec4cbfca01929b6a3e4d891a5df3d6d0d7dd9432a1bc6470" title="Manifest is valid.">ManifestDisposition::accepted</a></code> if successful, or <code>stale</code> or <code>invalid</code> otherwise</dd></dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00364">364</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="ac42643e71e254d658a38a61a070864c6" name="ac42643e71e254d658a38a61a070864c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac42643e71e254d658a38a61a070864c6">&#9670;&#160;</a></span>load() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ripple::ManifestCache::load </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a> &amp;&#160;</td>
<td class="paramname"><em>dbCon</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>dbTable</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>configManifest</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><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/string/basic_string.html">std::string</a> &gt; const &amp;&#160;</td>
<td class="paramname"><em>configRevocation</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Populate manifest cache with manifests in database and config. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dbCon</td><td>Database connection with dbTable</td></tr>
<tr><td class="paramname">dbTable</td><td>Database table</td></tr>
<tr><td class="paramname">configManifest</td><td>Base64 encoded manifest for local node's validator keys</td></tr>
<tr><td class="paramname">configRevocation</td><td>Base64 encoded validator key revocation from the config</td></tr>
</table>
</dd>
</dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00532">532</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="aba96a3ca5f51243e21c858537ef16722" name="aba96a3ca5f51243e21c858537ef16722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba96a3ca5f51243e21c858537ef16722">&#9670;&#160;</a></span>load() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::ManifestCache::load </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a> &amp;&#160;</td>
<td class="paramname"><em>dbCon</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>dbTable</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Populate manifest cache with manifests in database. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dbCon</td><td>Database connection with dbTable</td></tr>
<tr><td class="paramname">dbTable</td><td>Database table</td></tr>
</table>
</dd>
</dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00525">525</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="ad38243694bc875ac8bff27e7370ef307" name="ad38243694bc875ac8bff27e7370ef307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad38243694bc875ac8bff27e7370ef307">&#9670;&#160;</a></span>save()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::ManifestCache::save </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classripple_1_1DatabaseCon.html">DatabaseCon</a> &amp;&#160;</td>
<td class="paramname"><em>dbCon</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> const &amp;&#160;</td>
<td class="paramname"><em>dbTable</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a>&lt; bool(<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a> const &amp;)&gt; const &amp;&#160;</td>
<td class="paramname"><em>isTrusted</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Save cached manifests to database. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dbCon</td><td>Database connection with <code>ValidatorManifests</code> table</td></tr>
<tr><td class="paramname">isTrusted</td><td>Function that returns true if manifest is trusted</td></tr>
</table>
</dd>
</dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8cpp_source.html#l00589">589</a> of file <a class="el" href="Manifest_8cpp_source.html">Manifest.cpp</a>.</p>
</div>
</div>
<a id="a7f05c967613f99e5f05af017673c6765" name="a7f05c967613f99e5f05af017673c6765"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f05c967613f99e5f05af017673c6765">&#9670;&#160;</a></span>for_each_manifest() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Function &gt; </div>
<table class="memname">
<tr>
<td class="memname">void ripple::ManifestCache::for_each_manifest </td>
<td>(</td>
<td class="paramtype">Function &amp;&amp;&#160;</td>
<td class="paramname"><em>f</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Invokes the callback once for every populated manifest. </p>
<dl class="section note"><dt>Note</dt><dd>Do not call <a class="el" href="classripple_1_1ManifestCache.html" title="Remembers manifests with the highest sequence number.">ManifestCache</a> member functions from within the callback. This can re-lock the mutex from the same thread, which is UB. </dd>
<dd>
Do not write <a class="el" href="classripple_1_1ManifestCache.html" title="Remembers manifests with the highest sequence number.">ManifestCache</a> member variables from within the callback. This can lead to data races.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">f</td><td>Function called for each manifest</td></tr>
</table>
</dd>
</dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00406">406</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<a id="ad2e75cff2c2f79664967d4c0f0bf8284" name="ad2e75cff2c2f79664967d4c0f0bf8284"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2e75cff2c2f79664967d4c0f0bf8284">&#9670;&#160;</a></span>for_each_manifest() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PreFun , class EachFun &gt; </div>
<table class="memname">
<tr>
<td class="memname">void ripple::ManifestCache::for_each_manifest </td>
<td>(</td>
<td class="paramtype">PreFun &amp;&amp;&#160;</td>
<td class="paramname"><em>pf</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">EachFun &amp;&amp;&#160;</td>
<td class="paramname"><em>f</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Invokes the callback once for every populated manifest. </p>
<dl class="section note"><dt>Note</dt><dd>Do not call <a class="el" href="classripple_1_1ManifestCache.html" title="Remembers manifests with the highest sequence number.">ManifestCache</a> member functions from within the callback. This can re-lock the mutex from the same thread, which is UB. </dd>
<dd>
Do not write <a class="el" href="classripple_1_1ManifestCache.html" title="Remembers manifests with the highest sequence number.">ManifestCache</a> member variables from within the callback. This can lead to data races.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pf</td><td>Pre-function called with the maximum number of times f will be called (useful for memory allocations)</td></tr>
<tr><td class="paramname">f</td><td>Function called for each manifest</td></tr>
</table>
</dd>
</dl>
<dl class="section user"><dt>Thread Safety</dt><dd></dd></dl>
<p>May be called concurrently </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00434">434</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a78e50a3a9a3c02e82874340a07eaef5d" name="a78e50a3a9a3c02e82874340a07eaef5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78e50a3a9a3c02e82874340a07eaef5d">&#9670;&#160;</a></span>j_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbeast_1_1Journal.html">beast::Journal</a> ripple::ManifestCache::j_</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="Manifest_8h_source.html#l00239">239</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<a id="a5c8a04996a9f90aa043d52e83db15935" name="a5c8a04996a9f90aa043d52e83db15935"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c8a04996a9f90aa043d52e83db15935">&#9670;&#160;</a></span>mutex_</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/thread/shared_mutex.html">std::shared_mutex</a> ripple::ManifestCache::mutex_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">mutable</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00240">240</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<a id="ab2506c2817784a9f62f8ecf0f151fcf9" name="ab2506c2817784a9f62f8ecf0f151fcf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2506c2817784a9f62f8ecf0f151fcf9">&#9670;&#160;</a></span>map_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt;<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>, <a class="el" href="structripple_1_1Manifest.html">Manifest</a>&gt; ripple::ManifestCache::map_</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>Active manifests stored by master public key. </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00243">243</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<a id="a23063af048722db1bc29db23e2c86d0f" name="a23063af048722db1bc29db23e2c86d0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23063af048722db1bc29db23e2c86d0f">&#9670;&#160;</a></span>signingToMasterKeys_</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceripple.html#a46c521271235f4e2715d7fa8b68940ca">hash_map</a>&lt;<a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>, <a class="el" href="classripple_1_1PublicKey.html">PublicKey</a>&gt; ripple::ManifestCache::signingToMasterKeys_</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>Master public keys stored by current ephemeral public key. </p>
<p class="definition">Definition at line <a class="el" href="Manifest_8h_source.html#l00246">246</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.h</a>.</p>
</div>
</div>
<a id="acfd2b0682f4ce9cafc0b643c332e053b" name="acfd2b0682f4ce9cafc0b643c332e053b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfd2b0682f4ce9cafc0b643c332e053b">&#9670;&#160;</a></span>seq_</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/atomic/atomic.html">std::atomic</a>&lt;<a class="elRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a>&gt; ripple::ManifestCache::seq_ {0}</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="Manifest_8h_source.html#l00248">248</a> of file <a class="el" href="Manifest_8h_source.html">Manifest.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.8
</small></address>
</body>
</html>