mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 09:25:51 +00:00
deploy: 023f5704d0
This commit is contained in:
@@ -91,8 +91,8 @@ $(function() {
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_SHAMAP_FULLBELOWCACHE_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_SHAMAP_FULLBELOWCACHE_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/basics/base_uint.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/basics/KeyCache.h></span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/basics/KeyCache.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/basics/base_uint.h></span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/beast/insight/Collector.h></span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a>></span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>></span></div>
|
||||
@@ -105,117 +105,122 @@ $(function() {
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html"> 37</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html">BasicFullBelowCache</a></div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#adb0ef8b0baf04af5529c03c1f5d1d1d5"> 40</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1KeyCache.html">CacheType</a> = <a class="code" href="classripple_1_1KeyCache.html">KeyCache <Key></a>;</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a053001dc20690a3c54616fe8f3fea843"> 40</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1KeyCache.html">CacheType</a> = <a class="code" href="classripple_1_1KeyCache.html">KeyCache<Key></a>;</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">enum</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326"> 45</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326">defaultCacheTargetSize</a> = 0</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  };</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#af834351ef2de493fa8077fad69f63608"> 48</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1base__uint.html">key_type</a> = Key;</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31"> 49</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31">size_type</a> = <span class="keyword">typename</span> <a class="code" href="classripple_1_1KeyCache.html#a27ffdc83af477dfc719054907918a148">CacheType::size_type</a>;</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752"> 50</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">clock_type</a> = <span class="keyword">typename</span> <a class="code" href="classripple_1_1KeyCache.html#a04eee79e212c1cb74a4077d3574b0dda">CacheType::clock_type</a>;</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6cdb5c5c5ec9f0e77685ae8413cbb4cc"> 59</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6cdb5c5c5ec9f0e77685ae8413cbb4cc">BasicFullBelowCache</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& name, <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">clock_type</a>& <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">clock</a>,</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">beast::insight::Collector::ptr</a> <span class="keyword">const</span>& collector =</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classbeast_1_1insight_1_1NullCollector.html#a8821f08e6db108aacae400a738286da6">beast::insight::NullCollector::New</a> (),</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> target_size = <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326">defaultCacheTargetSize</a>,</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> expiration = <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::minutes</a>{2})</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  : <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a> (name, <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">clock</a>, collector, target_size,</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  expiration)</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  , <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a> (1)</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc"> 71</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">clock_type</a>& <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">clock</a>()</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#a0cbb2397d4e536bf904871481ca03056">clock</a> ();</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a2d15ae999cbf512e349a9b9c9116359b"> 80</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31">size_type</a> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a2d15ae999cbf512e349a9b9c9116359b">size</a> ()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ab9ecd66501ebdc5d92af5f6f86d178ca">size</a> ();</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#abc3d54fc0e19eb02dfb80cb16b46a61c"> 89</a></span>  <span class="keywordtype">void</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#abc3d54fc0e19eb02dfb80cb16b46a61c">sweep</a> ()</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326"> 43</a></span>  <span class="keyword">enum</span> { <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326">defaultCacheTargetSize</a> = 0 };</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#af834351ef2de493fa8077fad69f63608"> 45</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1base__uint.html">key_type</a> = Key;</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31"> 46</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31">size_type</a> = <span class="keyword">typename</span> <a class="code" href="classripple_1_1KeyCache.html#a27ffdc83af477dfc719054907918a148">CacheType::size_type</a>;</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752"> 47</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">clock_type</a> = <span class="keyword">typename</span> <a class="code" href="classripple_1_1KeyCache.html#a08e89647e3c3229104230c925433920d">CacheType::clock_type</a>;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6cdb5c5c5ec9f0e77685ae8413cbb4cc"> 56</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6cdb5c5c5ec9f0e77685ae8413cbb4cc">BasicFullBelowCache</a>(</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& name,</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">clock_type</a>& <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">clock</a>,</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">beast::insight::Collector::ptr</a> <span class="keyword">const</span>& collector =</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classbeast_1_1insight_1_1NullCollector.html#a8821f08e6db108aacae400a738286da6">beast::insight::NullCollector::New</a>(),</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> target_size = <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326">defaultCacheTargetSize</a>,</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a> expiration = <a class="codeRef" href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::minutes</a>{2})</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  : <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>(name, <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">clock</a>, collector, target_size, expiration), <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>(1)</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">clock_type</a>&</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc"> 69</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">clock</a>()</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#a0cbb2397d4e536bf904871481ca03056">clock</a>();</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31">size_type</a></div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a2d15ae999cbf512e349a9b9c9116359b"> 79</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a2d15ae999cbf512e349a9b9c9116359b">size</a>()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ab9ecd66501ebdc5d92af5f6f86d178ca">size</a>();</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#abc3d54fc0e19eb02dfb80cb16b46a61c"> 89</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#abc3d54fc0e19eb02dfb80cb16b46a61c">sweep</a>()</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">sweep</a> ();</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">sweep</a>();</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5e207e81c6878a8d26e48c8fdaad5859"> 100</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5e207e81c6878a8d26e48c8fdaad5859">touch_if_exists</a> (<a class="code" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  {</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">touch_if_exists</a> (key);</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  }</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6344198691e605702d23eba86a3177b2"> 112</a></span>  <span class="keywordtype">void</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6344198691e605702d23eba86a3177b2">insert</a> (<a class="code" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#a72fad1c7856e2c855e32de68eed56f82">insert</a> (key);</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a24dcba9ab4a873d9d002a903585fff45"> 118</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a24dcba9ab4a873d9d002a903585fff45">getGeneration</a> (<span class="keywordtype">void</span>)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  </div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#ab848d9b7735bd22c13ce05478c322aca"> 123</a></span>  <span class="keywordtype">void</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#ab848d9b7735bd22c13ce05478c322aca">clear</a> ()</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  {</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ac997750bec1980c1899f604486eb45c8">clear</a> ();</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  ++<a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>;</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5901f72842fa510c191e2ebecc366920"> 129</a></span>  <span class="keywordtype">void</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5901f72842fa510c191e2ebecc366920">reset</a> ()</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  {</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ac997750bec1980c1899f604486eb45c8">clear</a>();</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a> = 1;</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78"> 136</a></span>  <a class="code" href="classripple_1_1KeyCache.html">KeyCache <Key></a> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>;</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f"> 137</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic <std::uint32_t></a> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> };</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5e207e81c6878a8d26e48c8fdaad5859"> 101</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5e207e81c6878a8d26e48c8fdaad5859">touch_if_exists</a>(<a class="code" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">touch_if_exists</a>(key);</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6344198691e605702d23eba86a3177b2"> 114</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6344198691e605702d23eba86a3177b2">insert</a>(<a class="code" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#a72fad1c7856e2c855e32de68eed56f82">insert</a>(key);</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a24dcba9ab4a873d9d002a903585fff45"> 121</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a24dcba9ab4a873d9d002a903585fff45">getGeneration</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#ab848d9b7735bd22c13ce05478c322aca"> 127</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#ab848d9b7735bd22c13ce05478c322aca">clear</a>()</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ac997750bec1980c1899f604486eb45c8">clear</a>();</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  ++<a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>;</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  }</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5901f72842fa510c191e2ebecc366920"> 134</a></span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5901f72842fa510c191e2ebecc366920">reset</a>()</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  {</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>.<a class="code" href="classripple_1_1KeyCache.html#ac997750bec1980c1899f604486eb45c8">clear</a>();</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a> = 1;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> } <span class="comment">// detail</span></div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="namespaceripple.html#a5b2215c6061fe14f3de26387155e2a08"> 142</a></span> <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html">FullBelowCache</a> = <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html">detail::BasicFullBelowCache <uint256></a>;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> }</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78"> 141</a></span>  <a class="code" href="classripple_1_1KeyCache.html">KeyCache<Key></a> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">m_cache</a>;</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f"> 142</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/atomic/atomic.html">std::atomic<std::uint32_t></a> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">m_gen</a>;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> };</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> } <span class="comment">// namespace detail</span></div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="namespaceripple.html#a7fb77fb8b47791f06668264c014603e2"> 147</a></span> <span class="keyword">using</span> <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html">FullBelowCache</a> = <a class="code" href="classripple_1_1detail_1_1BasicFullBelowCache.html">detail::BasicFullBelowCache<uint256></a>;</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326">ripple::detail::BasicFullBelowCache::defaultCacheTargetSize</a></div><div class="ttdeci">@ defaultCacheTargetSize</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00045">FullBelowCache.h:45</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ab9ecd66501ebdc5d92af5f6f86d178ca"><div class="ttname"><a href="classripple_1_1KeyCache.html#ab9ecd66501ebdc5d92af5f6f86d178ca">ripple::KeyCache::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdoc">Returns the number of items in the container.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00144">KeyCache.h:144</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a4380772c4e787779ebc4f7e7da9f23b7ae10ce03f09b314faadeff8cff304c326">ripple::detail::BasicFullBelowCache::defaultCacheTargetSize</a></div><div class="ttdeci">@ defaultCacheTargetSize</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00043">FullBelowCache.h:43</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ab9ecd66501ebdc5d92af5f6f86d178ca"><div class="ttname"><a href="classripple_1_1KeyCache.html#ab9ecd66501ebdc5d92af5f6f86d178ca">ripple::KeyCache::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdoc">Returns the number of items in the container.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00153">KeyCache.h:153</a></div></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 class="ttdoc">STL class.</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< Collector ></a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html">ripple::detail::BasicFullBelowCache</a></div><div class="ttdoc">Remembers which tree keys have all descendants resident.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00037">FullBelowCache.h:37</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a04eee79e212c1cb74a4077d3574b0dda"><div class="ttname"><a href="classripple_1_1KeyCache.html#a04eee79e212c1cb74a4077d3574b0dda">ripple::KeyCache< Key >::clock_type</a></div><div class="ttdeci">beast::abstract_clock< std::chrono::steady_clock > clock_type</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00048">KeyCache.h:48</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a75bf1d68ac90ebc1163e8e6bd0568752"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">ripple::detail::BasicFullBelowCache< uint256 >::clock_type</a></div><div class="ttdeci">typename CacheType::clock_type clock_type</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00050">FullBelowCache.h:50</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a75bf1d68ac90ebc1163e8e6bd0568752"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a75bf1d68ac90ebc1163e8e6bd0568752">ripple::detail::BasicFullBelowCache< uint256 >::clock_type</a></div><div class="ttdeci">typename CacheType::clock_type clock_type</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00047">FullBelowCache.h:47</a></div></div>
|
||||
<div class="ttc" id="aduration_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/chrono/duration.html">std::chrono::seconds</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a02f7ec259bbd5a7e2a427403a312b69f"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">ripple::detail::BasicFullBelowCache::m_gen</a></div><div class="ttdeci">std::atomic< std::uint32_t > m_gen</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00137">FullBelowCache.h:137</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a5901f72842fa510c191e2ebecc366920"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5901f72842fa510c191e2ebecc366920">ripple::detail::BasicFullBelowCache::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00129">FullBelowCache.h:129</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ad93a1bca0da205d937a9b9781ffab7c9"><div class="ttname"><a href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">ripple::KeyCache::touch_if_exists</a></div><div class="ttdeci">bool touch_if_exists(KeyComparable const &key)</div><div class="ttdoc">Refresh the last access time on a key if present.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00217">KeyCache.h:217</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a5e207e81c6878a8d26e48c8fdaad5859"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5e207e81c6878a8d26e48c8fdaad5859">ripple::detail::BasicFullBelowCache::touch_if_exists</a></div><div class="ttdeci">bool touch_if_exists(key_type const &key)</div><div class="ttdoc">Refresh the last access time of an item, if it exists.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00100">FullBelowCache.h:100</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a02f7ec259bbd5a7e2a427403a312b69f"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a02f7ec259bbd5a7e2a427403a312b69f">ripple::detail::BasicFullBelowCache::m_gen</a></div><div class="ttdeci">std::atomic< std::uint32_t > m_gen</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00142">FullBelowCache.h:142</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a5901f72842fa510c191e2ebecc366920"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5901f72842fa510c191e2ebecc366920">ripple::detail::BasicFullBelowCache::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00134">FullBelowCache.h:134</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ad93a1bca0da205d937a9b9781ffab7c9"><div class="ttname"><a href="classripple_1_1KeyCache.html#ad93a1bca0da205d937a9b9781ffab7c9">ripple::KeyCache::touch_if_exists</a></div><div class="ttdeci">bool touch_if_exists(KeyComparable const &key)</div><div class="ttdoc">Refresh the last access time on a key if present.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00234">KeyCache.h:234</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a5e207e81c6878a8d26e48c8fdaad5859"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a5e207e81c6878a8d26e48c8fdaad5859">ripple::detail::BasicFullBelowCache::touch_if_exists</a></div><div class="ttdeci">bool touch_if_exists(key_type const &key)</div><div class="ttdoc">Refresh the last access time of an item, if it exists.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00101">FullBelowCache.h:101</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint< 256 ></a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a72fad1c7856e2c855e32de68eed56f82"><div class="ttname"><a href="classripple_1_1KeyCache.html#a72fad1c7856e2c855e32de68eed56f82">ripple::KeyCache::insert</a></div><div class="ttdeci">bool insert(Key const &key)</div><div class="ttdoc">Insert the specified key.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00198">KeyCache.h:198</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a6cdb5c5c5ec9f0e77685ae8413cbb4cc"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6cdb5c5c5ec9f0e77685ae8413cbb4cc">ripple::detail::BasicFullBelowCache::BasicFullBelowCache</a></div><div class="ttdeci">BasicFullBelowCache(std::string const &name, clock_type &clock, beast::insight::Collector::ptr const &collector=beast::insight::NullCollector::New(), std::size_t target_size=defaultCacheTargetSize, std::chrono::seconds expiration=std::chrono::minutes{2})</div><div class="ttdoc">Construct the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00059">FullBelowCache.h:59</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a72fad1c7856e2c855e32de68eed56f82"><div class="ttname"><a href="classripple_1_1KeyCache.html#a72fad1c7856e2c855e32de68eed56f82">ripple::KeyCache::insert</a></div><div class="ttdeci">bool insert(Key const &key)</div><div class="ttdoc">Insert the specified key.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00213">KeyCache.h:213</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a6cdb5c5c5ec9f0e77685ae8413cbb4cc"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6cdb5c5c5ec9f0e77685ae8413cbb4cc">ripple::detail::BasicFullBelowCache::BasicFullBelowCache</a></div><div class="ttdeci">BasicFullBelowCache(std::string const &name, clock_type &clock, beast::insight::Collector::ptr const &collector=beast::insight::NullCollector::New(), std::size_t target_size=defaultCacheTargetSize, std::chrono::seconds expiration=std::chrono::minutes{2})</div><div class="ttdoc">Construct the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00056">FullBelowCache.h:56</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_abc3d54fc0e19eb02dfb80cb16b46a61c"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#abc3d54fc0e19eb02dfb80cb16b46a61c">ripple::detail::BasicFullBelowCache::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove expired cache items.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00089">FullBelowCache.h:89</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a11d4cb29d2faa05a9f737e9a77c375dc"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">ripple::detail::BasicFullBelowCache::clock</a></div><div class="ttdeci">clock_type & clock()</div><div class="ttdoc">Return the clock associated with the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00071">FullBelowCache.h:71</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a08e89647e3c3229104230c925433920d"><div class="ttname"><a href="classripple_1_1KeyCache.html#a08e89647e3c3229104230c925433920d">ripple::KeyCache< Key >::clock_type</a></div><div class="ttdeci">beast::abstract_clock< std::chrono::steady_clock > clock_type</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00047">KeyCache.h:47</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a11d4cb29d2faa05a9f737e9a77c375dc"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a11d4cb29d2faa05a9f737e9a77c375dc">ripple::detail::BasicFullBelowCache::clock</a></div><div class="ttdeci">clock_type & clock()</div><div class="ttdoc">Return the clock associated with the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00069">FullBelowCache.h:69</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="aatomic_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/atomic.html">atomic</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a774eec36bd59b6a346ef7a613734d921"><div class="ttname"><a href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">ripple::KeyCache::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove stale entries from the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00248">KeyCache.h:248</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ac997750bec1980c1899f604486eb45c8"><div class="ttname"><a href="classripple_1_1KeyCache.html#ac997750bec1980c1899f604486eb45c8">ripple::KeyCache::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Empty the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00151">KeyCache.h:151</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a774eec36bd59b6a346ef7a613734d921"><div class="ttname"><a href="classripple_1_1KeyCache.html#a774eec36bd59b6a346ef7a613734d921">ripple::KeyCache::sweep</a></div><div class="ttdeci">void sweep()</div><div class="ttdoc">Remove stale entries from the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00267">KeyCache.h:267</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_ac997750bec1980c1899f604486eb45c8"><div class="ttname"><a href="classripple_1_1KeyCache.html#ac997750bec1980c1899f604486eb45c8">ripple::KeyCache::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">Empty the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00161">KeyCache.h:161</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a24dcba9ab4a873d9d002a903585fff45"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a24dcba9ab4a873d9d002a903585fff45">ripple::detail::BasicFullBelowCache::getGeneration</a></div><div class="ttdeci">std::uint32_t getGeneration(void) const</div><div class="ttdoc">generation determines whether cached entry is valid</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00118">FullBelowCache.h:118</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a27ffdc83af477dfc719054907918a148"><div class="ttname"><a href="classripple_1_1KeyCache.html#a27ffdc83af477dfc719054907918a148">ripple::KeyCache< Key >::size_type</a></div><div class="ttdeci">typename map_type::size_type size_type</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00085">KeyCache.h:85</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_aae7b2e296d6e1572c20fad56bc9aba31"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31">ripple::detail::BasicFullBelowCache< uint256 >::size_type</a></div><div class="ttdeci">typename CacheType::size_type size_type</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00049">FullBelowCache.h:49</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a2d15ae999cbf512e349a9b9c9116359b"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a2d15ae999cbf512e349a9b9c9116359b">ripple::detail::BasicFullBelowCache::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdoc">Return the number of elements in the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00080">FullBelowCache.h:80</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a6344198691e605702d23eba86a3177b2"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6344198691e605702d23eba86a3177b2">ripple::detail::BasicFullBelowCache::insert</a></div><div class="ttdeci">void insert(key_type const &key)</div><div class="ttdoc">Insert a key into the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00112">FullBelowCache.h:112</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a24dcba9ab4a873d9d002a903585fff45"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a24dcba9ab4a873d9d002a903585fff45">ripple::detail::BasicFullBelowCache::getGeneration</a></div><div class="ttdeci">std::uint32_t getGeneration(void) const</div><div class="ttdoc">generation determines whether cached entry is valid</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00121">FullBelowCache.h:121</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a27ffdc83af477dfc719054907918a148"><div class="ttname"><a href="classripple_1_1KeyCache.html#a27ffdc83af477dfc719054907918a148">ripple::KeyCache< Key >::size_type</a></div><div class="ttdeci">typename map_type::size_type size_type</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00087">KeyCache.h:87</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_aae7b2e296d6e1572c20fad56bc9aba31"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#aae7b2e296d6e1572c20fad56bc9aba31">ripple::detail::BasicFullBelowCache< uint256 >::size_type</a></div><div class="ttdeci">typename CacheType::size_type size_type</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00046">FullBelowCache.h:46</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a2d15ae999cbf512e349a9b9c9116359b"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a2d15ae999cbf512e349a9b9c9116359b">ripple::detail::BasicFullBelowCache::size</a></div><div class="ttdeci">size_type size() const</div><div class="ttdoc">Return the number of elements in the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00079">FullBelowCache.h:79</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a6344198691e605702d23eba86a3177b2"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a6344198691e605702d23eba86a3177b2">ripple::detail::BasicFullBelowCache::insert</a></div><div class="ttdeci">void insert(key_type const &key)</div><div class="ttdoc">Insert a key into the cache.</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00114">FullBelowCache.h:114</a></div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a0cbb2397d4e536bf904871481ca03056"><div class="ttname"><a href="classripple_1_1KeyCache.html#a0cbb2397d4e536bf904871481ca03056">ripple::KeyCache::clock</a></div><div class="ttdeci">clock_type & clock()</div><div class="ttdoc">Return the clock associated with the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00138">KeyCache.h:138</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html_a0cbb2397d4e536bf904871481ca03056"><div class="ttname"><a href="classripple_1_1KeyCache.html#a0cbb2397d4e536bf904871481ca03056">ripple::KeyCache::clock</a></div><div class="ttdeci">clock_type & clock()</div><div class="ttdoc">Return the clock associated with the cache.</div><div class="ttdef"><b>Definition:</b> <a href="KeyCache_8h_source.html#l00146">KeyCache.h:146</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1KeyCache_html"><div class="ttname"><a href="classripple_1_1KeyCache.html">ripple::KeyCache< uint256 ></a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a45cf80eb5c726d631eeebf77bfd3ae78"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">ripple::detail::BasicFullBelowCache::m_cache</a></div><div class="ttdeci">KeyCache< Key > m_cache</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00136">FullBelowCache.h:136</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1insight_1_1NullCollector_html_a8821f08e6db108aacae400a738286da6"><div class="ttname"><a href="classbeast_1_1insight_1_1NullCollector.html#a8821f08e6db108aacae400a738286da6">beast::insight::NullCollector::New</a></div><div class="ttdeci">static std::shared_ptr< Collector > New()</div><div class="ttdef"><b>Definition:</b> <a href="NullCollector_8cpp_source.html#l00140">NullCollector.cpp:140</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_ab848d9b7735bd22c13ce05478c322aca"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#ab848d9b7735bd22c13ce05478c322aca">ripple::detail::BasicFullBelowCache::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00123">FullBelowCache.h:123</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_a45cf80eb5c726d631eeebf77bfd3ae78"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#a45cf80eb5c726d631eeebf77bfd3ae78">ripple::detail::BasicFullBelowCache::m_cache</a></div><div class="ttdeci">KeyCache< Key > m_cache</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00141">FullBelowCache.h:141</a></div></div>
|
||||
<div class="ttc" id="aclassbeast_1_1insight_1_1NullCollector_html_a8821f08e6db108aacae400a738286da6"><div class="ttname"><a href="classbeast_1_1insight_1_1NullCollector.html#a8821f08e6db108aacae400a738286da6">beast::insight::NullCollector::New</a></div><div class="ttdeci">static std::shared_ptr< Collector > New()</div><div class="ttdef"><b>Definition:</b> <a href="NullCollector_8cpp_source.html#l00152">NullCollector.cpp:152</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1BasicFullBelowCache_html_ab848d9b7735bd22c13ce05478c322aca"><div class="ttname"><a href="classripple_1_1detail_1_1BasicFullBelowCache.html#ab848d9b7735bd22c13ce05478c322aca">ripple::detail::BasicFullBelowCache::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdef"><b>Definition:</b> <a href="FullBelowCache_8h_source.html#l00127">FullBelowCache.h:127</a></div></div>
|
||||
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
||||
Reference in New Issue
Block a user