mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
deploy: 020b285808
This commit is contained in:
321
STExchange_8h_source.html
Normal file
321
STExchange_8h_source.html
Normal file
@@ -0,0 +1,321 @@
|
||||
<!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/Buffer.h></span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <ripple/basics/contract.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/protocol/SField.h></span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <ripple/protocol/STBlob.h></span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <ripple/protocol/STInteger.h></span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <ripple/protocol/STObject.h></span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <ripple/basics/Blob.h></span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <boost/optional.hpp></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/memory.html">memory</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>  </div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html"> 45</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="l00046"></a><span class="lineno"> 46</span> {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</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="l00048"></a><span class="lineno"> 48</span>  </div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a3b4ee990d1019da2169a3082bde439f6"> 49</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="l00050"></a><span class="lineno"> 50</span>  </div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">static</span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a24e5eb22aed8f28ca6a7843138ad7d0a"> 53</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a24e5eb22aed8f28ca6a7843138ad7d0a">get</a> (boost::optional<T>& t,</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classripple_1_1STInteger.html">STInteger<U></a> <span class="keyword">const</span>& u)</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>  t = u.<a class="code" href="classripple_1_1STInteger.html#adf0b5444ba259c386a68885740029402">value</a>();</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</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="keyword">static</span></div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</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="l00061"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a604f0b036863e4109affe09bc8b7794a"> 61</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="l00062"></a><span class="lineno"> 62</span>  {</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique.html">std::make_unique</a><</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classripple_1_1STInteger.html">STInteger<U></a>>(f, t);</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> };</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">template</span> <></div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html"> 69</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="l00070"></a><span class="lineno"> 70</span> {</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</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="l00072"></a><span class="lineno"> 72</span>  </div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a662aaeb322a3a6dffa90b7d57d0da3ce"> 73</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="l00074"></a><span class="lineno"> 74</span>  </div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">static</span></div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span></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#a408b6325fb3ce291c8b3331837f30f8d"> 77</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a408b6325fb3ce291c8b3331837f30f8d">get</a> (boost::optional<value_type>& t,</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classripple_1_1STBlob.html">STBlob</a> <span class="keyword">const</span>& u)</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  t.emplace (u.<a class="code" href="classripple_1_1STBlob.html#a8158dbad5279563ef0c49e04af47d85b">data</a>(), u.<a class="code" href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">size</a>());</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">static</span></div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</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="l00085"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#ac08665a9c6a24c3cd245747068881d1f"> 85</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,</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classripple_1_1Slice.html">Slice</a> <span class="keyword">const</span>& t)</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> std::make_unique<STBlob>(</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  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="l00090"></a><span class="lineno"> 90</span>  }</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> };</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> <span class="keyword">template</span> <></div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html"> 94</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="l00095"></a><span class="lineno"> 95</span> {</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</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="l00097"></a><span class="lineno"> 97</span>  </div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ad55ed1bbfb21155e6f0e961f870e6df6"> 98</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="l00099"></a><span class="lineno"> 99</span>  </div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">static</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ad9229ba9a33b434d118ec98ae5ee8f80"> 102</a></span>  <a class="code" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ad9229ba9a33b434d118ec98ae5ee8f80">get</a> (boost::optional<Buffer>& t,</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classripple_1_1STBlob.html">STBlob</a> <span class="keyword">const</span>& u)</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>  t.emplace (</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  u.<a class="code" href="classripple_1_1STBlob.html#a8158dbad5279563ef0c49e04af47d85b">data</a>(), u.<a class="code" href="classripple_1_1STBlob.html#a6f35800e09c25366d770be7148bf62c6">size</a>());</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="keyword">static</span></div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</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="l00111"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#a5260bf3073811048ce1640b4a8cd03b7"> 111</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,</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="classripple_1_1Buffer.html">Buffer</a> <span class="keyword">const</span>& t)</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> std::make_unique<STBlob>(</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  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="l00116"></a><span class="lineno"> 116</span>  }</div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keyword">static</span></div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</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="l00120"></a><span class="lineno"><a class="line" href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#adf1524e9f9f268bab06898f08b782f2a"> 120</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,</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classripple_1_1Buffer.html">Buffer</a>&& t)</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  {</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> std::make_unique<STBlob>(</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  f, std::move(t));</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> };</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">template</span> <<span class="keyword">class</span> T, <span class="keyword">class</span> U></div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> boost::optional<T></div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="namespaceripple.html#abdb4a812cf350ed82294102d99232903"> 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,</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> {</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  boost::optional<T> t;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="classripple_1_1STBase.html">STBase</a> <span class="keyword">const</span>* <span class="keyword">const</span> b =</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  st.<a class="code" href="classripple_1_1STObject.html#a2e1bcbdfd75c3b816e0c995b5337f339">peekAtPField</a>(f);</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">if</span> (! b)</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">return</span> t;</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</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="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">if</span> (<span class="keywordtype">id</span> == <a class="code" href="namespaceripple.html#a3e7e3f29aef85bcca06706da54e950fcab76fc75f48af6057a33e305910d0b5a7">STI_NOTPRESENT</a>)</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">return</span> t;</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">auto</span> <span class="keyword">const</span> u =</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">dynamic_cast<</span>U const*<span class="keyword">></span>(b);</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="comment">// This should never happen</span></div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (! u)</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  Throw<std::runtime_error> (</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="stringliteral">"Wrong field type"</span>);</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="structripple_1_1STExchange.html">STExchange<U, T>::get</a>(t, *u);</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">return</span> t;</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>  </div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">template</span> <<span class="keyword">class</span> U></div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> boost::optional<<span class="keyword">typename</span> STExchange<</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  U, <span class="keyword">typename</span> U::value_type>::value_type></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="namespaceripple.html#a4a3008679b5890eb9f162d2d31015ca0"> 158</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,</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> {</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordflow">return</span> get<typename U::value_type>(st, f);</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">template</span> <<span class="keyword">class</span> U, <span class="keyword">class</span> T></div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="namespaceripple.html#a4267ee88cb85e7026a52077f73ca3e11"> 168</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="l00169"></a><span class="lineno"> 169</span>  <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="l00170"></a><span class="lineno"> 170</span> {</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  st.<a class="code" href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">set</a>(<a class="code" href="structripple_1_1STExchange.html">STExchange</a><U,</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <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="l00173"></a><span class="lineno"> 173</span>  f, std::forward<T>(t)));</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="l00177"></a><span class="lineno"> 177</span> <span class="keyword">template</span> <<span class="keyword">class</span> Init></div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="namespaceripple.html#a141116c81c2e62d4844a4e53193d0c7c"> 179</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="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f,</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <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="l00182"></a><span class="lineno"> 182</span> {</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  st.<a class="code" href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">set</a>(std::make_unique<STBlob>(</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  f, size, init));</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> }</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  </div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="keyword">template</span> <<span class="keyword">class</span> = <span class="keywordtype">void</span>></div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="namespaceripple.html#a6b8f51a4225602fc6eea9ecee8e6bc1b"> 190</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="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="structripple_1_1TypedField.html">TypedField<STBlob></a> <span class="keyword">const</span>& f,</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordtype">void</span> <span class="keyword">const</span>* data, <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="l00193"></a><span class="lineno"> 193</span> {</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  st.<a class="code" href="classripple_1_1STObject.html#a965eac719cefd6f8e66ac3b6c2e1122a">set</a>(std::make_unique<STBlob>(</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  f, data, size));</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> }</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="keyword">template</span> <<span class="keyword">class</span> U></div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="keywordtype">void</span></div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504"> 201</a></span> <a class="code" href="namespaceripple.html#aa761b49f905eb9fd8c8ae754a0eb7504">erase</a> (<a class="code" href="classripple_1_1STObject.html">STObject</a>& st,</div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="structripple_1_1TypedField.html">TypedField<U></a> <span class="keyword">const</span>& f)</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> {</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  st.<a class="code" href="classripple_1_1STObject.html#a624bc6e179ff15ec5f08a4d1c7d1932e">makeFieldAbsent</a>(f);</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> }</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> } <span class="comment">// ripple</span></div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</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#l00077">Slice.h:77</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STBlob_html_a8158dbad5279563ef0c49e04af47d85b"><div class="ttname"><a href="classripple_1_1STBlob.html#a8158dbad5279563ef0c49e04af47d85b">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#l00083">STBlob.h:83</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#l00067">STBase.cpp:67</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#l00471">STObject.cpp:471</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#l00260">SField.h:260</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#l00043">Slice.h:43</a></div></div>
|
||||
<div class="ttc" id="amake_unique_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique.html">std::make_unique</a></div><div class="ttdeci">T make_unique(T... args)</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#l00085">STExchange.h:85</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#l00087">Slice.h:87</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#l00111">STExchange.h:111</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="astructripple_1_1STExchange_3_01STBlob_00_01Slice_01_4_html_a408b6325fb3ce291c8b3331837f30f8d"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Slice_01_4.html#a408b6325fb3ce291c8b3331837f30f8d">ripple::STExchange< STBlob, Slice >::get</a></div><div class="ttdeci">static void get(boost::optional< value_type > &t, STBlob const &u)</div><div class="ttdef"><b>Definition:</b> <a href="STExchange_8h_source.html#l00077">STExchange.h:77</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#l00201">STExchange.h:201</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#l00049">STExchange.h:49</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#l00271">BasicConfig.h:271</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#l00130">Buffer.h:130</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#l00154">Buffer.h:154</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#l00077">STBlob.h:77</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4_html_a24e5eb22aed8f28ca6a7843138ad7d0a"><div class="ttname"><a href="structripple_1_1STExchange_3_01STInteger_3_01U_01_4_00_01T_01_4.html#a24e5eb22aed8f28ca6a7843138ad7d0a">ripple::STExchange< STInteger< U >, T >::get</a></div><div class="ttdeci">static void get(boost::optional< T > &t, STInteger< U > 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_01Buffer_01_4_html_ad9229ba9a33b434d118ec98ae5ee8f80"><div class="ttname"><a href="structripple_1_1STExchange_3_01STBlob_00_01Buffer_01_4.html#ad9229ba9a33b434d118ec98ae5ee8f80">ripple::STExchange< STBlob, Buffer >::get</a></div><div class="ttdeci">static void get(boost::optional< Buffer > &t, STBlob const &u)</div><div class="ttdef"><b>Definition:</b> <a href="STExchange_8h_source.html#l00102">STExchange.h:102</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#l00049">SField.h:49</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#l00051">STObject.h:51</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#l00367">STObject.cpp:367</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#l00112">SField.h:112</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#l00065">STBase.h:65</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#l00120">STExchange.h:120</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#l00061">STExchange.h:61</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="aclassripple_1_1STInteger_html_adf0b5444ba259c386a68885740029402"><div class="ttname"><a href="classripple_1_1STInteger.html#adf0b5444ba259c386a68885740029402">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#l00080">STInteger.h:80</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#l00088">STObject.cpp:88</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#l00124">AmountSpec.h:124</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_a3e7e3f29aef85bcca06706da54e950fcab76fc75f48af6057a33e305910d0b5a7"><div class="ttname"><a href="namespaceripple.html#a3e7e3f29aef85bcca06706da54e950fcab76fc75f48af6057a33e305910d0b5a7">ripple::STI_NOTPRESENT</a></div><div class="ttdeci">@ STI_NOTPRESENT</div><div class="ttdef"><b>Definition:</b> <a href="SField_8h_source.html#l00057">SField.h:57</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>
|
||||
Reference in New Issue
Block a user