mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
291 lines
48 KiB
HTML
291 lines
48 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">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta 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 style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- 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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_1e765e6a8d5970800a535eb2615ec474.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 name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef RIPPLE_PROTOCOL_STEXCHANGE_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#define RIPPLE_PROTOCOL_STEXCHANGE_H_INCLUDED</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <ripple/basics/Blob.h></span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/basics/Buffer.h></span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <ripple/basics/Slice.h></span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <ripple/basics/contract.h></span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <ripple/protocol/SField.h></span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <ripple/protocol/STBlob.h></span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <ripple/protocol/STInteger.h></span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <ripple/protocol/STObject.h></span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>></span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</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 name="l00033"></a><span class="lineno"> 33</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 name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>></span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</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 name="l00036"></a><span class="lineno"> 36</span>  </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange.html"> 41</a></span> <span class="keyword">struct </span><a class="code" href="structripple_1_1STExchange.html">STExchange</a>;</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html"> 44</a></span> <span class="keyword">struct </span><a class="code" href="structripple_1_1STExchange.html">STExchange</a><<a class="code" href="classripple_1_1STInteger.html">STInteger</a><U>, T></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">explicit</span> <a class="code" href="structripple_1_1STExchange.html">STExchange</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a3b4ee990d1019da2169a3082bde439f6"> 48</a></span>  <span class="keyword">using</span> <a class="code" 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 name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">static</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#acf1fbcb99f27f933c5555618a9d3e7a0"> 51</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#acf1fbcb99f27f933c5555618a9d3e7a0">get</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<T></a>& t, <a class="code" href="classripple_1_1STInteger.html">STInteger<U></a> <span class="keyword">const</span>& u)</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  t = u.<a class="code" href="classripple_1_1STInteger.html#a7db20a6a442a8febb5332200673f5507">value</a>();</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STInteger<U></a>></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a604f0b036863e4109affe09bc8b7794a"> 57</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a604f0b036863e4109affe09bc8b7794a">set</a>(<a class="code" 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 name="l00058"></a><span class="lineno"> 58</span>  {</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">return</span> std::make_unique<STInteger<U>>(f, t);</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> };</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">template</span> <></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html"> 64</a></span> <span class="keyword">struct </span><a class="code" href="structripple_1_1STExchange.html">STExchange</a><<a class="code" href="classripple_1_1STBlob.html">STBlob</a>, <a class="code" href="classripple_1_1Slice.html">Slice</a>></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> {</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">explicit</span> <a class="code" href="structripple_1_1STExchange.html">STExchange</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a662aaeb322a3a6dffa90b7d57d0da3ce"> 68</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1Slice.html">value_type</a> = <a class="code" href="classripple_1_1Slice.html">Slice</a>;</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">static</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a337f9603f898f1e4e6b3e0cd0fab7339"> 71</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a337f9603f898f1e4e6b3e0cd0fab7339">get</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<value_type></a>& t, <a class="code" href="classripple_1_1STBlob.html">STBlob</a> <span class="keyword">const</span>& u)</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  t.<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(u.<a class="code" href="classripple_1_1STBlob.html#a469ebcd60d186cf3f96d3d2457c29773">data</a>(), u.<a class="code" href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">size</a>());</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STBlob></a></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ac08665a9c6a24c3cd245747068881d1f"> 77</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ac08665a9c6a24c3cd245747068881d1f">set</a>(<a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& t)</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">return</span> std::make_unique<STBlob>(f, t.<a class="code" href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">data</a>(), t.<a class="code" href="classripple_1_1Slice.html#aa6faa586508e0f849d4591d807353825">size</a>());</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> };</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">template</span> <></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html"> 84</a></span> <span class="keyword">struct </span><a class="code" href="structripple_1_1STExchange.html">STExchange</a><<a class="code" href="classripple_1_1STBlob.html">STBlob</a>, <a class="code" href="classripple_1_1Buffer.html">Buffer</a>></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> {</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">explicit</span> <a class="code" href="structripple_1_1STExchange.html">STExchange</a>() = <span class="keywordflow">default</span>;</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ad55ed1bbfb21155e6f0e961f870e6df6"> 88</a></span>  <span class="keyword">using</span> <a class="code" href="classripple_1_1Buffer.html">value_type</a> = <a class="code" href="classripple_1_1Buffer.html">Buffer</a>;</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">static</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ac49172314b4315f65fbc4ddc1ed55ef0"> 91</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ac49172314b4315f65fbc4ddc1ed55ef0">get</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<Buffer></a>& t, <a class="code" href="classripple_1_1STBlob.html">STBlob</a> <span class="keyword">const</span>& u)</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  t.<a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional/emplace.html">emplace</a>(u.<a class="code" href="classripple_1_1STBlob.html#a469ebcd60d186cf3f96d3d2457c29773">data</a>(), u.<a class="code" href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">size</a>());</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STBlob></a></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a5260bf3073811048ce1640b4a8cd03b7"> 97</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a5260bf3073811048ce1640b4a8cd03b7">set</a>(<a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code" href="classripple_1_1Buffer.html">Buffer</a> <span class="keyword">const</span>& t)</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> std::make_unique<STBlob>(f, t.<a class="code" href="classripple_1_1Buffer.html#ab6ff733d0e46ea023e9505ae9d4d34b6">data</a>(), t.<a class="code" href="classripple_1_1Buffer.html#a76cd91377f761afdbb2dec0a39e44005">size</a>());</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">static</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr<STBlob></a></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#adf1524e9f9f268bab06898f08b782f2a"> 103</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#adf1524e9f9f268bab06898f08b782f2a">set</a>(<a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="code" href="classripple_1_1Buffer.html">Buffer</a>&& t)</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> std::make_unique<STBlob>(f, std::move(t));</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> };</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> U></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<T></a></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="namespaceripple.html#a529619314331555cbeb534359de16cc2"> 115</a></span> <a class="code" href="namespaceripple.html#a104985c6e3067babe99aca6bbc51ba5d">get</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a> <span class="keyword">const</span>& st, <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> {</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/optional.html">std::optional<T></a> t;</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classripple_1_1STBase.html">STBase</a> <span class="keyword">const</span>* <span class="keyword">const</span> b = st.<a class="code" href="classripple_1_1STObject.html#a2e1bcbdfd75c3b816e0c995b5337f339">peekAtPField</a>(f);</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">if</span> (!b)</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">return</span> t;</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">auto</span> <span class="keyword">const</span> <span class="keywordtype">id</span> = b-><a class="code" href="classripple_1_1STBase.html#a233469e9eb1efaa8639b384628fcef62">getSType</a>();</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span> (<span class="keywordtype">id</span> == STI_NOTPRESENT)</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> t;</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</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 name="l00125"></a><span class="lineno"> 125</span>  <span class="comment">// This should never happen</span></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">if</span> (!u)</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  Throw<std::runtime_error>(<span class="stringliteral">"Wrong field type"</span>);</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="structripple_1_1STExchange.html">STExchange<U, T>::get</a>(t, *u);</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> t;</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">template</span> <<span class="keyword">class</span> U></div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <a class="codeRef" 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="line"><a name="l00134"></a><span class="lineno"><a class="line" href="namespaceripple.html#a367c64d51c69d389f72e792c5f4b574a"> 134</a></span> <a class="code" href="namespaceripple.html#a104985c6e3067babe99aca6bbc51ba5d">get</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a> <span class="keyword">const</span>& st, <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> {</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> get<typename U::value_type>(st, f);</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="namespaceripple.html#a4267ee88cb85e7026a52077f73ca3e11"> 143</a></span> <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a>& st, <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f, T&& t)</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> {</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  st.<a class="code" href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">set</a>(<a class="code" href="structripple_1_1STExchange.html">STExchange</a><U, <span class="keyword">typename</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/decay.html">std::decay<T>::type</a>>::<a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  f, std::forward<T>(t)));</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> }</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="keyword">template</span> <<span class="keyword">class</span> Init></div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespaceripple.html#a141116c81c2e62d4844a4e53193d0c7c"> 152</a></span> <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a>& st, <a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size, Init&& init)</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  st.<a class="code" href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">set</a>(std::make_unique<STBlob>(f, size, init));</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keyword">template</span> <<span class="keyword">class</span> = <span class="keywordtype">void</span>></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="namespaceripple.html#a6b8f51a4225602fc6eea9ecee8e6bc1b"> 160</a></span> <a class="code" href="namespaceripple.html#a53f80df10254751781250aa20704e98f">set</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a>& st,</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f,</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">void</span> <span class="keyword">const</span>* data,</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size)</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> {</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  st.<a class="code" href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">set</a>(std::make_unique<STBlob>(f, data, size));</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> }</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="keyword">template</span> <<span class="keyword">class</span> U></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504"> 171</a></span> <a class="code" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504">erase</a>(<a class="code" href="classripple_1_1STObject.html">STObject</a>& st, <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> {</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  st.<a class="code" href="classripple_1_1STObject.html#a624bc6e179ff15ec5f08a4d1c7d1932e">makeFieldAbsent</a>(f);</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> }</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> } <span class="comment">// namespace ripple</span></div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#endif</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<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#l00080">Slice.h:80</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#l00069">STBase.cpp:69</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#l00514">STObject.cpp:514</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 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#l00304">SField.h:304</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#l00044">Slice.h:44</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#l00071">STExchange.h:71</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Slice_01_4_html_ac08665a9c6a24c3cd245747068881d1f"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ac08665a9c6a24c3cd245747068881d1f">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#l00077">STExchange.h:77</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Slice_html_a9d49708cd15d24841b78dc0a9ecaac26"><div class="ttname"><a href="classripple_1_1Slice.html#a9d49708cd15d24841b78dc0a9ecaac26">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#l00097">Slice.h:97</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4_html_a5260bf3073811048ce1640b4a8cd03b7"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a5260bf3073811048ce1640b4a8cd03b7">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#l00097">STExchange.h:97</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="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#l00091">STExchange.h:91</a></div></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#l00035">Buffer.h:35</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#l00171">STExchange.h:171</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_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#l00048">STExchange.h:48</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#l00142">STInteger.h:142</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#l00313">BasicConfig.h:313</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#l00126">Buffer.h:126</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#l00041">STExchange.h:41</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1Buffer_html_ab6ff733d0e46ea023e9505ae9d4d34b6"><div class="ttname"><a href="classripple_1_1Buffer.html#ab6ff733d0e46ea023e9505ae9d4d34b6">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#l00150">Buffer.h:150</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#l00110">STBlob.h:110</a></div></div>
|
|
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a></div></div>
|
|
<div class="ttc" id="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="SField_8h_source.html#l00051">SField.h:51</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="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#l00052">STObject.h:52</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="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a2e1bcbdfd75c3b816e0c995b5337f339"><div class="ttname"><a href="classripple_1_1STObject.html#a2e1bcbdfd75c3b816e0c995b5337f339">ripple::STObject::peekAtPField</a></div><div class="ttdeci">const STBase * peekAtPField(SField const &field) const</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00401">STObject.cpp:401</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#l00139">SField.h:139</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#l00066">STBase.h:66</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4_html_adf1524e9f9f268bab06898f08b782f2a"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#adf1524e9f9f268bab06898f08b782f2a">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#l00103">STExchange.h:103</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4_html_a604f0b036863e4109affe09bc8b7794a"><div class="ttname"><a href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a604f0b036863e4109affe09bc8b7794a">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#l00057">STExchange.h:57</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="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="aclassripple_1_1STObject_html_a965eac719cefd6f8e66ac3b6c2e1122a"><div class="ttname"><a href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">ripple::STObject::set</a></div><div class="ttdeci">void set(const SOTemplate &)</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00100">STObject.cpp:100</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#l00033">STBlob.h:33</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="anamespaceripple_html_a104985c6e3067babe99aca6bbc51ba5d"><div class="ttname"><a href="namespaceripple.html#a104985c6e3067babe99aca6bbc51ba5d">ripple::get</a></div><div class="ttdeci">T & get(EitherAmount &amt)</div><div class="ttdef"><b>Definition:</b> <a href="AmountSpec_8h_source.html#l00118">AmountSpec.h:118</a></div></div>
|
|
<div class="ttc" id="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#l00051">STExchange.h:51</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#l00116">STBlob.h:116</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|