mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
deploy: eac3abdca9
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<!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">
|
||||
<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=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.17"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>rippled: CachedView.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -19,8 +19,8 @@
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">rippled
|
||||
</div>
|
||||
</td>
|
||||
@@ -29,21 +29,22 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.17 -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
@@ -54,271 +55,276 @@ $(function() {
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
<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="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_df67e75ba07853ef5c3c9d8f74c2f968.html">ledger</a></li> </ul>
|
||||
<li class="navelem"><a class="el" href="dir_a62226f9e3a6c7c5a3be455e2f87ae01.html">xrpld</a></li><li class="navelem"><a class="el" href="dir_bdaaaf6daa78e191205beecf69f3206b.html">ledger</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">CachedView.h</div> </div>
|
||||
<div class="headertitle"><div class="title">CachedView.h</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_LEDGER_CACHEDVIEW_H_INCLUDED</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_LEDGER_CACHEDVIEW_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/hardened_hash.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/ledger/CachedSLEs.h></span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/ledger/ReadView.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/map.html">map</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/memory.html">memory</a>></span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span>detail {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html"> 35</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1DigestAwareReadView.html">DigestAwareReadView</a></div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2"> 38</a></span>  <a class="code" href="classripple_1_1DigestAwareReadView.html">DigestAwareReadView</a> <span class="keyword">const</span>& <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>;</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748"> 39</a></span>  <a class="code" href="classripple_1_1TaggedCache.html">CachedSLEs</a>& <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">cache_</a>;</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898"> 40</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <span class="keyword">mutable</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">mutex_</a>;</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2"> 41</a></span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map<key_type, uint256, hardened_hash<></a>> <span class="keyword">mutable</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2">map_</a>;</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">CachedViewImpl</a>() = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">CachedViewImpl</a>(<a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a>&</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#aeebad9c38c7212e18336b1ca24f8f1da">operator=</a>(<a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ad5f8aa99a60123fef3082ba5c9f50988"> 49</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ad5f8aa99a60123fef3082ba5c9f50988">CachedViewImpl</a>(<a class="code" href="classripple_1_1DigestAwareReadView.html">DigestAwareReadView</a> <span class="keyword">const</span>* base, <a class="code" href="classripple_1_1TaggedCache.html">CachedSLEs</a>& cache)</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  : <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>(*base), <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">cache_</a>(cache)</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// ReadView</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">exists</a>(<a class="code" href="structripple_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>& k) <span class="keyword">const override</span>;</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a></div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#af8db00c9a63969516a98cded17930845">read</a>(<a class="code" href="structripple_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>& k) <span class="keyword">const override</span>;</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#afb1c7f57990c69df15950a4d83babc4c"> 65</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#afb1c7f57990c69df15950a4d83babc4c">open</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a8dc63ee1e4ae7b2f96823e146c53d03e">open</a>();</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="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="structripple_1_1LedgerHeader.html">LedgerInfo</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a7a7588db26208689d2224b068625dae2"> 71</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a7a7588db26208689d2224b068625dae2">info</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword"> </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_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a9263b10d706a447166b229ad8e3b574c">info</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="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="structripple_1_1Fees.html">Fees</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ad874e14e567ad31774ccf4756aac3bac"> 77</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ad874e14e567ad31774ccf4756aac3bac">fees</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a9bbdb3fb4754482a8d6c6e6d25c2d1eb">fees</a>();</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a8e3b1b79b6af545c3dfcee40dd0d5299"> 83</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a8e3b1b79b6af545c3dfcee40dd0d5299">rules</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#aaf2fa03be723bb78d8bdf41614a75a30">rules</a>();</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<key_type></a></div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a96f3599bffc047126acfd74f075d2125"> 89</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a96f3599bffc047126acfd74f075d2125">succ</a>(</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classripple_1_1ReadView.html#a937328125a7d62270f32b4e1555c5cdd">key_type</a> <span class="keyword">const</span>& key,</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<key_type></a> <span class="keyword">const</span>& last = std::nullopt)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#adb3ef95cbd470775fe1e09955399667f">succ</a>(key, last);</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<sles_type::iter_base></a></div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a4724f686191546657263061e5b0ea951"> 97</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a4724f686191546657263061e5b0ea951">slesBegin</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a70b1654cf02d2af0c3d34faf6be218ac">slesBegin</a>();</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</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>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<sles_type::iter_base></a></div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a77c5f58a30877fc28056f58063a01389"> 103</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a77c5f58a30877fc28056f58063a01389">slesEnd</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a6940351c76fe355db59a9f8ff6bf807b">slesEnd</a>();</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<sles_type::iter_base></a></div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ae165ae0cb1f8c8f40043e7fd81e7ab70"> 109</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ae165ae0cb1f8c8f40043e7fd81e7ab70">slesUpperBound</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#abccd7f2f0b2ebfaafc8fedd6cc7ad081">slesUpperBound</a>(key);</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  }</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="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<txs_type::iter_base></a></div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a6a245ca68b74f82d291bfb29fbf3d6a5"> 115</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a6a245ca68b74f82d291bfb29fbf3d6a5">txsBegin</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#a8bf980722b37ba7a57614fa7c92c7d11">txsBegin</a>();</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  }</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<txs_type::iter_base></a></div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a82ccc6fe5d28a3de1621deb839ef20d4"> 121</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a82ccc6fe5d28a3de1621deb839ef20d4">txsEnd</a>()<span class="keyword"> const override</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_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#afbcb8704c56e927eca2cb81bcb42f912">txsEnd</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">bool</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a5315d4aaf5a02b646e44cbc28cfca9ec"> 127</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a5315d4aaf5a02b646e44cbc28cfca9ec">txExists</a>(<a class="code" href="classripple_1_1ReadView.html#a937328125a7d62270f32b4e1555c5cdd">key_type</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#af95bff423d062ed89665e9f628972ece">txExists</a>(key);</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>  </div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="classripple_1_1ReadView.html#ab1430dec61fd5ef9bf4a013aab558d71">tx_type</a></div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a27043f0ad97acde4fc0e2fc6103d4f85"> 133</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a27043f0ad97acde4fc0e2fc6103d4f85">txRead</a>(<a class="code" href="classripple_1_1ReadView.html#a937328125a7d62270f32b4e1555c5cdd">key_type</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1ReadView.html#af88b035a71531a9b27ee2fa25d0444e9">txRead</a>(key);</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="comment">// DigestAwareReadView</span></div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="comment">//</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"> 142</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<digest_type></a></div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e"> 143</a></span>  <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">digest</a>(<a class="code" href="classripple_1_1ReadView.html#a937328125a7d62270f32b4e1555c5cdd">key_type</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code" href="classripple_1_1DigestAwareReadView.html#abb28ae3cc06d0450b0eae17f0a531a0f">digest</a>(key);</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> };</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 detail</span></div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">template</span> <<span class="keyword">class</span> Base></div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html"> 156</a></span> <span class="keyword">class </span><a class="code" href="classripple_1_1CachedView.html">CachedView</a> : <span class="keyword">public</span> <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html">detail::CachedViewImpl</a></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> {</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4"> 159</a></span>  static_assert(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_base_of.html">std::is_base_of<DigestAwareReadView, Base>::value</a>, <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Base const></a> <a class="code" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">sp_</a>;</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#a833577e6d0c5fb244c8e321664aea6f7"> 164</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1CachedView.html#a833577e6d0c5fb244c8e321664aea6f7">base_type</a> = Base;</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classripple_1_1CachedView.html#ac1eb258ee12580b560363e2a16b396a6">CachedView</a>() = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classripple_1_1CachedView.html#ac1eb258ee12580b560363e2a16b396a6">CachedView</a>(<a class="code" href="classripple_1_1CachedView.html">CachedView</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="classripple_1_1CachedView.html">CachedView</a>&</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="classripple_1_1CachedView.html#a446bf249300d9ec1c8c43b1356ba1785">operator=</a>(<a class="code" href="classripple_1_1CachedView.html">CachedView</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#ab5e60386dd024e1a760fa0da52745f37"> 171</a></span>  <a class="code" href="classripple_1_1CachedView.html#ab5e60386dd024e1a760fa0da52745f37">CachedView</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Base const></a> <span class="keyword">const</span>& <a class="code" href="classripple_1_1CachedView.html#a832345e9656d0c77823fbd990a85f24f">base</a>, <a class="code" href="classripple_1_1TaggedCache.html">CachedSLEs</a>& cache)</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  : <a class="code" href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">CachedViewImpl</a>(<a class="code" href="classripple_1_1CachedView.html#a832345e9656d0c77823fbd990a85f24f">base</a>.<a class="code" href="namespaceripple.html#a104985c6e3067babe99aca6bbc51ba5d">get</a>(), cache), <a class="code" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">sp_</a>(<a class="code" href="classripple_1_1CachedView.html#a832345e9656d0c77823fbd990a85f24f">base</a>)</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  }</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Base const></a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#a832345e9656d0c77823fbd990a85f24f"> 181</a></span>  <a class="code" href="classripple_1_1CachedView.html#a832345e9656d0c77823fbd990a85f24f">base</a>()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="keyword"> </span>{</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">return</span> <a class="code" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">sp_</a>;</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  }</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> };</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> } <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#endif</span></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html">ripple::detail::CachedViewImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00035">CachedView.h:35</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a9263b10d706a447166b229ad8e3b574c"><div class="ttname"><a href="classripple_1_1ReadView.html#a9263b10d706a447166b229ad8e3b574c">ripple::ReadView::info</a></div><div class="ttdeci">virtual LedgerInfo const & info() const =0</div><div class="ttdoc">Returns information about the ledger.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_afb1c7f57990c69df15950a4d83babc4c"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#afb1c7f57990c69df15950a4d83babc4c">ripple::detail::CachedViewImpl::open</a></div><div class="ttdeci">bool open() const override</div><div class="ttdoc">Returns true if this reflects an open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00065">CachedView.h:65</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Keylet_html"><div class="ttname"><a href="structripple_1_1Keylet.html">ripple::Keylet</a></div><div class="ttdoc">A pair of SHAMap key and LedgerEntryType.</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8h_source.html#l00038">Keylet.h:38</a></div></div>
|
||||
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1TaggedCache_html"><div class="ttname"><a href="classripple_1_1TaggedCache.html">ripple::TaggedCache< uint256, SLE const ></a></div></div>
|
||||
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifndef RIPPLE_LEDGER_CACHEDVIEW_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_LEDGER_CACHEDVIEW_H_INCLUDED</span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <xrpld/ledger/CachedSLEs.h></span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <xrpld/ledger/ReadView.h></span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <xrpl/basics/hardened_hash.h></span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/map.html">map</a>></span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>></span></div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a>></span></div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">namespace </span>detail {</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html"> 35</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1DigestAwareReadView.html">DigestAwareReadView</a></div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span>{</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2"> 38</a></span> <a class="code hl_class" href="classripple_1_1DigestAwareReadView.html">DigestAwareReadView</a> <span class="keyword">const</span>& <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748"> 39</a></span> <a class="code hl_class" href="classripple_1_1TaggedCache.html">CachedSLEs</a>& <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">cache_</a>;</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898"> 40</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/thread/mutex.html">std::mutex</a> <span class="keyword">mutable</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">mutex_</a>;</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2"> 41</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map<key_type, uint256, hardened_hash<></a>> <span class="keyword">mutable</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2">map_</a>;</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1"> 44</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">CachedViewImpl</a>() = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a79f07ace9c8248c8c59d4d43f3bd70dc"> 45</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a79f07ace9c8248c8c59d4d43f3bd70dc">CachedViewImpl</a>(<a class="code hl_class" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_class" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a>&</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a36b722997bd85e84aaad410c953328b8"> 47</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a36b722997bd85e84aaad410c953328b8">operator=</a>(<a class="code hl_class" href="classripple_1_1detail_1_1CachedViewImpl.html">CachedViewImpl</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ad5f8aa99a60123fef3082ba5c9f50988"> 49</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#ad5f8aa99a60123fef3082ba5c9f50988">CachedViewImpl</a>(<a class="code hl_class" href="classripple_1_1DigestAwareReadView.html">DigestAwareReadView</a> <span class="keyword">const</span>* base, <a class="code hl_class" href="classripple_1_1TaggedCache.html">CachedSLEs</a>& cache)</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> : <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>(*base), <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">cache_</a>(cache)</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> {</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// ReadView</span></div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">exists</a>(<a class="code hl_struct" href="structripple_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>& k) <span class="keyword">const override</span>;</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<SLE const></a></div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b">read</a>(<a class="code hl_struct" href="structripple_1_1Keylet.html">Keylet</a> <span class="keyword">const</span>& k) <span class="keyword">const override</span>;</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#afb1c7f57990c69df15950a4d83babc4c"> 65</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#afb1c7f57990c69df15950a4d83babc4c">open</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a8dc63ee1e4ae7b2f96823e146c53d03e">open</a>();</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_struct" href="structripple_1_1LedgerHeader.html">LedgerInfo</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a670216d23345c14bc5c1cb055b81aea2"> 71</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a670216d23345c14bc5c1cb055b81aea2">info</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#aca9d5e022d68fdd94bf3c8e36a294a96">info</a>();</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_struct" href="structripple_1_1Fees.html">Fees</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#aeda7788af08abf38fbd3e156db58faf3"> 77</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#aeda7788af08abf38fbd3e156db58faf3">fees</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a9944284a00f671a4a9d9e00f9b28b258">fees</a>();</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_class" href="classripple_1_1Rules.html">Rules</a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ae09b56129812843907916ceea46a78d2"> 83</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#ae09b56129812843907916ceea46a78d2">rules</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#aceb3d74acaae18b238022337e5f250ce">rules</a>();</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> }</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<key_type></a></div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a875950bc040b2704243d0a6ac9107ed4"> 89</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a875950bc040b2704243d0a6ac9107ed4">succ</a>(</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <a class="code hl_class" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key,</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<key_type></a> <span class="keyword">const</span>& last = std::nullopt)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a15b3629cee45ef3f5af4cef06f42e54a">succ</a>(key, last);</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<sles_type::iter_base></a></div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a92207fdd1c5a69fafd770f23e4355fb7"> 97</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a92207fdd1c5a69fafd770f23e4355fb7">slesBegin</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#ae42d4f16315f6e357fbaf7157991470a">slesBegin</a>();</div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> }</div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<sles_type::iter_base></a></div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#ac6183b176e9072137a45972a748914ac"> 103</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#ac6183b176e9072137a45972a748914ac">slesEnd</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a4ca795f655eb8b6b9ade9c1634e0ef17">slesEnd</a>();</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<sles_type::iter_base></a></div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a479c27f06b0f8493cb052023e54a6408"> 109</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a479c27f06b0f8493cb052023e54a6408">slesUpperBound</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a1903bd286e89d517dcec9fcbef5e7e32">slesUpperBound</a>(key);</div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> }</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<txs_type::iter_base></a></div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a753ef4b364431985f504669c8fc142cc"> 115</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a753ef4b364431985f504669c8fc142cc">txsBegin</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#a1d146422823dc32b9e846be1ddc8f318">txsBegin</a>();</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<txs_type::iter_base></a></div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a1b008fe9cb5458491e009407f803bf9a"> 121</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a1b008fe9cb5458491e009407f803bf9a">txsEnd</a>()<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#adc67c7456b33e839513ef233845846d9">txsEnd</a>();</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> }</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a5315d4aaf5a02b646e44cbc28cfca9ec"> 127</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a5315d4aaf5a02b646e44cbc28cfca9ec">txExists</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#af95bff423d062ed89665e9f628972ece">txExists</a>(key);</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <a class="code hl_typedef" href="classripple_1_1ReadView.html#ab1430dec61fd5ef9bf4a013aab558d71">tx_type</a></div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a27043f0ad97acde4fc0e2fc6103d4f85"> 133</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a27043f0ad97acde4fc0e2fc6103d4f85">txRead</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1ReadView.html#af88b035a71531a9b27ee2fa25d0444e9">txRead</a>(key);</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="comment">// DigestAwareReadView</span></div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<digest_type></a></div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="classripple_1_1detail_1_1CachedViewImpl.html#a3a33558e8776cb28bb8d122d61c701fa"> 143</a></span> <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a3a33558e8776cb28bb8d122d61c701fa">digest</a>(<a class="code hl_class" href="classripple_1_1base__uint.html">key_type</a> <span class="keyword">const</span>& key)<span class="keyword"> const override</span></div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">base_</a>.<a class="code hl_function" href="classripple_1_1DigestAwareReadView.html#a5ad294c301202590c41d55ec7b506edc">digest</a>(key);</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> }</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span>};</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span>} <span class="comment">// namespace detail</span></div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span><span class="keyword">template</span> <<span class="keyword">class</span> Base></div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html"> 156</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1CachedView.html">CachedView</a> : <span class="keyword">public</span> <a class="code hl_class" href="classripple_1_1detail_1_1CachedViewImpl.html">detail::CachedViewImpl</a></div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>{</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span><span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keyword">static_assert</span>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/is_base_of.html">std::is_base_of<DigestAwareReadView, Base>::value</a>, <span class="stringliteral">""</span>);</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4"> 161</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Base const></a> <a class="code hl_variable" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">sp_</a>;</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span><span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#a833577e6d0c5fb244c8e321664aea6f7"> 164</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="classripple_1_1CachedView.html#a833577e6d0c5fb244c8e321664aea6f7">base_type</a> = Base;</div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#ac1eb258ee12580b560363e2a16b396a6"> 166</a></span> <a class="code hl_function" href="classripple_1_1CachedView.html#ac1eb258ee12580b560363e2a16b396a6">CachedView</a>() = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#adeea4fcf3540ad16048a3cfd2abed32a"> 167</a></span> <a class="code hl_function" href="classripple_1_1CachedView.html#adeea4fcf3540ad16048a3cfd2abed32a">CachedView</a>(<a class="code hl_class" href="classripple_1_1CachedView.html">CachedView</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <a class="code hl_class" href="classripple_1_1CachedView.html">CachedView</a>&</div>
|
||||
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#acdc5e88d2140ab34e41912210ca866ad"> 169</a></span> <a class="code hl_function" href="classripple_1_1CachedView.html#acdc5e88d2140ab34e41912210ca866ad">operator=</a>(<a class="code hl_class" href="classripple_1_1CachedView.html">CachedView</a> <span class="keyword">const</span>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#ab5e60386dd024e1a760fa0da52745f37"> 171</a></span> <a class="code hl_function" href="classripple_1_1CachedView.html#ab5e60386dd024e1a760fa0da52745f37">CachedView</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Base const></a> <span class="keyword">const</span>& <a class="code hl_function" href="classripple_1_1CachedView.html#a0d1c90c527fa2c60b04f31bdea033b53">base</a>, <a class="code hl_class" href="classripple_1_1TaggedCache.html">CachedSLEs</a>& cache)</div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> : <a class="code hl_function" href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">CachedViewImpl</a>(<a class="code hl_function" href="classripple_1_1CachedView.html#a0d1c90c527fa2c60b04f31bdea033b53">base</a>.<a class="code hl_function" href="namespaceripple.html#ac341e8b4d6615fda7866d3c1c0014e44">get</a>(), cache), <a class="code hl_variable" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">sp_</a>(<a class="code hl_function" href="classripple_1_1CachedView.html#a0d1c90c527fa2c60b04f31bdea033b53">base</a>)</div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> {</div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> }</div>
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
|
||||
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr<Base const></a> <span class="keyword">const</span>&</div>
|
||||
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="classripple_1_1CachedView.html#a0d1c90c527fa2c60b04f31bdea033b53"> 181</a></span> <a class="code hl_function" href="classripple_1_1CachedView.html#a0d1c90c527fa2c60b04f31bdea033b53">base</a>()<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span><span class="keyword"> </span>{</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">sp_</a>;</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> }</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span>};</div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="preprocessor">#endif</span></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html"><div class="ttname"><a href="classripple_1_1CachedView.html">ripple::CachedView</a></div><div class="ttdoc">Wraps a DigestAwareReadView to provide caching.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00156">CachedView.h:157</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_a0d1c90c527fa2c60b04f31bdea033b53"><div class="ttname"><a href="classripple_1_1CachedView.html#a0d1c90c527fa2c60b04f31bdea033b53">ripple::CachedView::base</a></div><div class="ttdeci">std::shared_ptr< Base const > const & base() const</div><div class="ttdoc">Returns the base type.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00181">CachedView.h:181</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_a7d1df728f980eaa20c8bcab8cbde08a4"><div class="ttname"><a href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">ripple::CachedView::sp_</a></div><div class="ttdeci">std::shared_ptr< Base const > sp_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00161">CachedView.h:161</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_a833577e6d0c5fb244c8e321664aea6f7"><div class="ttname"><a href="classripple_1_1CachedView.html#a833577e6d0c5fb244c8e321664aea6f7">ripple::CachedView::base_type</a></div><div class="ttdeci">Base base_type</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00164">CachedView.h:164</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ac5a3432213732d31649d46d740331a1e"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ac5a3432213732d31649d46d740331a1e">ripple::detail::CachedViewImpl::digest</a></div><div class="ttdeci">std::optional< digest_type > digest(key_type const &key) const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00143">CachedView.h:143</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a463c3b77580aa8e9b2a945a4b56ca748"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">ripple::detail::CachedViewImpl::cache_</a></div><div class="ttdeci">CachedSLEs & cache_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00039">CachedView.h:39</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a937328125a7d62270f32b4e1555c5cdd"><div class="ttname"><a href="classripple_1_1ReadView.html#a937328125a7d62270f32b4e1555c5cdd">ripple::ReadView::key_type</a></div><div class="ttdeci">uint256 key_type</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00060">ReadView.h:60</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a27043f0ad97acde4fc0e2fc6103d4f85"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a27043f0ad97acde4fc0e2fc6103d4f85">ripple::detail::CachedViewImpl::txRead</a></div><div class="ttdeci">tx_type txRead(key_type const &key) const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00133">CachedView.h:133</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a9bbdb3fb4754482a8d6c6e6d25c2d1eb"><div class="ttname"><a href="classripple_1_1ReadView.html#a9bbdb3fb4754482a8d6c6e6d25c2d1eb">ripple::ReadView::fees</a></div><div class="ttdeci">virtual Fees const & fees() const =0</div><div class="ttdoc">Returns the fees for the base ledger.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_afbcb8704c56e927eca2cb81bcb42f912"><div class="ttname"><a href="classripple_1_1ReadView.html#afbcb8704c56e927eca2cb81bcb42f912">ripple::ReadView::txsEnd</a></div><div class="ttdeci">virtual std::unique_ptr< txs_type::iter_base > txsEnd() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a82ccc6fe5d28a3de1621deb839ef20d4"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a82ccc6fe5d28a3de1621deb839ef20d4">ripple::detail::CachedViewImpl::txsEnd</a></div><div class="ttdeci">std::unique_ptr< txs_type::iter_base > txsEnd() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00121">CachedView.h:121</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_af95bff423d062ed89665e9f628972ece"><div class="ttname"><a href="classripple_1_1ReadView.html#af95bff423d062ed89665e9f628972ece">ripple::ReadView::txExists</a></div><div class="ttdeci">virtual bool txExists(key_type const &key) const =0</div><div class="ttdoc">Returns true if a tx exists in the tx map.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a70b1654cf02d2af0c3d34faf6be218ac"><div class="ttname"><a href="classripple_1_1ReadView.html#a70b1654cf02d2af0c3d34faf6be218ac">ripple::ReadView::slesBegin</a></div><div class="ttdeci">virtual std::unique_ptr< sles_type::iter_base > slesBegin() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a92892d60149f12deb7f42de7177618f1"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">ripple::detail::CachedViewImpl::CachedViewImpl</a></div><div class="ttdeci">CachedViewImpl()=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ad874e14e567ad31774ccf4756aac3bac"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ad874e14e567ad31774ccf4756aac3bac">ripple::detail::CachedViewImpl::fees</a></div><div class="ttdeci">Fees const & fees() const override</div><div class="ttdoc">Returns the fees for the base ledger.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00077">CachedView.h:77</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ad5f8aa99a60123fef3082ba5c9f50988"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ad5f8aa99a60123fef3082ba5c9f50988">ripple::detail::CachedViewImpl::CachedViewImpl</a></div><div class="ttdeci">CachedViewImpl(DigestAwareReadView const *base, CachedSLEs &cache)</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00049">CachedView.h:49</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a6a245ca68b74f82d291bfb29fbf3d6a5"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a6a245ca68b74f82d291bfb29fbf3d6a5">ripple::detail::CachedViewImpl::txsBegin</a></div><div class="ttdeci">std::unique_ptr< txs_type::iter_base > txsBegin() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00115">CachedView.h:115</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a96f3599bffc047126acfd74f075d2125"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a96f3599bffc047126acfd74f075d2125">ripple::detail::CachedViewImpl::succ</a></div><div class="ttdeci">std::optional< key_type > succ(key_type const &key, std::optional< key_type > const &last=std::nullopt) const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00089">CachedView.h:89</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a5315d4aaf5a02b646e44cbc28cfca9ec"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a5315d4aaf5a02b646e44cbc28cfca9ec">ripple::detail::CachedViewImpl::txExists</a></div><div class="ttdeci">bool txExists(key_type const &key) const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00127">CachedView.h:127</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a77c5f58a30877fc28056f58063a01389"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a77c5f58a30877fc28056f58063a01389">ripple::detail::CachedViewImpl::slesEnd</a></div><div class="ttdeci">std::unique_ptr< sles_type::iter_base > slesEnd() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00103">CachedView.h:103</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a8bf980722b37ba7a57614fa7c92c7d11"><div class="ttname"><a href="classripple_1_1ReadView.html#a8bf980722b37ba7a57614fa7c92c7d11">ripple::ReadView::txsBegin</a></div><div class="ttdeci">virtual std::unique_ptr< txs_type::iter_base > txsBegin() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_af8db00c9a63969516a98cded17930845"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#af8db00c9a63969516a98cded17930845">ripple::detail::CachedViewImpl::read</a></div><div class="ttdeci">std::shared_ptr< SLE const > read(Keylet const &k) const override</div><div class="ttdoc">Return the state item associated with a key.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8cpp_source.html#l00034">CachedView.cpp:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_ac1eb258ee12580b560363e2a16b396a6"><div class="ttname"><a href="classripple_1_1CachedView.html#ac1eb258ee12580b560363e2a16b396a6">ripple::CachedView::CachedView</a></div><div class="ttdeci">CachedView()=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint</a></div><div class="ttdoc">Integers of any length that is a multiple of 32-bits.</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00082">base_uint.h:82</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ae165ae0cb1f8c8f40043e7fd81e7ab70"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ae165ae0cb1f8c8f40043e7fd81e7ab70">ripple::detail::CachedViewImpl::slesUpperBound</a></div><div class="ttdeci">std::unique_ptr< sles_type::iter_base > slesUpperBound(uint256 const &key) const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00109">CachedView.h:109</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Fees_html"><div class="ttname"><a href="structripple_1_1Fees.html">ripple::Fees</a></div><div class="ttdoc">Reflects the fee settings for a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="protocol_2Fees_8h_source.html#l00032">protocol/Fees.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html"><div class="ttname"><a href="classripple_1_1CachedView.html">ripple::CachedView</a></div><div class="ttdoc">Wraps a DigestAwareReadView to provide caching.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00156">CachedView.h:156</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_abccd7f2f0b2ebfaafc8fedd6cc7ad081"><div class="ttname"><a href="classripple_1_1ReadView.html#abccd7f2f0b2ebfaafc8fedd6cc7ad081">ripple::ReadView::slesUpperBound</a></div><div class="ttdeci">virtual std::unique_ptr< sles_type::iter_base > slesUpperBound(key_type const &key) const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a6940351c76fe355db59a9f8ff6bf807b"><div class="ttname"><a href="classripple_1_1ReadView.html#a6940351c76fe355db59a9f8ff6bf807b">ripple::ReadView::slesEnd</a></div><div class="ttdeci">virtual std::unique_ptr< sles_type::iter_base > slesEnd() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DigestAwareReadView_html"><div class="ttname"><a href="classripple_1_1DigestAwareReadView.html">ripple::DigestAwareReadView</a></div><div class="ttdoc">ReadView that associates keys with digests.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00258">ReadView.h:258</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_af88b035a71531a9b27ee2fa25d0444e9"><div class="ttname"><a href="classripple_1_1ReadView.html#af88b035a71531a9b27ee2fa25d0444e9">ripple::ReadView::txRead</a></div><div class="ttdeci">virtual tx_type txRead(key_type const &key) const =0</div><div class="ttdoc">Read a transaction from the tx map.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_adb3ef95cbd470775fe1e09955399667f"><div class="ttname"><a href="classripple_1_1ReadView.html#adb3ef95cbd470775fe1e09955399667f">ripple::ReadView::succ</a></div><div class="ttdeci">virtual std::optional< key_type > succ(key_type const &key, std::optional< key_type > const &last=std::nullopt) const =0</div><div class="ttdoc">Return the key of the next state item.</div></div>
|
||||
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/map.html">map</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a8e3b1b79b6af545c3dfcee40dd0d5299"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a8e3b1b79b6af545c3dfcee40dd0d5299">ripple::detail::CachedViewImpl::rules</a></div><div class="ttdeci">Rules const & rules() const override</div><div class="ttdoc">Returns the tx processing rules.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00083">CachedView.h:83</a></div></div>
|
||||
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1LedgerHeader_html"><div class="ttname"><a href="structripple_1_1LedgerHeader.html">ripple::LedgerHeader</a></div><div class="ttdoc">Information about the notional ledger backing the view.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHeader_8h_source.html#l00033">LedgerHeader.h:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a7f2a80272a6891bb4ac27a26ac3e91d2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2">ripple::detail::CachedViewImpl::map_</a></div><div class="ttdeci">std::unordered_map< key_type, uint256, hardened_hash<> > map_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00041">CachedView.h:41</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_ab1430dec61fd5ef9bf4a013aab558d71"><div class="ttname"><a href="classripple_1_1ReadView.html#ab1430dec61fd5ef9bf4a013aab558d71">ripple::ReadView::tx_type</a></div><div class="ttdeci">std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > tx_type</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00058">ReadView.h:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a7a7588db26208689d2224b068625dae2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a7a7588db26208689d2224b068625dae2">ripple::detail::CachedViewImpl::info</a></div><div class="ttdeci">LedgerInfo const & info() const override</div><div class="ttdoc">Returns information about the ledger.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00071">CachedView.h:71</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_aeebad9c38c7212e18336b1ca24f8f1da"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#aeebad9c38c7212e18336b1ca24f8f1da">ripple::detail::CachedViewImpl::operator=</a></div><div class="ttdeci">CachedViewImpl & operator=(CachedViewImpl const &)=delete</div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a470f48833caf730009dcfc76428aacf2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">ripple::detail::CachedViewImpl::base_</a></div><div class="ttdeci">DigestAwareReadView const & base_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00038">CachedView.h:38</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_aaf2fa03be723bb78d8bdf41614a75a30"><div class="ttname"><a href="classripple_1_1ReadView.html#aaf2fa03be723bb78d8bdf41614a75a30">ripple::ReadView::rules</a></div><div class="ttdeci">virtual Rules const & rules() const =0</div><div class="ttdoc">Returns the tx processing rules.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_a446bf249300d9ec1c8c43b1356ba1785"><div class="ttname"><a href="classripple_1_1CachedView.html#a446bf249300d9ec1c8c43b1356ba1785">ripple::CachedView::operator=</a></div><div class="ttdeci">CachedView & operator=(CachedView const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition:</b> <a href="Rules_8h_source.html#l00033">Rules.h:33</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_a832345e9656d0c77823fbd990a85f24f"><div class="ttname"><a href="classripple_1_1CachedView.html#a832345e9656d0c77823fbd990a85f24f">ripple::CachedView::base</a></div><div class="ttdeci">std::shared_ptr< Base const > const & base() const</div><div class="ttdoc">Returns the base type.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00181">CachedView.h:181</a></div></div>
|
||||
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
||||
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a68bb9ce15af8016d45d70129fb269078"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">ripple::detail::CachedViewImpl::exists</a></div><div class="ttdeci">bool exists(Keylet const &k) const override</div><div class="ttdoc">Determine if a state item exists.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8cpp_source.html#l00028">CachedView.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_a7d1df728f980eaa20c8bcab8cbde08a4"><div class="ttname"><a href="classripple_1_1CachedView.html#a7d1df728f980eaa20c8bcab8cbde08a4">ripple::CachedView::sp_</a></div><div class="ttdeci">std::shared_ptr< Base const > sp_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00159">CachedView.h:159</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DigestAwareReadView_html_abb28ae3cc06d0450b0eae17f0a531a0f"><div class="ttname"><a href="classripple_1_1DigestAwareReadView.html#abb28ae3cc06d0450b0eae17f0a531a0f">ripple::DigestAwareReadView::digest</a></div><div class="ttdeci">virtual std::optional< digest_type > digest(key_type const &key) const =0</div><div class="ttdoc">Return the digest associated with the key.</div></div>
|
||||
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_af882e84e266d9b4bc2194de80b638898"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">ripple::detail::CachedViewImpl::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00040">CachedView.h:40</a></div></div>
|
||||
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></div><div class="ttdoc">STL class.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a8dc63ee1e4ae7b2f96823e146c53d03e"><div class="ttname"><a href="classripple_1_1ReadView.html#a8dc63ee1e4ae7b2f96823e146c53d03e">ripple::ReadView::open</a></div><div class="ttdeci">virtual bool open() const =0</div><div class="ttdoc">Returns true if this reflects an open ledger.</div></div>
|
||||
<div class="ttc" id="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_ab5e60386dd024e1a760fa0da52745f37"><div class="ttname"><a href="classripple_1_1CachedView.html#ab5e60386dd024e1a760fa0da52745f37">ripple::CachedView::CachedView</a></div><div class="ttdeci">CachedView(std::shared_ptr< Base const > const &base, CachedSLEs &cache)</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00171">CachedView.h:171</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a104985c6e3067babe99aca6bbc51ba5d"><div class="ttname"><a href="namespaceripple.html#a104985c6e3067babe99aca6bbc51ba5d">ripple::get</a></div><div class="ttdeci">T & get(EitherAmount &amt)</div><div class="ttdef"><b>Definition:</b> <a href="AmountSpec_8h_source.html#l00118">AmountSpec.h:118</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_ac1eb258ee12580b560363e2a16b396a6"><div class="ttname"><a href="classripple_1_1CachedView.html#ac1eb258ee12580b560363e2a16b396a6">ripple::CachedView::CachedView</a></div><div class="ttdeci">CachedView()=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_acdc5e88d2140ab34e41912210ca866ad"><div class="ttname"><a href="classripple_1_1CachedView.html#acdc5e88d2140ab34e41912210ca866ad">ripple::CachedView::operator=</a></div><div class="ttdeci">CachedView & operator=(CachedView const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1CachedView_html_adeea4fcf3540ad16048a3cfd2abed32a"><div class="ttname"><a href="classripple_1_1CachedView.html#adeea4fcf3540ad16048a3cfd2abed32a">ripple::CachedView::CachedView</a></div><div class="ttdeci">CachedView(CachedView const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DigestAwareReadView_html"><div class="ttname"><a href="classripple_1_1DigestAwareReadView.html">ripple::DigestAwareReadView</a></div><div class="ttdoc">ReadView that associates keys with digests.</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00258">ReadView.h:259</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1DigestAwareReadView_html_a5ad294c301202590c41d55ec7b506edc"><div class="ttname"><a href="classripple_1_1DigestAwareReadView.html#a5ad294c301202590c41d55ec7b506edc">ripple::DigestAwareReadView::digest</a></div><div class="ttdeci">virtual std::optional< digest_type > digest(key_type const &key) const =0</div><div class="ttdoc">Return the digest associated with the key.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a15b3629cee45ef3f5af4cef06f42e54a"><div class="ttname"><a href="classripple_1_1ReadView.html#a15b3629cee45ef3f5af4cef06f42e54a">ripple::ReadView::succ</a></div><div class="ttdeci">virtual std::optional< key_type > succ(key_type const &key, std::optional< key_type > const &last=std::nullopt) const =0</div><div class="ttdoc">Return the key of the next state item.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a1903bd286e89d517dcec9fcbef5e7e32"><div class="ttname"><a href="classripple_1_1ReadView.html#a1903bd286e89d517dcec9fcbef5e7e32">ripple::ReadView::slesUpperBound</a></div><div class="ttdeci">virtual std::unique_ptr< sles_type::iter_base > slesUpperBound(key_type const &key) const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a1d146422823dc32b9e846be1ddc8f318"><div class="ttname"><a href="classripple_1_1ReadView.html#a1d146422823dc32b9e846be1ddc8f318">ripple::ReadView::txsBegin</a></div><div class="ttdeci">virtual std::unique_ptr< txs_type::iter_base > txsBegin() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a4ca795f655eb8b6b9ade9c1634e0ef17"><div class="ttname"><a href="classripple_1_1ReadView.html#a4ca795f655eb8b6b9ade9c1634e0ef17">ripple::ReadView::slesEnd</a></div><div class="ttdeci">virtual std::unique_ptr< sles_type::iter_base > slesEnd() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a8dc63ee1e4ae7b2f96823e146c53d03e"><div class="ttname"><a href="classripple_1_1ReadView.html#a8dc63ee1e4ae7b2f96823e146c53d03e">ripple::ReadView::open</a></div><div class="ttdeci">virtual bool open() const =0</div><div class="ttdoc">Returns true if this reflects an open ledger.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_a9944284a00f671a4a9d9e00f9b28b258"><div class="ttname"><a href="classripple_1_1ReadView.html#a9944284a00f671a4a9d9e00f9b28b258">ripple::ReadView::fees</a></div><div class="ttdeci">virtual Fees const & fees() const =0</div><div class="ttdoc">Returns the fees for the base ledger.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_ab1430dec61fd5ef9bf4a013aab558d71"><div class="ttname"><a href="classripple_1_1ReadView.html#ab1430dec61fd5ef9bf4a013aab558d71">ripple::ReadView::tx_type</a></div><div class="ttdeci">std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > tx_type</div><div class="ttdef"><b>Definition:</b> <a href="ReadView_8h_source.html#l00057">ReadView.h:58</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_aca9d5e022d68fdd94bf3c8e36a294a96"><div class="ttname"><a href="classripple_1_1ReadView.html#aca9d5e022d68fdd94bf3c8e36a294a96">ripple::ReadView::info</a></div><div class="ttdeci">virtual LedgerInfo const & info() const =0</div><div class="ttdoc">Returns information about the ledger.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_aceb3d74acaae18b238022337e5f250ce"><div class="ttname"><a href="classripple_1_1ReadView.html#aceb3d74acaae18b238022337e5f250ce">ripple::ReadView::rules</a></div><div class="ttdeci">virtual Rules const & rules() const =0</div><div class="ttdoc">Returns the tx processing rules.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_adc67c7456b33e839513ef233845846d9"><div class="ttname"><a href="classripple_1_1ReadView.html#adc67c7456b33e839513ef233845846d9">ripple::ReadView::txsEnd</a></div><div class="ttdeci">virtual std::unique_ptr< txs_type::iter_base > txsEnd() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_ae42d4f16315f6e357fbaf7157991470a"><div class="ttname"><a href="classripple_1_1ReadView.html#ae42d4f16315f6e357fbaf7157991470a">ripple::ReadView::slesBegin</a></div><div class="ttdeci">virtual std::unique_ptr< sles_type::iter_base > slesBegin() const =0</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_af88b035a71531a9b27ee2fa25d0444e9"><div class="ttname"><a href="classripple_1_1ReadView.html#af88b035a71531a9b27ee2fa25d0444e9">ripple::ReadView::txRead</a></div><div class="ttdeci">virtual tx_type txRead(key_type const &key) const =0</div><div class="ttdoc">Read a transaction from the tx map.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1ReadView_html_af95bff423d062ed89665e9f628972ece"><div class="ttname"><a href="classripple_1_1ReadView.html#af95bff423d062ed89665e9f628972ece">ripple::ReadView::txExists</a></div><div class="ttdeci">virtual bool txExists(key_type const &key) const =0</div><div class="ttdoc">Returns true if a tx exists in the tx map.</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1Rules_html"><div class="ttname"><a href="classripple_1_1Rules.html">ripple::Rules</a></div><div class="ttdoc">Rules controlling protocol behavior.</div><div class="ttdef"><b>Definition:</b> <a href="Rules_8h_source.html#l00034">Rules.h:35</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1TaggedCache_html"><div class="ttname"><a href="classripple_1_1TaggedCache.html">ripple::TaggedCache</a></div><div class="ttdoc">Map/cache combination.</div><div class="ttdef"><b>Definition:</b> <a href="TaggedCache_8h_source.html#l00056">TaggedCache.h:57</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_1detail_1_1CachedViewImpl_html"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html">ripple::detail::CachedViewImpl</a></div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00035">CachedView.h:36</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a1b008fe9cb5458491e009407f803bf9a"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a1b008fe9cb5458491e009407f803bf9a">ripple::detail::CachedViewImpl::txsEnd</a></div><div class="ttdeci">std::unique_ptr< txs_type::iter_base > txsEnd() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00121">CachedView.h:121</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a27043f0ad97acde4fc0e2fc6103d4f85"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a27043f0ad97acde4fc0e2fc6103d4f85">ripple::detail::CachedViewImpl::txRead</a></div><div class="ttdeci">tx_type txRead(key_type const &key) const override</div><div class="ttdoc">Read a transaction from the tx map.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00133">CachedView.h:133</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a36b722997bd85e84aaad410c953328b8"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a36b722997bd85e84aaad410c953328b8">ripple::detail::CachedViewImpl::operator=</a></div><div class="ttdeci">CachedViewImpl & operator=(CachedViewImpl const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a3a33558e8776cb28bb8d122d61c701fa"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a3a33558e8776cb28bb8d122d61c701fa">ripple::detail::CachedViewImpl::digest</a></div><div class="ttdeci">std::optional< digest_type > digest(key_type const &key) const override</div><div class="ttdoc">Return the digest associated with the key.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00143">CachedView.h:143</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a463c3b77580aa8e9b2a945a4b56ca748"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a463c3b77580aa8e9b2a945a4b56ca748">ripple::detail::CachedViewImpl::cache_</a></div><div class="ttdeci">CachedSLEs & cache_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00039">CachedView.h:39</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a470f48833caf730009dcfc76428aacf2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a470f48833caf730009dcfc76428aacf2">ripple::detail::CachedViewImpl::base_</a></div><div class="ttdeci">DigestAwareReadView const & base_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00038">CachedView.h:38</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a479c27f06b0f8493cb052023e54a6408"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a479c27f06b0f8493cb052023e54a6408">ripple::detail::CachedViewImpl::slesUpperBound</a></div><div class="ttdeci">std::unique_ptr< sles_type::iter_base > slesUpperBound(uint256 const &key) const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00109">CachedView.h:109</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a5315d4aaf5a02b646e44cbc28cfca9ec"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a5315d4aaf5a02b646e44cbc28cfca9ec">ripple::detail::CachedViewImpl::txExists</a></div><div class="ttdeci">bool txExists(key_type const &key) const override</div><div class="ttdoc">Returns true if a tx exists in the tx map.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00127">CachedView.h:127</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a582680a14129f2d3e08018a3044a0b4b"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a582680a14129f2d3e08018a3044a0b4b">ripple::detail::CachedViewImpl::read</a></div><div class="ttdeci">std::shared_ptr< SLE const > read(Keylet const &k) const override</div><div class="ttdoc">Return the state item associated with a key.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8cpp_source.html#l00034">CachedView.cpp:34</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a670216d23345c14bc5c1cb055b81aea2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a670216d23345c14bc5c1cb055b81aea2">ripple::detail::CachedViewImpl::info</a></div><div class="ttdeci">LedgerInfo const & info() const override</div><div class="ttdoc">Returns information about the ledger.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00071">CachedView.h:71</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a68bb9ce15af8016d45d70129fb269078"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a68bb9ce15af8016d45d70129fb269078">ripple::detail::CachedViewImpl::exists</a></div><div class="ttdeci">bool exists(Keylet const &k) const override</div><div class="ttdoc">Determine if a state item exists.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8cpp_source.html#l00028">CachedView.cpp:28</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a753ef4b364431985f504669c8fc142cc"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a753ef4b364431985f504669c8fc142cc">ripple::detail::CachedViewImpl::txsBegin</a></div><div class="ttdeci">std::unique_ptr< txs_type::iter_base > txsBegin() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00115">CachedView.h:115</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a79f07ace9c8248c8c59d4d43f3bd70dc"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a79f07ace9c8248c8c59d4d43f3bd70dc">ripple::detail::CachedViewImpl::CachedViewImpl</a></div><div class="ttdeci">CachedViewImpl(CachedViewImpl const &)=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a7f2a80272a6891bb4ac27a26ac3e91d2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a7f2a80272a6891bb4ac27a26ac3e91d2">ripple::detail::CachedViewImpl::map_</a></div><div class="ttdeci">std::unordered_map< key_type, uint256, hardened_hash<> > map_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00041">CachedView.h:41</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a875950bc040b2704243d0a6ac9107ed4"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a875950bc040b2704243d0a6ac9107ed4">ripple::detail::CachedViewImpl::succ</a></div><div class="ttdeci">std::optional< key_type > succ(key_type const &key, std::optional< key_type > const &last=std::nullopt) const override</div><div class="ttdoc">Return the key of the next state item.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00089">CachedView.h:89</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a92207fdd1c5a69fafd770f23e4355fb7"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a92207fdd1c5a69fafd770f23e4355fb7">ripple::detail::CachedViewImpl::slesBegin</a></div><div class="ttdeci">std::unique_ptr< sles_type::iter_base > slesBegin() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00097">CachedView.h:97</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a92892d60149f12deb7f42de7177618f1"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a92892d60149f12deb7f42de7177618f1">ripple::detail::CachedViewImpl::CachedViewImpl</a></div><div class="ttdeci">CachedViewImpl()=delete</div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ac6183b176e9072137a45972a748914ac"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ac6183b176e9072137a45972a748914ac">ripple::detail::CachedViewImpl::slesEnd</a></div><div class="ttdeci">std::unique_ptr< sles_type::iter_base > slesEnd() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00103">CachedView.h:103</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ad5f8aa99a60123fef3082ba5c9f50988"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ad5f8aa99a60123fef3082ba5c9f50988">ripple::detail::CachedViewImpl::CachedViewImpl</a></div><div class="ttdeci">CachedViewImpl(DigestAwareReadView const *base, CachedSLEs &cache)</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00049">CachedView.h:49</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_ae09b56129812843907916ceea46a78d2"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#ae09b56129812843907916ceea46a78d2">ripple::detail::CachedViewImpl::rules</a></div><div class="ttdeci">Rules const & rules() const override</div><div class="ttdoc">Returns the tx processing rules.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00083">CachedView.h:83</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_aeda7788af08abf38fbd3e156db58faf3"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#aeda7788af08abf38fbd3e156db58faf3">ripple::detail::CachedViewImpl::fees</a></div><div class="ttdeci">Fees const & fees() const override</div><div class="ttdoc">Returns the fees for the base ledger.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00077">CachedView.h:77</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_af882e84e266d9b4bc2194de80b638898"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#af882e84e266d9b4bc2194de80b638898">ripple::detail::CachedViewImpl::mutex_</a></div><div class="ttdeci">std::mutex mutex_</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00040">CachedView.h:40</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_afb1c7f57990c69df15950a4d83babc4c"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#afb1c7f57990c69df15950a4d83babc4c">ripple::detail::CachedViewImpl::open</a></div><div class="ttdeci">bool open() const override</div><div class="ttdoc">Returns true if this reflects an open ledger.</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00065">CachedView.h:65</a></div></div>
|
||||
<div class="ttc" id="ais_base_of_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_base_of.html">std::is_base_of</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1detail_1_1CachedViewImpl_html_a4724f686191546657263061e5b0ea951"><div class="ttname"><a href="classripple_1_1detail_1_1CachedViewImpl.html#a4724f686191546657263061e5b0ea951">ripple::detail::CachedViewImpl::slesBegin</a></div><div class="ttdeci">std::unique_ptr< sles_type::iter_base > slesBegin() const override</div><div class="ttdef"><b>Definition:</b> <a href="CachedView_8h_source.html#l00097">CachedView.h:97</a></div></div>
|
||||
<div class="ttc" id="amap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/map.html">map</a></div></div>
|
||||
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a></div></div>
|
||||
<div class="ttc" id="amutex_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/mutex.html">mutex</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ac341e8b4d6615fda7866d3c1c0014e44"><div class="ttname"><a href="namespaceripple.html#ac341e8b4d6615fda7866d3c1c0014e44">ripple::get</a></div><div class="ttdeci">T get(Section const &section, std::string const &name, T const &defaultValue=T{})</div><div class="ttdoc">Retrieve a key/value pair from a section.</div><div class="ttdef"><b>Definition:</b> <a href="BasicConfig_8h_source.html#l00353">BasicConfig.h:353</a></div></div>
|
||||
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional</a></div></div>
|
||||
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Fees_html"><div class="ttname"><a href="structripple_1_1Fees.html">ripple::Fees</a></div><div class="ttdoc">Reflects the fee settings for a particular ledger.</div><div class="ttdef"><b>Definition:</b> <a href="protocol_2Fees_8h_source.html#l00032">protocol/Fees.h:33</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Keylet_html"><div class="ttname"><a href="structripple_1_1Keylet.html">ripple::Keylet</a></div><div class="ttdoc">A pair of SHAMap key and LedgerEntryType.</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8h_source.html#l00038">Keylet.h:39</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1LedgerHeader_html"><div class="ttname"><a href="structripple_1_1LedgerHeader.html">ripple::LedgerHeader</a></div><div class="ttdoc">Information about the notional ledger backing the view.</div><div class="ttdef"><b>Definition:</b> <a href="LedgerHeader_8h_source.html#l00033">LedgerHeader.h:34</a></div></div>
|
||||
<div class="ttc" id="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
|
||||
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div></div>
|
||||
<div class="ttc" id="aunordered_map_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/unordered_map.html">std::unordered_map</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.17
|
||||
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user