This commit is contained in:
bthomee
2025-08-19 09:49:50 -07:00
parent bb5efdeec8
commit e7f4ae8bed
14888 changed files with 259444 additions and 168566 deletions

View File

@@ -3,7 +3,7 @@
<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.5"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: Book.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -29,7 +29,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
@@ -46,6 +46,11 @@ $(function() {
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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()"
@@ -104,49 +109,57 @@ $(function() {
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keywordtype">bool</span></div>
<div class="foldopen" id="foldopen00029" data-start="{" data-end="}">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a"> 29</a></span><a class="code hl_function" href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">isConsistent</a>(<a class="code hl_class" href="classripple_1_1Book.html">Book</a> <span class="keyword">const</span>&amp; book)</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="keywordflow">return</span> <a class="code hl_function" href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">isConsistent</a>(book.<a class="code hl_variable" href="classripple_1_1Book.html#a44f1acfd1d549e7f025f5372fb345f27">in</a>) &amp;&amp; <a class="code hl_function" href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">isConsistent</a>(book.<a class="code hl_variable" href="classripple_1_1Book.html#a6992e8a5da385182ec3ab51a0216281a">out</a>) &amp;&amp;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> book.<a class="code hl_variable" href="classripple_1_1Book.html#a44f1acfd1d549e7f025f5372fb345f27">in</a> != book.<a class="code hl_variable" href="classripple_1_1Book.html#a6992e8a5da385182ec3ab51a0216281a">out</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><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></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="namespaceripple.html#a7cdadcdf4622f8512aff6509ecbcfacf"> 36</a></span><a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(<a class="code hl_class" href="classripple_1_1Book.html">Book</a> <span class="keyword">const</span>&amp; book)</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> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(book.<a class="code hl_variable" href="classripple_1_1Book.html#a44f1acfd1d549e7f025f5372fb345f27">in</a>) + <span class="stringliteral">&quot;-&gt;&quot;</span> + <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(book.<a class="code hl_variable" href="classripple_1_1Book.html#a6992e8a5da385182ec3ab51a0216281a">out</a>);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>}</div>
</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="namespaceripple.html#ac3aa29e6a39a8a0903673cb3de14a6ac"> 41</a></span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span><a class="code hl_function" href="namespaceripple.html#a5c77599883897def8bd3e9e4ad140f95">operator&lt;&lt;</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp; os, <a class="code hl_class" href="classripple_1_1Book.html">Book</a> <span class="keyword">const</span>&amp; x)</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>{</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> os &lt;&lt; <a class="code hl_function" href="namespaceripple.html#ac124fe6744b7fe887dec949b56b16d50">to_string</a>(x);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> os;</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>Book</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="namespaceripple.html#a4733dc323a9c2aad3bad45872831510b"> 49</a></span><a class="code hl_function" href="namespaceripple.html#a4733dc323a9c2aad3bad45872831510b">reversed</a>(<a class="code hl_class" href="classripple_1_1Book.html">Book</a> <span class="keyword">const</span>&amp; book)</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>{</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">return</span> <a class="code hl_class" href="classripple_1_1Book.html">Book</a>(book.<a class="code hl_variable" href="classripple_1_1Book.html#a6992e8a5da385182ec3ab51a0216281a">out</a>, book.<a class="code hl_variable" href="classripple_1_1Book.html#a44f1acfd1d549e7f025f5372fb345f27">in</a>, book.<a class="code hl_variable" href="classripple_1_1Book.html#aaee2f080506ecd7aff540356f37ef4a2">domain</a>);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>}</div>
</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">// namespace ripple</span></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html"><div class="ttname"><a href="classripple_1_1Book.html">ripple::Book</a></div><div class="ttdoc">Specifies an order book.</div><div class="ttdef"><b>Definition:</b> <a href="Book_8h_source.html#l00035">Book.h:36</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html_a44f1acfd1d549e7f025f5372fb345f27"><div class="ttname"><a href="classripple_1_1Book.html#a44f1acfd1d549e7f025f5372fb345f27">ripple::Book::in</a></div><div class="ttdeci">Issue in</div><div class="ttdef"><b>Definition:</b> <a href="Book_8h_source.html#l00038">Book.h:38</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html_a6992e8a5da385182ec3ab51a0216281a"><div class="ttname"><a href="classripple_1_1Book.html#a6992e8a5da385182ec3ab51a0216281a">ripple::Book::out</a></div><div class="ttdeci">Issue out</div><div class="ttdef"><b>Definition:</b> <a href="Book_8h_source.html#l00039">Book.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html_aaee2f080506ecd7aff540356f37ef4a2"><div class="ttname"><a href="classripple_1_1Book.html#aaee2f080506ecd7aff540356f37ef4a2">ripple::Book::domain</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; domain</div><div class="ttdef"><b>Definition:</b> <a href="Book_8h_source.html#l00040">Book.h:40</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#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a1842fee89cdf9025217d48514df19b1a"><div class="ttname"><a href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">ripple::isConsistent</a></div><div class="ttdeci">bool isConsistent(Book const &amp;book)</div><div class="ttdef"><b>Definition:</b> <a href="Book_8cpp_source.html#l00029">Book.cpp:29</a></div></div>
<div class="ttc" id="anamespaceripple_html_a4733dc323a9c2aad3bad45872831510b"><div class="ttname"><a href="namespaceripple.html#a4733dc323a9c2aad3bad45872831510b">ripple::reversed</a></div><div class="ttdeci">Book reversed(Book const &amp;book)</div><div class="ttdef"><b>Definition:</b> <a href="Book_8cpp_source.html#l00049">Book.cpp:49</a></div></div>
<div class="ttc" id="anamespaceripple_html_a5c77599883897def8bd3e9e4ad140f95"><div class="ttname"><a href="namespaceripple.html#a5c77599883897def8bd3e9e4ad140f95">ripple::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, base_uint&lt; Bits, Tag &gt; const &amp;u)</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00636">base_uint.h:637</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&lt; Bits, Tag &gt; const &amp;a)</div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00630">base_uint.h:630</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html"><div class="ttname"><a href="classripple_1_1Book.html">ripple::Book</a></div><div class="ttdoc">Specifies an order book.</div><div class="ttdef"><b>Definition</b> <a href="Book_8h_source.html#l00035">Book.h:36</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html_a44f1acfd1d549e7f025f5372fb345f27"><div class="ttname"><a href="classripple_1_1Book.html#a44f1acfd1d549e7f025f5372fb345f27">ripple::Book::in</a></div><div class="ttdeci">Issue in</div><div class="ttdef"><b>Definition</b> <a href="Book_8h_source.html#l00038">Book.h:38</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html_a6992e8a5da385182ec3ab51a0216281a"><div class="ttname"><a href="classripple_1_1Book.html#a6992e8a5da385182ec3ab51a0216281a">ripple::Book::out</a></div><div class="ttdeci">Issue out</div><div class="ttdef"><b>Definition</b> <a href="Book_8h_source.html#l00039">Book.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1Book_html_aaee2f080506ecd7aff540356f37ef4a2"><div class="ttname"><a href="classripple_1_1Book.html#aaee2f080506ecd7aff540356f37ef4a2">ripple::Book::domain</a></div><div class="ttdeci">std::optional&lt; uint256 &gt; domain</div><div class="ttdef"><b>Definition</b> <a href="Book_8h_source.html#l00040">Book.h:40</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#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_html_a1842fee89cdf9025217d48514df19b1a"><div class="ttname"><a href="namespaceripple.html#a1842fee89cdf9025217d48514df19b1a">ripple::isConsistent</a></div><div class="ttdeci">bool isConsistent(Book const &amp;book)</div><div class="ttdef"><b>Definition</b> <a href="Book_8cpp_source.html#l00029">Book.cpp:29</a></div></div>
<div class="ttc" id="anamespaceripple_html_a4733dc323a9c2aad3bad45872831510b"><div class="ttname"><a href="namespaceripple.html#a4733dc323a9c2aad3bad45872831510b">ripple::reversed</a></div><div class="ttdeci">Book reversed(Book const &amp;book)</div><div class="ttdef"><b>Definition</b> <a href="Book_8cpp_source.html#l00049">Book.cpp:49</a></div></div>
<div class="ttc" id="anamespaceripple_html_a5c77599883897def8bd3e9e4ad140f95"><div class="ttname"><a href="namespaceripple.html#a5c77599883897def8bd3e9e4ad140f95">ripple::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, base_uint&lt; Bits, Tag &gt; const &amp;u)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00636">base_uint.h:637</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&lt; Bits, Tag &gt; const &amp;a)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00630">base_uint.h:630</a></div></div>
<div class="ttc" id="aostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/ostream.html">ostream</a></div></div>
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>