mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
319 lines
51 KiB
HTML
319 lines
51 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: STExchange.h 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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_8d04e3c0b58cad28d7755ed462d1b6c0.html">protocol</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">STExchange.h</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">#ifndef XRPL_PROTOCOL_STEXCHANGE_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_PROTOCOL_STEXCHANGE_H_INCLUDED</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <xrpl/basics/Blob.h></span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <xrpl/basics/Buffer.h></span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <xrpl/basics/Slice.h></span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <xrpl/basics/contract.h></span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <xrpl/protocol/SField.h></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <xrpl/protocol/STBlob.h></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include <xrpl/protocol/STInteger.h></span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <xrpl/protocol/STObject.h></span></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="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>></span></div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a>></span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a>></span></div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</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="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>></span></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="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange.html"> 23</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1STExchange.html">STExchange</a>;</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">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
|
<div class="foldopen" id="foldopen00026" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html"> 26</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1STExchange.html">STExchange</a><<a class="code hl_class" href="classripple_1_1STInteger.html">STInteger</a><U>, T></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"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a296ccec5c77f85d832ddacbc9044fe2b"> 28</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a296ccec5c77f85d832ddacbc9044fe2b">STExchange</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a3b4ee990d1019da2169a3082bde439f6"> 30</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a3b4ee990d1019da2169a3082bde439f6">value_type</a> = U;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00033" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#acf1fbcb99f27f933c5555618a9d3e7a0"> 33</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#acf1fbcb99f27f933c5555618a9d3e7a0">get</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<T></a>& t, <a class="code hl_class" href="classripple_1_1STInteger.html">STInteger<U></a> <span class="keyword">const</span>& u)</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> t = u.<a class="code hl_function" href="classripple_1_1STInteger.html#a7db20a6a442a8febb5332200673f5507">value</a>();</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> }</div>
|
|
</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="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STInteger<U></a>></div>
|
|
<div class="foldopen" id="foldopen00039" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#aebf559bd9f3ee0b1adec67b938270bad"> 39</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#aebf559bd9f3ee0b1adec67b938270bad">set</a>(<a class="code hl_class" href="classripple_1_1SField.html">SField</a> <span class="keyword">const</span>& f, T <span class="keyword">const</span>& t)</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="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<STInteger<U></a>>(f, t);</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>};</div>
|
|
</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="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00046" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html"> 46</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1STExchange.html">STExchange</a><<a class="code hl_class" href="classripple_1_1STBlob.html">STBlob</a>, <a class="code hl_class" href="classripple_1_1Slice.html">Slice</a>></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"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a83f9f8e0fca4bb72712fcf04f11cb348"> 48</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a83f9f8e0fca4bb72712fcf04f11cb348">STExchange</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a662aaeb322a3a6dffa90b7d57d0da3ce"> 50</a></span> <span class="keyword">using </span><a class="code hl_class" href="classripple_1_1Slice.html">value_type</a> = <a class="code hl_class" href="classripple_1_1Slice.html">Slice</a>;</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> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a337f9603f898f1e4e6b3e0cd0fab7339"> 53</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a337f9603f898f1e4e6b3e0cd0fab7339">get</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<value_type></a>& t, <a class="code hl_class" href="classripple_1_1STBlob.html">STBlob</a> <span class="keyword">const</span>& u)</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> t.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(u.<a class="code hl_function" href="classripple_1_1STBlob.html#a469ebcd60d186cf3f96d3d2457c29773">data</a>(), u.<a class="code hl_function" href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">size</a>());</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
|
|
</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="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STBlob></a></div>
|
|
<div class="foldopen" id="foldopen00059" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ade4760bd4c442cd424ab1464044fa61e"> 59</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ade4760bd4c442cd424ab1464044fa61e">set</a>(<a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code hl_class" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& t)</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> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<STBlob></a>(f, t.<a class="code hl_function" href="classripple_1_1Slice.html#a86b04f444930887410acd22b367efc8c">data</a>(), t.<a class="code hl_function" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>());</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">template</span> <></div>
|
|
<div class="foldopen" id="foldopen00066" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html"> 66</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1STExchange.html">STExchange</a><<a class="code hl_class" href="classripple_1_1STBlob.html">STBlob</a>, <a class="code hl_class" href="classripple_1_1Buffer.html">Buffer</a>></div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span>{</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a9f2aac79ef1625d867091ba443e852f1"> 68</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a9f2aac79ef1625d867091ba443e852f1">STExchange</a>() = <span class="keywordflow">default</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"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ad55ed1bbfb21155e6f0e961f870e6df6"> 70</a></span> <span class="keyword">using </span><a class="code hl_class" href="classripple_1_1Buffer.html">value_type</a> = <a class="code hl_class" href="classripple_1_1Buffer.html">Buffer</a>;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">static</span> <span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00073" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ac49172314b4315f65fbc4ddc1ed55ef0"> 73</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ac49172314b4315f65fbc4ddc1ed55ef0">get</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Buffer></a>& t, <a class="code hl_class" href="classripple_1_1STBlob.html">STBlob</a> <span class="keyword">const</span>& u)</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> t.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(u.<a class="code hl_function" href="classripple_1_1STBlob.html#a469ebcd60d186cf3f96d3d2457c29773">data</a>(), u.<a class="code hl_function" href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">size</a>());</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STBlob></a></div>
|
|
<div class="foldopen" id="foldopen00079" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a8f737276f3b186953e1927604808fab6"> 79</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a8f737276f3b186953e1927604808fab6">set</a>(<a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code hl_class" href="classripple_1_1Buffer.html">Buffer</a> <span class="keyword">const</span>& t)</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="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<STBlob></a>(f, t.<a class="code hl_function" href="classripple_1_1Buffer.html#afacfc9c6af70702429653e85073ce5a4">data</a>(), t.<a class="code hl_function" href="classripple_1_1Buffer.html#a76cd91377f761afdbb2dec0a39e44005">size</a>());</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keyword">static</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STBlob></a></div>
|
|
<div class="foldopen" id="foldopen00085" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a9842ed5829e12b9fc9ed7b310056f61f"> 85</a></span> <a class="code hl_function" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a9842ed5829e12b9fc9ed7b310056f61f">set</a>(<a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code hl_class" href="classripple_1_1Buffer.html">Buffer</a>&& t)</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> <span class="keywordflow">return</span> <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<STBlob></a>(f, std::move(t));</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> U></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/utility/optional.html">std::optional<T></a></div>
|
|
<div class="foldopen" id="foldopen00097" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="namespaceripple.html#a155583db5680c6072ae376de3a846c57"> 97</a></span><a class="code hl_function" href="namespaceripple.html#ac341e8b4d6615fda7866d3c1c0014e44">get</a>(<a class="code hl_class" href="classripple_1_1STObject.html">STObject</a> <span class="keyword">const</span>& st, <a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span>{</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<T></a> t;</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <a class="code hl_class" href="classripple_1_1STBase.html">STBase</a> <span class="keyword">const</span>* <span class="keyword">const</span> b = st.<a class="code hl_function" href="classripple_1_1STObject.html#a20bb387308007a3ed7b83bc6dfcae0cf">peekAtPField</a>(f);</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordflow">if</span> (!b)</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">return</span> t;</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = b-><a class="code hl_function" href="classripple_1_1STBase.html#a233469e9eb1efaa8639b384628fcef62">getSType</a>();</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keywordflow">if</span> (<span class="keywordtype">id</span> == STI_NOTPRESENT)</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">return</span> t;</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">auto</span> <span class="keyword">const</span> u = <span class="keyword">dynamic_cast<</span>U const*<span class="keyword">></span>(b);</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// This should never happen</span></div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">if</span> (!u)</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> Throw<std::runtime_error>(<span class="stringliteral">"Wrong field type"</span>);</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_struct" href="structripple_1_1STExchange.html">STExchange<U, T>::get</a>(t, *u);</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">return</span> t;</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span>}</div>
|
|
</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><span class="keyword">template</span> <<span class="keyword">class</span> U></div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<typename STExchange<U, typename U::value_type>::value_type</a>></div>
|
|
<div class="foldopen" id="foldopen00116" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="namespaceripple.html#a9162c4db35a4c2686b7561ffa2e643f9"> 116</a></span><a class="code hl_function" href="namespaceripple.html#ac341e8b4d6615fda7866d3c1c0014e44">get</a>(<a class="code hl_class" href="classripple_1_1STObject.html">STObject</a> <span class="keyword">const</span>& st, <a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span>{</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordflow">return</span> get<typename U::value_type>(st, f);</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span><span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00125" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="namespaceripple.html#a4267ee88cb85e7026a52077f73ca3e11"> 125</a></span><a class="code hl_function" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(<a class="code hl_class" href="classripple_1_1STObject.html">STObject</a>& st, <a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f, T&& t)</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span>{</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> st.<a class="code hl_function" href="classripple_1_1STObject.html#a79d44cbca07f07419075eab63f02cf46">set</a>(<a class="code hl_struct" href="structripple_1_1STExchange.html">STExchange</a><U, <span class="keyword">typename</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/decay.html">std::decay<T>::type</a>>::set(</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> f, <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward<T></a>(t)));</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span><span class="keyword">template</span> <<span class="keyword">class</span> Init></div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00134" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="namespaceripple.html#a141116c81c2e62d4844a4e53193d0c7c"> 134</a></span><a class="code hl_function" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(<a class="code hl_class" href="classripple_1_1STObject.html">STObject</a>& st, <a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size, Init&& init)</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span>{</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> st.<a class="code hl_function" href="classripple_1_1STObject.html#a79d44cbca07f07419075eab63f02cf46">set</a>(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<STBlob></a>(f, size, init));</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span><span class="keyword">template</span> <<span class="keyword">class</span> = <span class="keywordtype">void</span>></div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00142" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="namespaceripple.html#a6b8f51a4225602fc6eea9ecee8e6bc1b"> 142</a></span><a class="code hl_function" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(<a class="code hl_class" href="classripple_1_1STObject.html">STObject</a>& st,</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f,</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordtype">void</span> <span class="keyword">const</span>* data,</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size)</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> st.<a class="code hl_function" href="classripple_1_1STObject.html#a79d44cbca07f07419075eab63f02cf46">set</a>(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::make_unique<STBlob></a>(f, data, size));</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span>}</div>
|
|
</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span><span class="keyword">template</span> <<span class="keyword">class</span> U></div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span><span class="keywordtype">void</span></div>
|
|
<div class="foldopen" id="foldopen00153" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504"> 153</a></span><a class="code hl_function" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504">erase</a>(<a class="code hl_class" href="classripple_1_1STObject.html">STObject</a>& st, <a class="code hl_struct" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>{</div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> st.<a class="code hl_function" href="classripple_1_1STObject.html#a624bc6e179ff15ec5f08a4d1c7d1932e">makeFieldAbsent</a>(f);</div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span>}</div>
|
|
</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="comment">// namespace ripple</span></div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span><span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aclassripple_1_1Buffer_html"><div class="ttname"><a href="classripple_1_1Buffer.html">ripple::Buffer</a></div><div class="ttdoc">Like std::vector<char> but better.</div><div class="ttdef"><b>Definition</b> <a href="Buffer_8h_source.html#l00016">Buffer.h:17</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Buffer_html_a76cd91377f761afdbb2dec0a39e44005"><div class="ttname"><a href="classripple_1_1Buffer.html#a76cd91377f761afdbb2dec0a39e44005">ripple::Buffer::size</a></div><div class="ttdeci">std::size_t size() const noexcept</div><div class="ttdoc">Returns the number of bytes in the buffer.</div><div class="ttdef"><b>Definition</b> <a href="Buffer_8h_source.html#l00108">Buffer.h:108</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Buffer_html_afacfc9c6af70702429653e85073ce5a4"><div class="ttname"><a href="classripple_1_1Buffer.html#afacfc9c6af70702429653e85073ce5a4">ripple::Buffer::data</a></div><div class="ttdeci">std::uint8_t const * data() const noexcept</div><div class="ttdoc">Return a pointer to beginning of the storage.</div><div class="ttdef"><b>Definition</b> <a href="Buffer_8h_source.html#l00132">Buffer.h:132</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1SField_html"><div class="ttname"><a href="classripple_1_1SField.html">ripple::SField</a></div><div class="ttdoc">Identifies fields.</div><div class="ttdef"><b>Definition</b> <a href="SField_8h_source.html#l00126">SField.h:127</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STBase_html"><div class="ttname"><a href="classripple_1_1STBase.html">ripple::STBase</a></div><div class="ttdoc">A type which can be exported to a well known binary format.</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00115">STBase.h:116</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STBase_html_a233469e9eb1efaa8639b384628fcef62"><div class="ttname"><a href="classripple_1_1STBase.html#a233469e9eb1efaa8639b384628fcef62">ripple::STBase::getSType</a></div><div class="ttdeci">virtual SerializedTypeID getSType() const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00056">STBase.cpp:56</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STBlob_html"><div class="ttname"><a href="classripple_1_1STBlob.html">ripple::STBlob</a></div><div class="ttdef"><b>Definition</b> <a href="STBlob_8h_source.html#l00015">STBlob.h:16</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STBlob_html_a469ebcd60d186cf3f96d3d2457c29773"><div class="ttname"><a href="classripple_1_1STBlob.html#a469ebcd60d186cf3f96d3d2457c29773">ripple::STBlob::data</a></div><div class="ttdeci">std::uint8_t const * data() const</div><div class="ttdef"><b>Definition</b> <a href="STBlob_8h_source.html#l00098">STBlob.h:98</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STBlob_html_a6f35800e09c25366d770be7148bf62c6"><div class="ttname"><a href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">ripple::STBlob::size</a></div><div class="ttdeci">std::size_t size() const</div><div class="ttdef"><b>Definition</b> <a href="STBlob_8h_source.html#l00092">STBlob.h:92</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STInteger_html"><div class="ttname"><a href="classripple_1_1STInteger.html">ripple::STInteger</a></div><div class="ttdef"><b>Definition</b> <a href="STInteger_8h_source.html#l00010">STInteger.h:11</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STInteger_html_a7db20a6a442a8febb5332200673f5507"><div class="ttname"><a href="classripple_1_1STInteger.html#a7db20a6a442a8febb5332200673f5507">ripple::STInteger::value</a></div><div class="ttdeci">value_type value() const noexcept</div><div class="ttdef"><b>Definition</b> <a href="STInteger_8h_source.html#l00129">STInteger.h:129</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html"><div class="ttname"><a href="classripple_1_1STObject.html">ripple::STObject</a></div><div class="ttdef"><b>Definition</b> <a href="STObject_8h_source.html#l00037">STObject.h:38</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a20bb387308007a3ed7b83bc6dfcae0cf"><div class="ttname"><a href="classripple_1_1STObject.html#a20bb387308007a3ed7b83bc6dfcae0cf">ripple::STObject::peekAtPField</a></div><div class="ttdeci">STBase const * peekAtPField(SField const &field) const</div><div class="ttdef"><b>Definition</b> <a href="STObject_8cpp_source.html#l00438">STObject.cpp:438</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a624bc6e179ff15ec5f08a4d1c7d1932e"><div class="ttname"><a href="classripple_1_1STObject.html#a624bc6e179ff15ec5f08a4d1c7d1932e">ripple::STObject::makeFieldAbsent</a></div><div class="ttdeci">void makeFieldAbsent(SField const &field)</div><div class="ttdef"><b>Definition</b> <a href="STObject_8cpp_source.html#l00551">STObject.cpp:551</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a79d44cbca07f07419075eab63f02cf46"><div class="ttname"><a href="classripple_1_1STObject.html#a79d44cbca07f07419075eab63f02cf46">ripple::STObject::set</a></div><div class="ttdeci">void set(SOTemplate const &)</div><div class="ttdef"><b>Definition</b> <a href="STObject_8cpp_source.html#l00137">STObject.cpp:137</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Slice_html"><div class="ttname"><a href="classripple_1_1Slice.html">ripple::Slice</a></div><div class="ttdoc">An immutable linear range of bytes.</div><div class="ttdef"><b>Definition</b> <a href="Slice_8h_source.html#l00026">Slice.h:27</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Slice_html_a86b04f444930887410acd22b367efc8c"><div class="ttname"><a href="classripple_1_1Slice.html#a86b04f444930887410acd22b367efc8c">ripple::Slice::data</a></div><div class="ttdeci">std::uint8_t const * data() const noexcept</div><div class="ttdoc">Return a pointer to beginning of the storage.</div><div class="ttdef"><b>Definition</b> <a href="Slice_8h_source.html#l00079">Slice.h:79</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Slice_html_aa6faa586508e0f849d4591d807353825"><div class="ttname"><a href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">ripple::Slice::size</a></div><div class="ttdeci">std::size_t size() const noexcept</div><div class="ttdoc">Returns the number of bytes in the storage.</div><div class="ttdef"><b>Definition</b> <a href="Slice_8h_source.html#l00062">Slice.h:62</a></div></div>
|
|
<div class="ttc" id="adecay_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/decay.html">std::decay</a></div></div>
|
|
<div class="ttc" id="aemplace_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">std::optional::emplace</a></div><div class="ttdeci">T emplace(T... args)</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="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</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_a53f80df10254751781250aa20704e98f"><div class="ttname"><a href="namespaceripple.html#a53f80df10254751781250aa20704e98f">ripple::set</a></div><div class="ttdeci">bool set(T &target, std::string const &name, Section const &section)</div><div class="ttdoc">Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...</div><div class="ttdef"><b>Definition</b> <a href="BasicConfig_8h_source.html#l00296">BasicConfig.h:296</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_aa761b49f905eb9fd8c8ae754a0eb7504"><div class="ttname"><a href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504">ripple::erase</a></div><div class="ttdeci">void erase(STObject &st, TypedField< U > const &f)</div><div class="ttdoc">Remove a field in an STObject.</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00153">STExchange.h:153</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#l00336">BasicConfig.h:336</a></div></div>
|
|
<div class="ttc" id="aoptional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/optional.html">optional</a></div></div>
|
|
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
|
|
<div class="ttc" id="astdexcept_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4_html_a8f737276f3b186953e1927604808fab6"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a8f737276f3b186953e1927604808fab6">ripple::STExchange< STBlob, Buffer >::set</a></div><div class="ttdeci">static std::unique_ptr< STBlob > set(TypedField< STBlob > const &f, Buffer const &t)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00079">STExchange.h:79</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4_html_a9842ed5829e12b9fc9ed7b310056f61f"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a9842ed5829e12b9fc9ed7b310056f61f">ripple::STExchange< STBlob, Buffer >::set</a></div><div class="ttdeci">static std::unique_ptr< STBlob > set(TypedField< STBlob > const &f, Buffer &&t)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00085">STExchange.h:85</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4_html_a9f2aac79ef1625d867091ba443e852f1"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a9f2aac79ef1625d867091ba443e852f1">ripple::STExchange< STBlob, Buffer >::STExchange</a></div><div class="ttdeci">STExchange()=default</div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4_html_ac49172314b4315f65fbc4ddc1ed55ef0"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ac49172314b4315f65fbc4ddc1ed55ef0">ripple::STExchange< STBlob, Buffer >::get</a></div><div class="ttdeci">static void get(std::optional< Buffer > &t, STBlob const &u)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00073">STExchange.h:73</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Slice_01_4_html_a337f9603f898f1e4e6b3e0cd0fab7339"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a337f9603f898f1e4e6b3e0cd0fab7339">ripple::STExchange< STBlob, Slice >::get</a></div><div class="ttdeci">static void get(std::optional< value_type > &t, STBlob const &u)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00053">STExchange.h:53</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Slice_01_4_html_a83f9f8e0fca4bb72712fcf04f11cb348"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a83f9f8e0fca4bb72712fcf04f11cb348">ripple::STExchange< STBlob, Slice >::STExchange</a></div><div class="ttdeci">STExchange()=default</div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Slice_01_4_html_ade4760bd4c442cd424ab1464044fa61e"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ade4760bd4c442cd424ab1464044fa61e">ripple::STExchange< STBlob, Slice >::set</a></div><div class="ttdeci">static std::unique_ptr< STBlob > set(TypedField< STBlob > const &f, Slice const &t)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00059">STExchange.h:59</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4_html_a296ccec5c77f85d832ddacbc9044fe2b"><div class="ttname"><a href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a296ccec5c77f85d832ddacbc9044fe2b">ripple::STExchange< STInteger< U >, T >::STExchange</a></div><div class="ttdeci">STExchange()=default</div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4_html_a3b4ee990d1019da2169a3082bde439f6"><div class="ttname"><a href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a3b4ee990d1019da2169a3082bde439f6">ripple::STExchange< STInteger< U >, T >::value_type</a></div><div class="ttdeci">U value_type</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00030">STExchange.h:30</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4_html_acf1fbcb99f27f933c5555618a9d3e7a0"><div class="ttname"><a href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#acf1fbcb99f27f933c5555618a9d3e7a0">ripple::STExchange< STInteger< U >, T >::get</a></div><div class="ttdeci">static void get(std::optional< T > &t, STInteger< U > const &u)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00033">STExchange.h:33</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4_html_aebf559bd9f3ee0b1adec67b938270bad"><div class="ttname"><a href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#aebf559bd9f3ee0b1adec67b938270bad">ripple::STExchange< STInteger< U >, T >::set</a></div><div class="ttdeci">static std::unique_ptr< STInteger< U > > set(SField const &f, T const &t)</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00039">STExchange.h:39</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_html"><div class="ttname"><a href="structripple_1_1STExchange.html">ripple::STExchange</a></div><div class="ttdoc">Convert between serialized type U and C++ type T.</div><div class="ttdef"><b>Definition</b> <a href="STExchange_8h_source.html#l00023">STExchange.h:23</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1TypedField_html"><div class="ttname"><a href="structripple_1_1TypedField.html">ripple::TypedField</a></div><div class="ttdoc">A field with a type known at compile time.</div><div class="ttdef"><b>Definition</b> <a href="SField_8h_source.html#l00300">SField.h:301</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="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</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>
|