mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-01 20:45:22 +00:00
187 lines
24 KiB
HTML
187 lines
24 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: ProtocolVersion_test.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_120ed4da3e3217b1e7fc0b4f48568e79.html">test</a></li><li class="navelem"><a class="el" href="dir_d1feb4416989cd829d5b1945d720f449.html">overlay</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">ProtocolVersion_test.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 <xrpld/overlay/detail/ProtocolVersion.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="preprocessor">#include <xrpl/beast/unit_test.h></span></div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
|
<div class="foldopen" id="foldopen00007" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"><a class="line" href="classxrpl_1_1ProtocolVersion__test.html"> 7</a></span><span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1ProtocolVersion__test.html">ProtocolVersion_test</a> : <span class="keyword">public</span> <a class="code hl_class" href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span>{</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> <span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00011" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd"> 11</a></span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">check</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& s, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& answer)</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> {</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">auto</span> <a class="code hl_function" href="namespacexrpl.html#aafa090f30ed837ced94478de9b93d24d">join</a> = [](<span class="keyword">auto</span> first, <span class="keyword">auto</span> last) {</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> result;</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <span class="keywordflow">if</span> (first != last)</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> {</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> result = <a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(*first++);</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordflow">while</span> (first != last)</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> result += <span class="stringliteral">","</span> + <a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(*first++);</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> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> };</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">auto</span> <span class="keyword">const</span> result = <a class="code hl_function" href="namespacexrpl.html#a018197fc6fe4c21c8955506920cc1161">parseProtocolVersions</a>(s);</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#aafa090f30ed837ced94478de9b93d24d">join</a>(result.begin(), result.end()) == answer);</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><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00031" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classxrpl_1_1ProtocolVersion__test.html#a6d7c676af7cef4264aa1e93169336461"> 31</a></span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#a6d7c676af7cef4264aa1e93169336461">run</a>()<span class="keyword"> override</span></div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword"> </span>{</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">"Convert protocol version to string"</span>);</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(<a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(1, 3)) == <span class="stringliteral">"XRPL/1.3"</span>);</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(<a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(2, 0)) == <span class="stringliteral">"XRPL/2.0"</span>);</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(<a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(2, 1)) == <span class="stringliteral">"XRPL/2.1"</span>);</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">to_string</a>(<a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(10, 10)) == <span class="stringliteral">"XRPL/10.10"</span>);</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> {</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">"Convert strings to protocol versions"</span>);</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Empty string</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">check</a>(<span class="stringliteral">""</span>, <span class="stringliteral">""</span>);</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="comment">// clang-format off</span></div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">check</a>(</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="stringliteral">"RTXP/1.1,RTXP/1.2,RTXP/1.3,XRPL/2.1,XRPL/2.0,/XRPL/3.0"</span>,</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="stringliteral">"XRPL/2.0,XRPL/2.1"</span>);</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">check</a>(</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="stringliteral">"RTXP/0.9,RTXP/1.01,XRPL/0.3,XRPL/2.01,websocket"</span>,</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="stringliteral">""</span>);</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">check</a>(</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="stringliteral">"XRPL/2.0,XRPL/2.0,XRPL/19.4,XRPL/7.89,XRPL/XRPL/3.0,XRPL/2.01"</span>,</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="stringliteral">"XRPL/2.0,XRPL/7.89,XRPL/19.4"</span>);</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_function" href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">check</a>(</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="stringliteral">"XRPL/2.0,XRPL/3.0,XRPL/4,XRPL/,XRPL,OPT XRPL/2.2,XRPL/5.67"</span>,</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="stringliteral">"XRPL/2.0,XRPL/3.0,XRPL/5.67"</span>);</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="comment">// clang-format on</span></div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</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> {</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_variable" href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">testcase</a>(<span class="stringliteral">"Protocol version negotiation"</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> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">negotiateProtocolVersion</a>(<span class="stringliteral">"RTXP/1.2"</span>) == <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>);</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">negotiateProtocolVersion</a>(<span class="stringliteral">"RTXP/1.2, XRPL/2.0, XRPL/2.1"</span>) == <a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(2, 1));</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">negotiateProtocolVersion</a>(<span class="stringliteral">"XRPL/2.2"</span>) == <a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(2, 2));</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">negotiateProtocolVersion</a>(<span class="stringliteral">"RTXP/1.2, XRPL/2.2, XRPL/2.3, XRPL/999.999"</span>) == <a class="code hl_function" href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">make_protocol</a>(2, 2));</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">negotiateProtocolVersion</a>(<span class="stringliteral">"XRPL/999.999, WebSocket/1.0"</span>) == <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>);</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> BEAST_EXPECT(<a class="code hl_function" href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">negotiateProtocolVersion</a>(<span class="stringliteral">""</span>) == <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::nullopt</a>);</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</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>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a9a5c8bd5fe0f5bc6035ca0c99d2c9bae"> 74</a></span>BEAST_DEFINE_TESTSUITE(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/pair.html">ProtocolVersion</a>, overlay, <a class="code hl_namespace" href="namespacexrpl.html">xrpl</a>);</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>} <span class="comment">// namespace xrpl</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="aclassbeast_1_1unit__test_1_1suite_html"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html">beast::unit_test::suite</a></div><div class="ttdoc">A testsuite class.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00051">suite.h:52</a></div></div>
|
|
<div class="ttc" id="aclassbeast_1_1unit__test_1_1suite_html_aaa1237d9b85c69d35fe86645cee094b5"><div class="ttname"><a href="classbeast_1_1unit__test_1_1suite.html#aaa1237d9b85c69d35fe86645cee094b5">beast::unit_test::suite::testcase</a></div><div class="ttdeci">testcase_t testcase</div><div class="ttdoc">Memberspace for declaring test cases.</div><div class="ttdef"><b>Definition</b> <a href="suite_8h_source.html#l00148">suite.h:148</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ProtocolVersion__test_html"><div class="ttname"><a href="classxrpl_1_1ProtocolVersion__test.html">xrpl::ProtocolVersion_test</a></div><div class="ttdef"><b>Definition</b> <a href="ProtocolVersion__test_8cpp_source.html#l00007">ProtocolVersion_test.cpp:8</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ProtocolVersion__test_html_a6d7c676af7cef4264aa1e93169336461"><div class="ttname"><a href="classxrpl_1_1ProtocolVersion__test.html#a6d7c676af7cef4264aa1e93169336461">xrpl::ProtocolVersion_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdoc">Runs the suite.</div><div class="ttdef"><b>Definition</b> <a href="ProtocolVersion__test_8cpp_source.html#l00031">ProtocolVersion_test.cpp:31</a></div></div>
|
|
<div class="ttc" id="aclassxrpl_1_1ProtocolVersion__test_html_ad218e7b12c765b65837c57172ddaeafd"><div class="ttname"><a href="classxrpl_1_1ProtocolVersion__test.html#ad218e7b12c765b65837c57172ddaeafd">xrpl::ProtocolVersion_test::check</a></div><div class="ttdeci">void check(std::string const &s, std::string const &answer)</div><div class="ttdef"><b>Definition</b> <a href="ProtocolVersion__test_8cpp_source.html#l00011">ProtocolVersion_test.cpp:11</a></div></div>
|
|
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
|
|
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</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="anamespacexrpl_html_a018197fc6fe4c21c8955506920cc1161"><div class="ttname"><a href="namespacexrpl.html#a018197fc6fe4c21c8955506920cc1161">xrpl::parseProtocolVersions</a></div><div class="ttdeci">std::vector< ProtocolVersion > parseProtocolVersions(boost::beast::string_view const &value)</div><div class="ttdoc">Parse a set of protocol versions.</div><div class="ttdef"><b>Definition</b> <a href="ProtocolVersion_8cpp_source.html#l00061">ProtocolVersion.cpp:61</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a35ce7572092b98720a52fa343c6f2fa9"><div class="ttname"><a href="namespacexrpl.html#a35ce7572092b98720a52fa343c6f2fa9">xrpl::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#l00598">base_uint.h:598</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a36f066fbcdc7b4da0121d7c5382e6cae"><div class="ttname"><a href="namespacexrpl.html#a36f066fbcdc7b4da0121d7c5382e6cae">xrpl::negotiateProtocolVersion</a></div><div class="ttdeci">std::optional< ProtocolVersion > negotiateProtocolVersion(std::vector< ProtocolVersion > const &versions)</div><div class="ttdoc">Given a list of supported protocol versions, choose the one we prefer.</div><div class="ttdef"><b>Definition</b> <a href="ProtocolVersion_8cpp_source.html#l00108">ProtocolVersion.cpp:108</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_a4b90747a90a4a1cd4ba2e50aeb3bc42b"><div class="ttname"><a href="namespacexrpl.html#a4b90747a90a4a1cd4ba2e50aeb3bc42b">xrpl::make_protocol</a></div><div class="ttdeci">constexpr ProtocolVersion make_protocol(std::uint16_t major, std::uint16_t minor)</div><div class="ttdef"><b>Definition</b> <a href="ProtocolVersion_8h_source.html#l00022">ProtocolVersion.h:22</a></div></div>
|
|
<div class="ttc" id="anamespacexrpl_html_aafa090f30ed837ced94478de9b93d24d"><div class="ttname"><a href="namespacexrpl.html#aafa090f30ed837ced94478de9b93d24d">xrpl::join</a></div><div class="ttdeci">Stream & join(Stream &s, Iter iter, Iter end, std::string const &delimiter)</div><div class="ttdef"><b>Definition</b> <a href="join_8h_source.html#l00010">join.h:10</a></div></div>
|
|
<div class="ttc" id="apair_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a></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>
|