Files
rippled/STBase_8h_source.html
2025-12-11 08:55:10 -08:00

376 lines
62 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: STBase.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0103a8ad82dcc2c51f5cde661b4b5cb7.html">xrpl</a></li><li class="navelem"><a class="el" href="dir_8d04e3c0b58cad28d7755ed462d1b6c0.html">protocol</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">STBase.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef XRPL_PROTOCOL_STBASE_H_INCLUDED</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define XRPL_PROTOCOL_STBASE_H_INCLUDED</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;xrpl/basics/contract.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;xrpl/protocol/SField.h&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include &lt;xrpl/protocol/Serializer.h&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/ostream.html">ostream</a>&gt;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a>&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/typeinfo.html">typeinfo</a>&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacexrpl.html">xrpl</a> {</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="foldopen" id="foldopen00017" data-start="{" data-end="};">
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html"> 17</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span>{</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a"> 19</a></span> <span class="keyword">using </span><a class="code hl_typedef" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">underlying_t</a> = <span class="keywordtype">unsigned</span> int;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb"> 20</a></span> <a class="code hl_typedef" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">underlying_t</a> <a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a>;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="};">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570b"> 22</a></span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570b">values</a> : <a class="code hl_typedef" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">underlying_t</a> {</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// clang-format off</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6"> 24</a></span> <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">none</a> = 0b0000&#39;0000,</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b"> 25</a></span> <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b">include_date</a> = 0b0000&#39;0001,</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523"> 26</a></span> <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523">disable_API_prior_V2</a> = 0b0000&#39;0010,</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// IMPORTANT `_all` must be union of all of the above; see also operator~</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bab95328ac6fc35f4bd25af4417c849f13">_all</a> = 0b0000&#39;0011</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// clang-format on</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bab95328ac6fc35f4bd25af4417c849f13"> 31</a></span> };</div>
</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="foldopen" id="foldopen00033" data-start="{" data-end="}">
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a7214032b112b3ebe378937a1247d028b"> 33</a></span> <span class="keyword">constexpr</span> <a class="code hl_function" href="structxrpl_1_1JsonOptions.html#a7214032b112b3ebe378937a1247d028b">JsonOptions</a>(<a class="code hl_typedef" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">underlying_t</a> v) noexcept : <a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a>(v)</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> {</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">explicit</span></div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="}">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a496c212b5b950504d4a55e102020fa3b"> 38</a></span> <span class="keyword">operator</span> <a class="code hl_typedef" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">underlying_t</a>() const noexcept</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> }</div>
</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">explicit</span></div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="}">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a3e7eac37099d2f18d1d67b3f4ca19dff"> 43</a></span> <span class="keyword">operator</span> bool() const noexcept</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> {</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a> != 0u;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">friend</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#ab144909af5e9b31d254ddfc433c8b0ac"> 48</a></span> <a class="code hl_function" href="structxrpl_1_1JsonOptions.html#ab144909af5e9b31d254ddfc433c8b0ac">operator==</a>(<a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> lh, <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> rh) <span class="keyword">noexcept</span> -&gt; <span class="keywordtype">bool</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> [[nodiscard]] <span class="keyword">constexpr</span> <span class="keyword">auto</span> <span class="keyword">friend</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a104b122ae6ce105033ee87d9a174e7a1"> 50</a></span> <a class="code hl_function" href="structxrpl_1_1JsonOptions.html#a104b122ae6ce105033ee87d9a174e7a1">operator!=</a>(<a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> lh, <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> rh) <span class="keyword">noexcept</span> -&gt; <span class="keywordtype">bool</span> = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> [[nodiscard]] <span class="keyword">constexpr</span> <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> <span class="keyword">friend</span></div>
<div class="foldopen" id="foldopen00054" data-start="{" data-end="}">
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a00f3d64f9468cec94e5076e2b25f065a"> 54</a></span> <a class="code hl_function" href="structxrpl_1_1JsonOptions.html#a00f3d64f9468cec94e5076e2b25f065a">operator|</a>(<a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> lh, <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> rh) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> {lh.<a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a> | rh.value};</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> [[nodiscard]] <span class="keyword">constexpr</span> <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> <span class="keyword">friend</span></div>
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}">
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a29a314b033969acb6c031772efee107a"> 61</a></span> <a class="code hl_function" href="structxrpl_1_1JsonOptions.html#a29a314b033969acb6c031772efee107a">operator&amp;</a>(<a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> lh, <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> rh) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">return</span> {lh.<a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a> &amp; rh.value};</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> }</div>
</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> [[nodiscard]] <span class="keyword">constexpr</span> <a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> <span class="keyword">friend</span></div>
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="structxrpl_1_1JsonOptions.html#a8016026099f3da924590b6cc7b70b160"> 69</a></span> <a class="code hl_function" href="structxrpl_1_1JsonOptions.html#a8016026099f3da924590b6cc7b70b160">operator~</a>(<a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> v) <span class="keyword">noexcept</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> {</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">return</span> {~v.<a class="code hl_variable" href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">value</a> &amp; <span class="keyword">static_cast&lt;</span><a class="code hl_typedef" href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">underlying_t</a><span class="keyword">&gt;</span>(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bab95328ac6fc35f4bd25af4417c849f13">_all</a>)};</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> }</div>
</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span>};</div>
</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">requires</span> <span class="keyword">requires</span>(T <span class="keyword">const</span>&amp; t) {</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> { t.getJson(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">JsonOptions::none</a>) } -&gt; <a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::convertible_to&lt;Json::Value&gt;</a>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="foldopen" id="foldopen00080" data-start="{" data-end="}">
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="namespacexrpl.html#a3b12aca11b1fdd341775638049ecb10c"> 80</a></span><a class="code hl_function" href="namespacexrpl.html#aa7c9715f360257522f8ddeb8a00b19ff">to_json</a>(T <span class="keyword">const</span>&amp; t)</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span>{</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> t.getJson(<a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">JsonOptions::none</a>);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span>}</div>
</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="keyword">namespace </span>detail {</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="keyword">class </span>STVar;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span>}</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="comment">// VFALCO TODO fix this restriction on copy assignment.</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="comment">//</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="comment">// CAUTION: Do not create a vector (or similar container) of any object derived</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="comment">// from STBase. Use Boost ptr_* containers. The copy assignment operator</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="comment">// of STBase has semantics that will cause contained types to change</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span><span class="comment">// their names when an object is deleted because copy assignment is used to</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="comment">// &quot;slide down&quot; the remaining types and this will not copy the field</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span><span class="comment">// name. Changing the copy assignment operator to copy the field name breaks the</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span><span class="comment">// use of copy assignment just to copy values, which is used in the transaction</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="comment">// engine code.</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="foldopen" id="foldopen00115" data-start="{" data-end="};">
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html"> 115</a></span><span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>{</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#a9e7ec5766f35911c32023f8c676d3c7a"> 117</a></span> <a class="code hl_class" href="classxrpl_1_1SField.html">SField</a> <span class="keyword">const</span>* <a class="code hl_variable" href="classxrpl_1_1STBase.html#a9e7ec5766f35911c32023f8c676d3c7a">fName</a>;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#aff29feccb6c7b29c1888e8c5e04b3179"> 120</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#aff29feccb6c7b29c1888e8c5e04b3179">~STBase</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a5b76de44a73a575b01b94618dfa7a7b4">STBase</a>();</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#adbe9c48d81a3fb08348aae36cbf8e673"> 122</a></span> <a class="code hl_function" href="classxrpl_1_1STBase.html#adbe9c48d81a3fb08348aae36cbf8e673">STBase</a>(<a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a> <span class="keyword">const</span>&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a>&amp;</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a51245468aac9e3aae669cb9fec06a2a0">operator=</a>(<a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a> <span class="keyword">const</span>&amp; t);</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">explicit</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a5b76de44a73a575b01b94618dfa7a7b4">STBase</a>(<a class="code hl_class" href="classxrpl_1_1SField.html">SField</a> <span class="keyword">const</span>&amp; n);</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#aa38cef8c975997a16e7c5418349de0da">operator==</a>(<a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a> <span class="keyword">const</span>&amp; t) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a5b8a1cc04bdaf72ed1dddf00dd339af3">operator!=</a>(<a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a> <span class="keyword">const</span>&amp; t) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> D&gt;</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> D&amp;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a2689c8d764e589cf3f9868fc80dcc650">downcast</a>();</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> D&gt;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> D <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#a5ef15db1fc389055268939aedef53ddf"> 139</a></span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a5ef15db1fc389055268939aedef53ddf">downcast</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">virtual</span> <a class="code hl_enumeration" href="namespacexrpl.html#a9a934f459db38bf14dbca9b2adb6f07f">SerializedTypeID</a></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a75bfac27839716ec243b8878fd7cbef1">getSType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a4e96f500d8742a13828a4eb2b2a8d4c2">getFullText</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">virtual</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#ad9def6b825dc6d212fa95eb0f8c1856f">getText</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classJson_1_1Value.html">Json::Value</a> <a class="code hl_function" href="classxrpl_1_1STBase.html#a16be9b0e846076af51b8d818ac9149b9">getJson</a>(<a class="code hl_struct" href="structxrpl_1_1JsonOptions.html">JsonOptions</a> = <a class="code hl_enumvalue" href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">JsonOptions::none</a>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#aff4e53fa39d8168f305be959dfb102d2">add</a>(<a class="code hl_class" href="classxrpl_1_1Serializer.html">Serializer</a>&amp; s) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a2e735878249084d7e34cdfc435f13348">isEquivalent</a>(<a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a> <span class="keyword">const</span>&amp; t) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span></div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a9b5b32a9418a6f44a2678bb096f6d5b8">isDefault</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a956883c6e77fbe0d64553b54cd4f0d9c">setFName</a>(<a class="code hl_class" href="classxrpl_1_1SField.html">SField</a> <span class="keyword">const</span>&amp; n);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <a class="code hl_class" href="classxrpl_1_1SField.html">SField</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a14b485e4dcd5ea20630afc06f2f3a2f6">getFName</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#ae8646c34c80a4b4571fd7161e982f38e">addFieldID</a>(<a class="code hl_class" href="classxrpl_1_1Serializer.html">Serializer</a>&amp; s) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keyword">static</span> <a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a>*</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a260a8b03d33cf6003fe0479b1bad2979">emplace</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n, <span class="keywordtype">void</span>* buf, T&amp;&amp; val);</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a>*</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#a6e87423c8d5575a60afc932def818c0b">copy</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n, <span class="keywordtype">void</span>* buf) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a>*</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_function" href="classxrpl_1_1STBase.html#acb35de9f6e89bc3f73ffb9d479611a52">move</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n, <span class="keywordtype">void</span>* buf);</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#a5e49bd8b743617d1af92ffed7ac6b665"> 184</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classxrpl_1_1detail_1_1STVar.html">detail::STVar</a>;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span>};</div>
</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span><span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span><a class="code hl_function" href="namespacexrpl.html#a588b222bb4a0e8eb023bcb778d479cf9">operator&lt;&lt;</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a>&amp; <a class="code hl_enumvalue" href="namespacexrpl.html#a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275">out</a>, <a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a> <span class="keyword">const</span>&amp; t);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> D&gt;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span>D&amp;</div>
<div class="foldopen" id="foldopen00194" data-start="{" data-end="}">
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#a2689c8d764e589cf3f9868fc80dcc650"> 194</a></span><a class="code hl_function" href="classxrpl_1_1STBase.html#a2689c8d764e589cf3f9868fc80dcc650">STBase::downcast</a>()</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span>{</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> D* ptr = <span class="keyword">dynamic_cast&lt;</span>D*<span class="keyword">&gt;</span>(<span class="keyword">this</span>);</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="keywordflow">if</span> (ptr == <span class="keyword">nullptr</span>)</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> Throw&lt;std::bad_cast&gt;();</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="keywordflow">return</span> *ptr;</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span>}</div>
</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> D&gt;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span>D <span class="keyword">const</span>&amp;</div>
<div class="foldopen" id="foldopen00204" data-start="{" data-end="}">
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#a5ef15db1fc389055268939aedef53ddf"> 204</a></span><a class="code hl_function" href="classxrpl_1_1STBase.html#a2689c8d764e589cf3f9868fc80dcc650">STBase::downcast</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> D <span class="keyword">const</span>* ptr = <span class="keyword">dynamic_cast&lt;</span>D const*<span class="keyword">&gt;</span>(<span class="keyword">this</span>);</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keywordflow">if</span> (ptr == <span class="keyword">nullptr</span>)</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> Throw&lt;std::bad_cast&gt;();</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">return</span> *ptr;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span>}</div>
</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span><a class="code hl_class" href="classxrpl_1_1STBase.html">STBase</a>*</div>
<div class="foldopen" id="foldopen00214" data-start="{" data-end="}">
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="classxrpl_1_1STBase.html#a260a8b03d33cf6003fe0479b1bad2979"> 214</a></span><a class="code hl_function" href="classxrpl_1_1STBase.html#a260a8b03d33cf6003fe0479b1bad2979">STBase::emplace</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> n, <span class="keywordtype">void</span>* buf, T&amp;&amp; val)</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span>{</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keyword">using </span>U = <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/types/decay.html">std::decay_t&lt;T&gt;</a>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="keywordflow">if</span> (<span class="keyword">sizeof</span>(U) &gt; n)</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">return</span> <span class="keyword">new</span> U(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward&lt;T&gt;</a>(val));</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">return</span> <span class="keyword">new</span> (buf) U(<a class="code hl_variableRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::forward&lt;T&gt;</a>(val));</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span>}</div>
</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span>} <span class="comment">// namespace xrpl</span></div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> </div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::ostream</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div></div>
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition</b> <a href="json__value_8h_source.html#l00130">json_value.h:131</a></div></div>
<div class="ttc" id="aclassxrpl_1_1SField_html"><div class="ttname"><a href="classxrpl_1_1SField.html">xrpl::SField</a></div><div class="ttdoc">Identifies fields.</div><div class="ttdef"><b>Definition</b> <a href="SField_8h_source.html#l00126">SField.h:127</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html"><div class="ttname"><a href="classxrpl_1_1STBase.html">xrpl::STBase</a></div><div class="ttdoc">A type which can be exported to a well known binary format.</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00115">STBase.h:116</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a14b485e4dcd5ea20630afc06f2f3a2f6"><div class="ttname"><a href="classxrpl_1_1STBase.html#a14b485e4dcd5ea20630afc06f2f3a2f6">xrpl::STBase::getFName</a></div><div class="ttdeci">SField const &amp; getFName() const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00124">STBase.cpp:124</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a16be9b0e846076af51b8d818ac9149b9"><div class="ttname"><a href="classxrpl_1_1STBase.html#a16be9b0e846076af51b8d818ac9149b9">xrpl::STBase::getJson</a></div><div class="ttdeci">virtual Json::Value getJson(JsonOptions=JsonOptions::none) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00087">STBase.cpp:87</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a260a8b03d33cf6003fe0479b1bad2979"><div class="ttname"><a href="classxrpl_1_1STBase.html#a260a8b03d33cf6003fe0479b1bad2979">xrpl::STBase::emplace</a></div><div class="ttdeci">static STBase * emplace(std::size_t n, void *buf, T &amp;&amp;val)</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00214">STBase.h:214</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a2689c8d764e589cf3f9868fc80dcc650"><div class="ttname"><a href="classxrpl_1_1STBase.html#a2689c8d764e589cf3f9868fc80dcc650">xrpl::STBase::downcast</a></div><div class="ttdeci">D &amp; downcast()</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00194">STBase.h:194</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a2e735878249084d7e34cdfc435f13348"><div class="ttname"><a href="classxrpl_1_1STBase.html#a2e735878249084d7e34cdfc435f13348">xrpl::STBase::isEquivalent</a></div><div class="ttdeci">virtual bool isEquivalent(STBase const &amp;t) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00102">STBase.cpp:102</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a4e96f500d8742a13828a4eb2b2a8d4c2"><div class="ttname"><a href="classxrpl_1_1STBase.html#a4e96f500d8742a13828a4eb2b2a8d4c2">xrpl::STBase::getFullText</a></div><div class="ttdeci">virtual std::string getFullText() const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00062">STBase.cpp:62</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a51245468aac9e3aae669cb9fec06a2a0"><div class="ttname"><a href="classxrpl_1_1STBase.html#a51245468aac9e3aae669cb9fec06a2a0">xrpl::STBase::operator=</a></div><div class="ttdeci">STBase &amp; operator=(STBase const &amp;t)</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00024">STBase.cpp:24</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a5b76de44a73a575b01b94618dfa7a7b4"><div class="ttname"><a href="classxrpl_1_1STBase.html#a5b76de44a73a575b01b94618dfa7a7b4">xrpl::STBase::STBase</a></div><div class="ttdeci">STBase()</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00014">STBase.cpp:14</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a5b8a1cc04bdaf72ed1dddf00dd339af3"><div class="ttname"><a href="classxrpl_1_1STBase.html#a5b8a1cc04bdaf72ed1dddf00dd339af3">xrpl::STBase::operator!=</a></div><div class="ttdeci">bool operator!=(STBase const &amp;t) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00038">STBase.cpp:38</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a5ef15db1fc389055268939aedef53ddf"><div class="ttname"><a href="classxrpl_1_1STBase.html#a5ef15db1fc389055268939aedef53ddf">xrpl::STBase::downcast</a></div><div class="ttdeci">D const &amp; downcast() const</div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a6e87423c8d5575a60afc932def818c0b"><div class="ttname"><a href="classxrpl_1_1STBase.html#a6e87423c8d5575a60afc932def818c0b">xrpl::STBase::copy</a></div><div class="ttdeci">virtual STBase * copy(std::size_t n, void *buf) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00044">STBase.cpp:44</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a75bfac27839716ec243b8878fd7cbef1"><div class="ttname"><a href="classxrpl_1_1STBase.html#a75bfac27839716ec243b8878fd7cbef1">xrpl::STBase::getSType</a></div><div class="ttdeci">virtual SerializedTypeID getSType() const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00056">STBase.cpp:56</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a956883c6e77fbe0d64553b54cd4f0d9c"><div class="ttname"><a href="classxrpl_1_1STBase.html#a956883c6e77fbe0d64553b54cd4f0d9c">xrpl::STBase::setFName</a></div><div class="ttdeci">void setFName(SField const &amp;n)</div><div class="ttdoc">A STBase is a field.</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00117">STBase.cpp:117</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a9b5b32a9418a6f44a2678bb096f6d5b8"><div class="ttname"><a href="classxrpl_1_1STBase.html#a9b5b32a9418a6f44a2678bb096f6d5b8">xrpl::STBase::isDefault</a></div><div class="ttdeci">virtual bool isDefault() const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00111">STBase.cpp:111</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_a9e7ec5766f35911c32023f8c676d3c7a"><div class="ttname"><a href="classxrpl_1_1STBase.html#a9e7ec5766f35911c32023f8c676d3c7a">xrpl::STBase::fName</a></div><div class="ttdeci">SField const * fName</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00117">STBase.h:117</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_aa38cef8c975997a16e7c5418349de0da"><div class="ttname"><a href="classxrpl_1_1STBase.html#aa38cef8c975997a16e7c5418349de0da">xrpl::STBase::operator==</a></div><div class="ttdeci">bool operator==(STBase const &amp;t) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00032">STBase.cpp:32</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_acb35de9f6e89bc3f73ffb9d479611a52"><div class="ttname"><a href="classxrpl_1_1STBase.html#acb35de9f6e89bc3f73ffb9d479611a52">xrpl::STBase::move</a></div><div class="ttdeci">virtual STBase * move(std::size_t n, void *buf)</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00050">STBase.cpp:50</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_ad9def6b825dc6d212fa95eb0f8c1856f"><div class="ttname"><a href="classxrpl_1_1STBase.html#ad9def6b825dc6d212fa95eb0f8c1856f">xrpl::STBase::getText</a></div><div class="ttdeci">virtual std::string getText() const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00081">STBase.cpp:81</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_adbe9c48d81a3fb08348aae36cbf8e673"><div class="ttname"><a href="classxrpl_1_1STBase.html#adbe9c48d81a3fb08348aae36cbf8e673">xrpl::STBase::STBase</a></div><div class="ttdeci">STBase(STBase const &amp;)=default</div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_ae8646c34c80a4b4571fd7161e982f38e"><div class="ttname"><a href="classxrpl_1_1STBase.html#ae8646c34c80a4b4571fd7161e982f38e">xrpl::STBase::addFieldID</a></div><div class="ttdeci">void addFieldID(Serializer &amp;s) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00130">STBase.cpp:130</a></div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_aff29feccb6c7b29c1888e8c5e04b3179"><div class="ttname"><a href="classxrpl_1_1STBase.html#aff29feccb6c7b29c1888e8c5e04b3179">xrpl::STBase::~STBase</a></div><div class="ttdeci">virtual ~STBase()=default</div></div>
<div class="ttc" id="aclassxrpl_1_1STBase_html_aff4e53fa39d8168f305be959dfb102d2"><div class="ttname"><a href="classxrpl_1_1STBase.html#aff4e53fa39d8168f305be959dfb102d2">xrpl::STBase::add</a></div><div class="ttdeci">virtual void add(Serializer &amp;s) const</div><div class="ttdef"><b>Definition</b> <a href="STBase_8cpp_source.html#l00093">STBase.cpp:93</a></div></div>
<div class="ttc" id="aclassxrpl_1_1Serializer_html"><div class="ttname"><a href="classxrpl_1_1Serializer.html">xrpl::Serializer</a></div><div class="ttdef"><b>Definition</b> <a href="Serializer_8h_source.html#l00021">Serializer.h:22</a></div></div>
<div class="ttc" id="aclassxrpl_1_1detail_1_1STVar_html"><div class="ttname"><a href="classxrpl_1_1detail_1_1STVar.html">xrpl::detail::STVar</a></div><div class="ttdef"><b>Definition</b> <a href="STVar_8h_source.html#l00042">STVar.h:43</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_t</a></div></div>
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same_v</a></div><div class="ttdeci">T is_same_v</div></div>
<div class="ttc" id="anamespacexrpl_html"><div class="ttname"><a href="namespacexrpl.html">xrpl</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition</b> <a href="algorithm_8h_source.html#l00006">algorithm.h:6</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a588b222bb4a0e8eb023bcb778d479cf9"><div class="ttname"><a href="namespacexrpl.html#a588b222bb4a0e8eb023bcb778d479cf9">xrpl::operator&lt;&lt;</a></div><div class="ttdeci">std::ostream &amp; operator&lt;&lt;(std::ostream &amp;out, base_uint&lt; Bits, Tag &gt; const &amp;u)</div><div class="ttdef"><b>Definition</b> <a href="base__uint_8h_source.html#l00627">base_uint.h:628</a></div></div>
<div class="ttc" id="anamespacexrpl_html_a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275"><div class="ttname"><a href="namespacexrpl.html#a8c276c0296ec751cf0e0eb51dbc7f72dac68271a63ddbc431c307beb7d2918275">xrpl::QualityDirection::out</a></div><div class="ttdeci">@ out</div></div>
<div class="ttc" id="anamespacexrpl_html_a9a934f459db38bf14dbca9b2adb6f07f"><div class="ttname"><a href="namespacexrpl.html#a9a934f459db38bf14dbca9b2adb6f07f">xrpl::SerializedTypeID</a></div><div class="ttdeci">SerializedTypeID</div><div class="ttdef"><b>Definition</b> <a href="SField_8h_source.html#l00091">SField.h:91</a></div></div>
<div class="ttc" id="anamespacexrpl_html_aa7c9715f360257522f8ddeb8a00b19ff"><div class="ttname"><a href="namespacexrpl.html#aa7c9715f360257522f8ddeb8a00b19ff">xrpl::to_json</a></div><div class="ttdeci">Json::Value to_json(Asset const &amp;asset)</div><div class="ttdef"><b>Definition</b> <a href="Asset_8h_source.html#l00124">Asset.h:124</a></div></div>
<div class="ttc" id="aostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/ostream.html">ostream</a></div></div>
<div class="ttc" id="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="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html">xrpl::JsonOptions</a></div><div class="ttdoc">Note, should be treated as flags that can be | and &amp;.</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00017">STBase.h:18</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a00f3d64f9468cec94e5076e2b25f065a"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a00f3d64f9468cec94e5076e2b25f065a">xrpl::JsonOptions::operator|</a></div><div class="ttdeci">constexpr JsonOptions friend operator|(JsonOptions lh, JsonOptions rh) noexcept</div><div class="ttdoc">Returns JsonOptions union of lh and rh.</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00054">STBase.h:54</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a104b122ae6ce105033ee87d9a174e7a1"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a104b122ae6ce105033ee87d9a174e7a1">xrpl::JsonOptions::operator!=</a></div><div class="ttdeci">constexpr auto friend operator!=(JsonOptions lh, JsonOptions rh) noexcept -&gt; bool=default</div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570b"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570b">xrpl::JsonOptions::values</a></div><div class="ttdeci">values</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00022">STBase.h:22</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba1a97822ca421424f4fc466f09db227a6">xrpl::JsonOptions::none</a></div><div class="ttdeci">@ none</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00024">STBase.h:24</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570ba97bf7ab51d5930c21ce7358fe6069523">xrpl::JsonOptions::disable_API_prior_V2</a></div><div class="ttdeci">@ disable_API_prior_V2</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00026">STBase.h:26</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570bab95328ac6fc35f4bd25af4417c849f13"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bab95328ac6fc35f4bd25af4417c849f13">xrpl::JsonOptions::_all</a></div><div class="ttdeci">@ _all</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00031">STBase.h:29</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a248f4c1cb1b2fe05b58678f32307570bac8f7a6bcecbb04376c7b274031dd3a9b">xrpl::JsonOptions::include_date</a></div><div class="ttdeci">@ include_date</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00025">STBase.h:25</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a29a314b033969acb6c031772efee107a"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a29a314b033969acb6c031772efee107a">xrpl::JsonOptions::operator&amp;</a></div><div class="ttdeci">constexpr JsonOptions friend operator&amp;(JsonOptions lh, JsonOptions rh) noexcept</div><div class="ttdoc">Returns JsonOptions intersection of lh and rh.</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00061">STBase.h:61</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a392491732c8a73193ba16553355413cb"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a392491732c8a73193ba16553355413cb">xrpl::JsonOptions::value</a></div><div class="ttdeci">underlying_t value</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00020">STBase.h:20</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a7214032b112b3ebe378937a1247d028b"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a7214032b112b3ebe378937a1247d028b">xrpl::JsonOptions::JsonOptions</a></div><div class="ttdeci">constexpr JsonOptions(underlying_t v) noexcept</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00033">STBase.h:33</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_a8016026099f3da924590b6cc7b70b160"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#a8016026099f3da924590b6cc7b70b160">xrpl::JsonOptions::operator~</a></div><div class="ttdeci">constexpr JsonOptions friend operator~(JsonOptions v) noexcept</div><div class="ttdoc">Returns JsonOptions binary negation, can be used with &amp; (above) for set difference e....</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00069">STBase.h:69</a></div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_ab144909af5e9b31d254ddfc433c8b0ac"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#ab144909af5e9b31d254ddfc433c8b0ac">xrpl::JsonOptions::operator==</a></div><div class="ttdeci">constexpr auto friend operator==(JsonOptions lh, JsonOptions rh) noexcept -&gt; bool=default</div></div>
<div class="ttc" id="astructxrpl_1_1JsonOptions_html_abdc4ae35e929c9d55e24ba69c0ffb96a"><div class="ttname"><a href="structxrpl_1_1JsonOptions.html#abdc4ae35e929c9d55e24ba69c0ffb96a">xrpl::JsonOptions::underlying_t</a></div><div class="ttdeci">unsigned int underlying_t</div><div class="ttdef"><b>Definition</b> <a href="STBase_8h_source.html#l00019">STBase.h:19</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="atypeinfo_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/typeinfo.html">typeinfo</a></div></div>
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>