mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
208 lines
27 KiB
HTML
208 lines
27 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: SHAMapLeafNode.cpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_90ffdbabf412cfdffe6b2193e0ce938a.html">libxrpl</a></li><li class="navelem"><a class="el" href="dir_1cf8fc3bc79b026bd5b725d287fb7808.html">shamap</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">SHAMapLeafNode.cpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#include <xrpl/shamap/SHAMapLeafNode.h></span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="foldopen" id="foldopen00005" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapLeafNode.html#ac8342b2b39747b5cc95a331bf3f1aa7a"> 5</a></span><a class="code hl_function" href="classripple_1_1SHAMapLeafNode.html#ac8342b2b39747b5cc95a331bf3f1aa7a">SHAMapLeafNode::SHAMapLeafNode</a>(</div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> boost::intrusive_ptr<SHAMapItem const> item,</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> cowid)</div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> : <a class="code hl_class" href="classripple_1_1SHAMapTreeNode.html">SHAMapTreeNode</a>(cowid), item_(<a class="code hl_namespace" href="namespacestd.html">std</a>::move(item))</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span>{</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> XRPL_ASSERT(</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a>->size() >= 12,</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <span class="stringliteral">"ripple::SHAMapLeafNode::SHAMapLeafNode(boost::intrusive_ptr<"</span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="stringliteral">"SHAMapItem const>, std::uint32_t) : minimum input size"</span>);</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="foldopen" id="foldopen00016" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapLeafNode.html#ad46296e0d50565c74ac232d1bf56c5cb"> 16</a></span><a class="code hl_function" href="classripple_1_1SHAMapLeafNode.html#ac8342b2b39747b5cc95a331bf3f1aa7a">SHAMapLeafNode::SHAMapLeafNode</a>(</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> boost::intrusive_ptr<SHAMapItem const> item,</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> cowid,</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <a class="code hl_class" href="classripple_1_1SHAMapHash.html">SHAMapHash</a> <span class="keyword">const</span>& hash)</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> : <a class="code hl_class" href="classripple_1_1SHAMapTreeNode.html">SHAMapTreeNode</a>(cowid, hash), item_(<a class="code hl_namespace" href="namespacestd.html">std</a>::move(item))</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>{</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> XRPL_ASSERT(</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a>->size() >= 12,</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="stringliteral">"ripple::SHAMapLeafNode::SHAMapLeafNode(boost::intrusive_ptr<"</span></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="stringliteral">"SHAMapItem const>, std::uint32_t, SHAMapHash const&) : minimum input "</span></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="stringliteral">"size"</span>);</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span>boost::intrusive_ptr<SHAMapItem const> <span class="keyword">const</span>&</div>
|
|
<div class="foldopen" id="foldopen00030" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapLeafNode.html#afee48bd94530b5ad6dfe4a403d8455c4"> 30</a></span><a class="code hl_function" href="classripple_1_1SHAMapLeafNode.html#afee48bd94530b5ad6dfe4a403d8455c4">SHAMapLeafNode::peekItem</a>()<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword"></span>{</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a>;</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span>}</div>
|
|
</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"> 35</span><span class="keywordtype">bool</span></div>
|
|
<div class="foldopen" id="foldopen00036" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapLeafNode.html#ada83f0df874a2c0050a54daf1d3ea883"> 36</a></span><a class="code hl_function" href="classripple_1_1SHAMapLeafNode.html#ada83f0df874a2c0050a54daf1d3ea883">SHAMapLeafNode::setItem</a>(boost::intrusive_ptr<SHAMapItem const> item)</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>{</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> XRPL_ASSERT(<a class="code hl_variable" href="classripple_1_1SHAMapTreeNode.html#a7f27d867484104446867c0f50adc5ffb">cowid_</a>, <span class="stringliteral">"ripple::SHAMapLeafNode::setItem : nonzero cowid"</span>);</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a> = std::move(item);</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">auto</span> <span class="keyword">const</span> oldHash = <a class="code hl_variable" href="classripple_1_1SHAMapTreeNode.html#a705bca4eb622097a917a3cac5c3a013d">hash_</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> <a class="code hl_function" href="classripple_1_1SHAMapTreeNode.html#a6bdd2d5b35200db414ead5041495f7dd">updateHash</a>();</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> (oldHash != <a class="code hl_variable" href="classripple_1_1SHAMapTreeNode.html#a705bca4eb622097a917a3cac5c3a013d">hash_</a>);</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
|
<div class="foldopen" id="foldopen00049" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapLeafNode.html#a281c972c705ae159866a146f3556c4e6"> 49</a></span><a class="code hl_function" href="classripple_1_1SHAMapLeafNode.html#a281c972c705ae159866a146f3556c4e6">SHAMapLeafNode::getString</a>(<a class="code hl_class" href="classripple_1_1SHAMapNodeID.html">SHAMapNodeID</a> <span class="keyword">const</span>& <span class="keywordtype">id</span>)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="keyword"></span>{</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> ret = <a class="code hl_function" href="classripple_1_1SHAMapTreeNode.html#a2dbee3cfa72319c01b649f4c255a5a9d">SHAMapTreeNode::getString</a>(<span class="keywordtype">id</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> <span class="keyword">auto</span> <span class="keyword">const</span> type = <a class="code hl_function" href="classripple_1_1SHAMapTreeNode.html#aebfb8013182e80c9c2436764cf018090">getType</a>();</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">if</span> (type == <a class="code hl_enumvalue" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">SHAMapNodeType::tnTRANSACTION_NM</a>)</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> ret += <span class="stringliteral">",txn\n"</span>;</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == <a class="code hl_enumvalue" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a5065e45315e5eab27c63b2dabd8ad150">SHAMapNodeType::tnTRANSACTION_MD</a>)</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> ret += <span class="stringliteral">",txn+md\n"</span>;</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (type == <a class="code hl_enumvalue" href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58ab2364e40a67b08ba6170314afc07d07b">SHAMapNodeType::tnACCOUNT_STATE</a>)</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> ret += <span class="stringliteral">",as\n"</span>;</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> ret += <span class="stringliteral">",leaf\n"</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> ret += <span class="stringliteral">" Tag="</span>;</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> ret += <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(<a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a>->key());</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> ret += <span class="stringliteral">"\n Hash="</span>;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> ret += <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(<a class="code hl_variable" href="classripple_1_1SHAMapTreeNode.html#a705bca4eb622097a917a3cac5c3a013d">hash_</a>);</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> ret += <span class="stringliteral">"/"</span>;</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> ret += <a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(<a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a>->size());</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00074" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classripple_1_1SHAMapLeafNode.html#af777f590d86414bb7a88decd5b001110"> 74</a></span><a class="code hl_function" href="classripple_1_1SHAMapLeafNode.html#af777f590d86414bb7a88decd5b001110">SHAMapLeafNode::invariants</a>(<span class="keywordtype">bool</span>)<span class="keyword"> const</span></div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="keyword"></span>{</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> XRPL_ASSERT(</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_variable" href="classripple_1_1SHAMapTreeNode.html#a705bca4eb622097a917a3cac5c3a013d">hash_</a>.<a class="code hl_function" href="classripple_1_1SHAMapHash.html#a6e42edf954f9565ebffd6a9036d6646f">isNonZero</a>(), <span class="stringliteral">"ripple::SHAMapLeafNode::invariants : nonzero hash"</span>);</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> XRPL_ASSERT(<a class="code hl_variable" href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">item_</a>, <span class="stringliteral">"ripple::SHAMapLeafNode::invariants : non-null item"</span>);</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span>}</div>
|
|
</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>} <span class="comment">// namespace ripple</span></div>
|
|
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapHash_html"><div class="ttname"><a href="classripple_1_1SHAMapHash.html">ripple::SHAMapHash</a></div><div class="ttdef"><b>Definition</b> <a href="SHAMapHash_8h_source.html#l00014">SHAMapHash.h:15</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapHash_html_a6e42edf954f9565ebffd6a9036d6646f"><div class="ttname"><a href="classripple_1_1SHAMapHash.html#a6e42edf954f9565ebffd6a9036d6646f">ripple::SHAMapHash::isNonZero</a></div><div class="ttdeci">bool isNonZero() const</div><div class="ttdef"><b>Definition</b> <a href="SHAMapHash_8h_source.html#l00040">SHAMapHash.h:40</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_a281c972c705ae159866a146f3556c4e6"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#a281c972c705ae159866a146f3556c4e6">ripple::SHAMapLeafNode::getString</a></div><div class="ttdeci">std::string getString(SHAMapNodeID const &) const final override</div><div class="ttdef"><b>Definition</b> <a href="SHAMapLeafNode_8cpp_source.html#l00049">SHAMapLeafNode.cpp:49</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_a8629b790383fb14f7fab214002e793ee"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#a8629b790383fb14f7fab214002e793ee">ripple::SHAMapLeafNode::item_</a></div><div class="ttdeci">boost::intrusive_ptr< SHAMapItem const > item_</div><div class="ttdef"><b>Definition</b> <a href="SHAMapLeafNode_8h_source.html#l00014">SHAMapLeafNode.h:14</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_ac8342b2b39747b5cc95a331bf3f1aa7a"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#ac8342b2b39747b5cc95a331bf3f1aa7a">ripple::SHAMapLeafNode::SHAMapLeafNode</a></div><div class="ttdeci">SHAMapLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid)</div><div class="ttdef"><b>Definition</b> <a href="SHAMapLeafNode_8cpp_source.html#l00005">SHAMapLeafNode.cpp:5</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_ada83f0df874a2c0050a54daf1d3ea883"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#ada83f0df874a2c0050a54daf1d3ea883">ripple::SHAMapLeafNode::setItem</a></div><div class="ttdeci">bool setItem(boost::intrusive_ptr< SHAMapItem const > i)</div><div class="ttdoc">Set the item that this node points to and update the node's hash.</div><div class="ttdef"><b>Definition</b> <a href="SHAMapLeafNode_8cpp_source.html#l00036">SHAMapLeafNode.cpp:36</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_af777f590d86414bb7a88decd5b001110"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#af777f590d86414bb7a88decd5b001110">ripple::SHAMapLeafNode::invariants</a></div><div class="ttdeci">void invariants(bool is_root=false) const final override</div><div class="ttdef"><b>Definition</b> <a href="SHAMapLeafNode_8cpp_source.html#l00074">SHAMapLeafNode.cpp:74</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapLeafNode_html_afee48bd94530b5ad6dfe4a403d8455c4"><div class="ttname"><a href="classripple_1_1SHAMapLeafNode.html#afee48bd94530b5ad6dfe4a403d8455c4">ripple::SHAMapLeafNode::peekItem</a></div><div class="ttdeci">boost::intrusive_ptr< SHAMapItem const > const & peekItem() const</div><div class="ttdef"><b>Definition</b> <a href="SHAMapLeafNode_8cpp_source.html#l00030">SHAMapLeafNode.cpp:30</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapNodeID_html"><div class="ttname"><a href="classripple_1_1SHAMapNodeID.html">ripple::SHAMapNodeID</a></div><div class="ttdoc">Identifies a node inside a SHAMap.</div><div class="ttdef"><b>Definition</b> <a href="SHAMapNodeID_8h_source.html#l00014">SHAMapNodeID.h:15</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html">ripple::SHAMapTreeNode</a></div><div class="ttdef"><b>Definition</b> <a href="SHAMapTreeNode_8h_source.html#l00031">SHAMapTreeNode.h:32</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a2dbee3cfa72319c01b649f4c255a5a9d"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a2dbee3cfa72319c01b649f4c255a5a9d">ripple::SHAMapTreeNode::getString</a></div><div class="ttdeci">virtual std::string getString(SHAMapNodeID const &) const</div><div class="ttdef"><b>Definition</b> <a href="SHAMapTreeNode_8cpp_source.html#l00162">SHAMapTreeNode.cpp:162</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a6bdd2d5b35200db414ead5041495f7dd"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a6bdd2d5b35200db414ead5041495f7dd">ripple::SHAMapTreeNode::updateHash</a></div><div class="ttdeci">virtual void updateHash()=0</div><div class="ttdoc">Recalculate the hash of this node.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a705bca4eb622097a917a3cac5c3a013d"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a705bca4eb622097a917a3cac5c3a013d">ripple::SHAMapTreeNode::hash_</a></div><div class="ttdeci">SHAMapHash hash_</div><div class="ttdef"><b>Definition</b> <a href="SHAMapTreeNode_8h_source.html#l00034">SHAMapTreeNode.h:34</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_a7f27d867484104446867c0f50adc5ffb"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#a7f27d867484104446867c0f50adc5ffb">ripple::SHAMapTreeNode::cowid_</a></div><div class="ttdeci">std::uint32_t cowid_</div><div class="ttdoc">Determines the owning SHAMap, if any.</div><div class="ttdef"><b>Definition</b> <a href="SHAMapTreeNode_8h_source.html#l00042">SHAMapTreeNode.h:42</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SHAMapTreeNode_html_aebfb8013182e80c9c2436764cf018090"><div class="ttname"><a href="classripple_1_1SHAMapTreeNode.html#aebfb8013182e80c9c2436764cf018090">ripple::SHAMapTreeNode::getType</a></div><div class="ttdeci">virtual SHAMapNodeType getType() const =0</div><div class="ttdoc">Determines the type of node.</div></div>
|
|
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
|
|
<div class="ttc" id="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#l00006">algorithm.h:6</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ac124fe6744b7fe887dec949b56b16d50"><div class="ttname"><a href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">ripple::to_string</a></div><div class="ttdeci">std::string to_string(base_uint< Bits, Tag > const &a)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00611">base_uint.h:611</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ae0356b1de00f841c554c830be509dd58a5065e45315e5eab27c63b2dabd8ad150"><div class="ttname"><a href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a5065e45315e5eab27c63b2dabd8ad150">ripple::SHAMapNodeType::tnTRANSACTION_MD</a></div><div class="ttdeci">@ tnTRANSACTION_MD</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6"><div class="ttname"><a href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58a9b447756a7d7ddf4e828beeb38d079f6">ripple::SHAMapNodeType::tnTRANSACTION_NM</a></div><div class="ttdeci">@ tnTRANSACTION_NM</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_ae0356b1de00f841c554c830be509dd58ab2364e40a67b08ba6170314afc07d07b"><div class="ttname"><a href="namespaceripple.html#ae0356b1de00f841c554c830be509dd58ab2364e40a67b08ba6170314afc07d07b">ripple::SHAMapNodeType::tnACCOUNT_STATE</a></div><div class="ttdeci">@ tnACCOUNT_STATE</div></div>
|
|
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
|
|
<div class="ttc" id="ato_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a></div><div class="ttdeci">T to_string(T... args)</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
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.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|