Files
rippled/TxMeta_8h_source.html
2021-01-21 18:53:50 +00:00

259 lines
42 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: TxMeta.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&amp;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&amp;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_df67e75ba07853ef5c3c9d8f74c2f968.html">ledger</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">TxMeta.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<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>&#160;<span class="comment"> Copyright (c) 2012, 2013 Ripple Labs Inc.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> THE SOFTWARE IS PROVIDED &quot;AS IS&quot; AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#ifndef RIPPLE_APP_TX_TRANSACTIONMETA_H_INCLUDED</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#define RIPPLE_APP_TX_TRANSACTIONMETA_H_INCLUDED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;ripple/beast/utility/Journal.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/STArray.h&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/STLedgerEntry.h&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;ripple/protocol/TER.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;boost/container/flat_set.hpp&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;boost/optional.hpp&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html"> 32</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1TxMeta.html">TxMeta</a></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structripple_1_1TxMeta_1_1CtorHelper.html"> 35</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structripple_1_1TxMeta_1_1CtorHelper.html">CtorHelper</a></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structripple_1_1TxMeta_1_1CtorHelper.html#afbeef8f7af3c3045319d798f9f6b8837">CtorHelper</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; };</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a1c88fc2a22aa5ac11ab41d989605c26f">TxMeta</a>(</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; txID,</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger,</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; T <span class="keyword">const</span>&amp; data,</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="structripple_1_1TxMeta_1_1CtorHelper.html">CtorHelper</a>);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a1c88fc2a22aa5ac11ab41d989605c26f">TxMeta</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; transactionID, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a1c88fc2a22aa5ac11ab41d989605c26f">TxMeta</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; txID, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger, <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">Blob</a> <span class="keyword">const</span>&amp;);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a1c88fc2a22aa5ac11ab41d989605c26f">TxMeta</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; txID, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp;);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a1c88fc2a22aa5ac11ab41d989605c26f">TxMeta</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp; txID, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> ledger, <a class="code" href="classripple_1_1STObject.html">STObject</a> <span class="keyword">const</span>&amp;);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a5e6c6dcd1dfb5fa6791dcd3dcac3dbd8"> 53</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a5e6c6dcd1dfb5fa6791dcd3dcac3dbd8">getTxID</a>()</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; {</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1TxMeta.html#a4c63d945f6791914aeda167688f30354">mTransactionID</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; }</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a835cdd996c2ada5f9cb9215491a7e4ee"> 58</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a835cdd996c2ada5f9cb9215491a7e4ee">getLgrSeq</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1TxMeta.html#ab7273b67ea60895f68199f517f7bb048">mLedger</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; }</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">int</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a705e6d4d6ac97792401cd8ccb0c72acc"> 63</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a705e6d4d6ac97792401cd8ccb0c72acc">getResult</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1TxMeta.html#a3fe21e19101faad778d9d69195db102a">mResult</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <a class="code" href="classripple_1_1TERSubset.html">TER</a></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#aa5fff1a8fd590ce06ae81e8cd92f092f"> 68</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#aa5fff1a8fd590ce06ae81e8cd92f092f">getResultTER</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1TERSubset.html#ac9cff01940b63613d64d039bf6bb69a7">TER::fromInt</a>(<a class="code" href="classripple_1_1TxMeta.html#a3fe21e19101faad778d9d69195db102a">mResult</a>);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; }</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a7033824276e1c9d8871fb2975aa0a127"> 73</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a7033824276e1c9d8871fb2975aa0a127">getIndex</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1TxMeta.html#abd4b1304d7715d27bf179f1d23d2b320">mIndex</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; }</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a773883dcb28ff0f6e0cc2bd0055f908e">setAffectedNode</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp;, <a class="code" href="classripple_1_1SField.html">SField</a> <span class="keyword">const</span>&amp; type, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint16_t</a> nodeType);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classripple_1_1STObject.html">STObject</a>&amp;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#ae5b63d95023f6bea1049f227beceb7d4">getAffectedNode</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">SLE::ref</a> node, <a class="code" href="classripple_1_1SField.html">SField</a> <span class="keyword">const</span>&amp; type); <span class="comment">// create if needed</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="classripple_1_1STObject.html">STObject</a>&amp;</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#ae5b63d95023f6bea1049f227beceb7d4">getAffectedNode</a>(<a class="code" href="classripple_1_1base__uint.html">uint256</a> <span class="keyword">const</span>&amp;);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; boost::container::flat_set&lt;AccountID&gt;</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a6757258a25be4276bbad8971a0e51772">getAffectedAccounts</a>(<a class="code" href="classbeast_1_1Journal.html">beast::Journal</a> j) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a9fbad6f4d81e6952637230ee3f49a183"> 90</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a9fbad6f4d81e6952637230ee3f49a183">getJson</a>(<a class="code" href="namespaceripple.html#a169967ff418b80729654b6d45ade8711">JsonOptions</a> p)<span class="keyword"> const</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1TxMeta.html#a79212acdeff88c336db5231db639fcd8">getAsObject</a>().<a class="code" href="classripple_1_1STObject.html#acc2ceb95cdb8fc8b2520aeceabf17553">getJson</a>(p);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#ae0538a322af7145258aed683057bfb70">addRaw</a>(<a class="code" href="classripple_1_1Serializer.html">Serializer</a>&amp;, <a class="code" href="classripple_1_1TERSubset.html">TER</a>, <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> index);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="classripple_1_1STObject.html">STObject</a></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a79212acdeff88c336db5231db639fcd8">getAsObject</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="code" href="classripple_1_1STArray.html">STArray</a>&amp;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#acb0a79ba070162c63aa61a1ce764ade7"> 100</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#acb0a79ba070162c63aa61a1ce764ade7">getNodes</a>()</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; {</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordflow">return</span> (<a class="code" href="classripple_1_1TxMeta.html#a24e9687eec93402f2c9583f44d390772">mNodes</a>);</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; }</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a86363504776f915851aaa19703b3467d"> 106</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a86363504776f915851aaa19703b3467d">setDeliveredAmount</a>(<a class="code" href="classripple_1_1STAmount.html">STAmount</a> <span class="keyword">const</span>&amp; delivered)</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a64b1cce8e3eb8ce993ddbe07dde68cf9">mDelivered</a>.reset(delivered);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="classripple_1_1STAmount.html">STAmount</a></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a3d4d9a258d507a7bfd9e9c7f941c32ac"> 112</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a3d4d9a258d507a7bfd9e9c7f941c32ac">getDeliveredAmount</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; assert(<a class="code" href="classripple_1_1TxMeta.html#a39b5ebfff79eb58bed921464b1e4dd20">hasDeliveredAmount</a>());</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">return</span> *<a class="code" href="classripple_1_1TxMeta.html#a64b1cce8e3eb8ce993ddbe07dde68cf9">mDelivered</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a39b5ebfff79eb58bed921464b1e4dd20"> 119</a></span>&#160; <a class="code" href="classripple_1_1TxMeta.html#a39b5ebfff79eb58bed921464b1e4dd20">hasDeliveredAmount</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">bool</span><span class="keyword">&gt;</span>(<a class="code" href="classripple_1_1TxMeta.html#a64b1cce8e3eb8ce993ddbe07dde68cf9">mDelivered</a>);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; }</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a4c63d945f6791914aeda167688f30354"> 125</a></span>&#160; <a class="code" href="classripple_1_1base__uint.html">uint256</a> <a class="code" href="classripple_1_1TxMeta.html#a4c63d945f6791914aeda167688f30354">mTransactionID</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#ab7273b67ea60895f68199f517f7bb048"> 126</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <a class="code" href="classripple_1_1TxMeta.html#ab7273b67ea60895f68199f517f7bb048">mLedger</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#abd4b1304d7715d27bf179f1d23d2b320"> 127</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a> <a class="code" href="classripple_1_1TxMeta.html#abd4b1304d7715d27bf179f1d23d2b320">mIndex</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a3fe21e19101faad778d9d69195db102a"> 128</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="classripple_1_1TxMeta.html#a3fe21e19101faad778d9d69195db102a">mResult</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a64b1cce8e3eb8ce993ddbe07dde68cf9"> 130</a></span>&#160; boost::optional&lt;STAmount&gt; <a class="code" href="classripple_1_1TxMeta.html#a64b1cce8e3eb8ce993ddbe07dde68cf9">mDelivered</a>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classripple_1_1TxMeta.html#a24e9687eec93402f2c9583f44d390772"> 132</a></span>&#160; <a class="code" href="classripple_1_1STArray.html">STArray</a> <a class="code" href="classripple_1_1TxMeta.html#a24e9687eec93402f2c9583f44d390772">mNodes</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;};</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassripple_1_1TxMeta_html_a3fe21e19101faad778d9d69195db102a"><div class="ttname"><a href="classripple_1_1TxMeta.html#a3fe21e19101faad778d9d69195db102a">ripple::TxMeta::mResult</a></div><div class="ttdeci">int mResult</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00128">TxMeta.h:128</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 class="ttdoc">STL class.</div></div>
<div class="ttc" id="ashared_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="anamespaceripple_html_a169967ff418b80729654b6d45ade8711"><div class="ttname"><a href="namespaceripple.html#a169967ff418b80729654b6d45ade8711">ripple::JsonOptions</a></div><div class="ttdeci">JsonOptions</div><div class="ttdef"><b>Definition:</b> <a href="STBase_8h_source.html#l00034">STBase.h:34</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a79212acdeff88c336db5231db639fcd8"><div class="ttname"><a href="classripple_1_1TxMeta.html#a79212acdeff88c336db5231db639fcd8">ripple::TxMeta::getAsObject</a></div><div class="ttdeci">STObject getAsObject() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8cpp_source.html#l00205">TxMeta.cpp:205</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a6757258a25be4276bbad8971a0e51772"><div class="ttname"><a href="classripple_1_1TxMeta.html#a6757258a25be4276bbad8971a0e51772">ripple::TxMeta::getAffectedAccounts</a></div><div class="ttdeci">boost::container::flat_set&lt; AccountID &gt; getAffectedAccounts(beast::Journal j) const</div><div class="ttdoc">Return a list of accounts affected by this transaction.</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8cpp_source.html#l00115">TxMeta.cpp:115</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt; unsigned char &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_abd4b1304d7715d27bf179f1d23d2b320"><div class="ttname"><a href="classripple_1_1TxMeta.html#abd4b1304d7715d27bf179f1d23d2b320">ripple::TxMeta::mIndex</a></div><div class="ttdeci">std::uint32_t mIndex</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00127">TxMeta.h:127</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a1c88fc2a22aa5ac11ab41d989605c26f"><div class="ttname"><a href="classripple_1_1TxMeta.html#a1c88fc2a22aa5ac11ab41d989605c26f">ripple::TxMeta::TxMeta</a></div><div class="ttdeci">TxMeta(uint256 const &amp;txID, std::uint32_t ledger, T const &amp;data, CtorHelper)</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8cpp_source.html#l00030">TxMeta.cpp:30</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a5e6c6dcd1dfb5fa6791dcd3dcac3dbd8"><div class="ttname"><a href="classripple_1_1TxMeta.html#a5e6c6dcd1dfb5fa6791dcd3dcac3dbd8">ripple::TxMeta::getTxID</a></div><div class="ttdeci">uint256 const &amp; getTxID()</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00053">TxMeta.h:53</a></div></div>
<div class="ttc" id="astructripple_1_1TxMeta_1_1CtorHelper_html"><div class="ttname"><a href="structripple_1_1TxMeta_1_1CtorHelper.html">ripple::TxMeta::CtorHelper</a></div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00035">TxMeta.h:35</a></div></div>
<div class="ttc" id="astructripple_1_1TxMeta_1_1CtorHelper_html_afbeef8f7af3c3045319d798f9f6b8837"><div class="ttname"><a href="structripple_1_1TxMeta_1_1CtorHelper.html#afbeef8f7af3c3045319d798f9f6b8837">ripple::TxMeta::CtorHelper::CtorHelper</a></div><div class="ttdeci">CtorHelper()=default</div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a24e9687eec93402f2c9583f44d390772"><div class="ttname"><a href="classripple_1_1TxMeta.html#a24e9687eec93402f2c9583f44d390772">ripple::TxMeta::mNodes</a></div><div class="ttdeci">STArray mNodes</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00132">TxMeta.h:132</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html"><div class="ttname"><a href="classripple_1_1TxMeta.html">ripple::TxMeta</a></div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00032">TxMeta.h:32</a></div></div>
<div class="ttc" id="aclassripple_1_1base__uint_html"><div class="ttname"><a href="classripple_1_1base__uint.html">ripple::base_uint&lt; 256 &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_aa5fff1a8fd590ce06ae81e8cd92f092f"><div class="ttname"><a href="classripple_1_1TxMeta.html#aa5fff1a8fd590ce06ae81e8cd92f092f">ripple::TxMeta::getResultTER</a></div><div class="ttdeci">TER getResultTER() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00068">TxMeta.h:68</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a4c63d945f6791914aeda167688f30354"><div class="ttname"><a href="classripple_1_1TxMeta.html#a4c63d945f6791914aeda167688f30354">ripple::TxMeta::mTransactionID</a></div><div class="ttdeci">uint256 mTransactionID</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00125">TxMeta.h:125</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_ab7273b67ea60895f68199f517f7bb048"><div class="ttname"><a href="classripple_1_1TxMeta.html#ab7273b67ea60895f68199f517f7bb048">ripple::TxMeta::mLedger</a></div><div class="ttdeci">std::uint32_t mLedger</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00126">TxMeta.h:126</a></div></div>
<div class="ttc" id="aclassripple_1_1TERSubset_html"><div class="ttname"><a href="classripple_1_1TERSubset.html">ripple::TERSubset&lt; CanCvtToTER &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1STArray_html"><div class="ttname"><a href="classripple_1_1STArray.html">ripple::STArray</a></div><div class="ttdef"><b>Definition:</b> <a href="STArray_8h_source.html#l00028">STArray.h:28</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_ae0538a322af7145258aed683057bfb70"><div class="ttname"><a href="classripple_1_1TxMeta.html#ae0538a322af7145258aed683057bfb70">ripple::TxMeta::addRaw</a></div><div class="ttdeci">void addRaw(Serializer &amp;, TER, std::uint32_t index)</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8cpp_source.html#l00218">TxMeta.cpp:218</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a64b1cce8e3eb8ce993ddbe07dde68cf9"><div class="ttname"><a href="classripple_1_1TxMeta.html#a64b1cce8e3eb8ce993ddbe07dde68cf9">ripple::TxMeta::mDelivered</a></div><div class="ttdeci">boost::optional&lt; STAmount &gt; mDelivered</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00130">TxMeta.h:130</a></div></div>
<div class="ttc" id="aclassripple_1_1STAmount_html"><div class="ttname"><a href="classripple_1_1STAmount.html">ripple::STAmount</a></div><div class="ttdef"><b>Definition:</b> <a href="STAmount_8h_source.html#l00042">STAmount.h:42</a></div></div>
<div class="ttc" id="aclassbeast_1_1Journal_html"><div class="ttname"><a href="classbeast_1_1Journal.html">beast::Journal</a></div><div class="ttdoc">A generic endpoint for log messages.</div><div class="ttdef"><b>Definition:</b> <a href="Journal_8h_source.html#l00058">Journal.h:58</a></div></div>
<div class="ttc" id="ainteger_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/integer.html">std::uint32_t</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a705e6d4d6ac97792401cd8ccb0c72acc"><div class="ttname"><a href="classripple_1_1TxMeta.html#a705e6d4d6ac97792401cd8ccb0c72acc">ripple::TxMeta::getResult</a></div><div class="ttdeci">int getResult() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00063">TxMeta.h:63</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a9fbad6f4d81e6952637230ee3f49a183"><div class="ttname"><a href="classripple_1_1TxMeta.html#a9fbad6f4d81e6952637230ee3f49a183">ripple::TxMeta::getJson</a></div><div class="ttdeci">Json::Value getJson(JsonOptions p) const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00090">TxMeta.h:90</a></div></div>
<div class="ttc" id="aclassripple_1_1Serializer_html"><div class="ttname"><a href="classripple_1_1Serializer.html">ripple::Serializer</a></div><div class="ttdef"><b>Definition:</b> <a href="Serializer_8h_source.html#l00039">Serializer.h:39</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a835cdd996c2ada5f9cb9215491a7e4ee"><div class="ttname"><a href="classripple_1_1TxMeta.html#a835cdd996c2ada5f9cb9215491a7e4ee">ripple::TxMeta::getLgrSeq</a></div><div class="ttdeci">std::uint32_t getLgrSeq() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00058">TxMeta.h:58</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_1TxMeta_html_acb0a79ba070162c63aa61a1ce764ade7"><div class="ttname"><a href="classripple_1_1TxMeta.html#acb0a79ba070162c63aa61a1ce764ade7">ripple::TxMeta::getNodes</a></div><div class="ttdeci">STArray &amp; getNodes()</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00100">TxMeta.h:100</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_ae5b63d95023f6bea1049f227beceb7d4"><div class="ttname"><a href="classripple_1_1TxMeta.html#ae5b63d95023f6bea1049f227beceb7d4">ripple::TxMeta::getAffectedNode</a></div><div class="ttdeci">STObject &amp; getAffectedNode(SLE::ref node, SField const &amp;type)</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8cpp_source.html#l00173">TxMeta.cpp:173</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#l00109">SField.h:109</a></div></div>
<div class="ttc" id="aclassripple_1_1TERSubset_html_ac9cff01940b63613d64d039bf6bb69a7"><div class="ttname"><a href="classripple_1_1TERSubset.html#ac9cff01940b63613d64d039bf6bb69a7">ripple::TERSubset&lt; CanCvtToTER &gt;::fromInt</a></div><div class="ttdeci">static constexpr TERSubset fromInt(int from)</div><div class="ttdef"><b>Definition:</b> <a href="TER_8h_source.html#l00345">TER.h:345</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a39b5ebfff79eb58bed921464b1e4dd20"><div class="ttname"><a href="classripple_1_1TxMeta.html#a39b5ebfff79eb58bed921464b1e4dd20">ripple::TxMeta::hasDeliveredAmount</a></div><div class="ttdeci">bool hasDeliveredAmount() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00119">TxMeta.h:119</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a86363504776f915851aaa19703b3467d"><div class="ttname"><a href="classripple_1_1TxMeta.html#a86363504776f915851aaa19703b3467d">ripple::TxMeta::setDeliveredAmount</a></div><div class="ttdeci">void setDeliveredAmount(STAmount const &amp;delivered)</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00106">TxMeta.h:106</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a3d4d9a258d507a7bfd9e9c7f941c32ac"><div class="ttname"><a href="classripple_1_1TxMeta.html#a3d4d9a258d507a7bfd9e9c7f941c32ac">ripple::TxMeta::getDeliveredAmount</a></div><div class="ttdeci">STAmount getDeliveredAmount() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00112">TxMeta.h:112</a></div></div>
<div class="ttc" id="aclassripple_1_1STObject_html_acc2ceb95cdb8fc8b2520aeceabf17553"><div class="ttname"><a href="classripple_1_1STObject.html#acc2ceb95cdb8fc8b2520aeceabf17553">ripple::STObject::getJson</a></div><div class="ttdeci">virtual Json::Value getJson(JsonOptions options) const override</div><div class="ttdef"><b>Definition:</b> <a href="STObject_8cpp_source.html#l00698">STObject.cpp:698</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a7033824276e1c9d8871fb2975aa0a127"><div class="ttname"><a href="classripple_1_1TxMeta.html#a7033824276e1c9d8871fb2975aa0a127">ripple::TxMeta::getIndex</a></div><div class="ttdeci">std::uint32_t getIndex() const</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8h_source.html#l00073">TxMeta.h:73</a></div></div>
<div class="ttc" id="aclassripple_1_1TxMeta_html_a773883dcb28ff0f6e0cc2bd0055f908e"><div class="ttname"><a href="classripple_1_1TxMeta.html#a773883dcb28ff0f6e0cc2bd0055f908e">ripple::TxMeta::setAffectedNode</a></div><div class="ttdeci">void setAffectedNode(uint256 const &amp;, SField const &amp;type, std::uint16_t nodeType)</div><div class="ttdef"><b>Definition:</b> <a href="TxMeta_8cpp_source.html#l00090">TxMeta.cpp:90</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#l00145">json_value.h:145</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>