mirror of
https://github.com/XRPLF/rippled.git
synced 2026-02-06 15:05:31 +00:00
deploy: 5f638f5553
This commit is contained in:
@@ -92,24 +92,22 @@ $(document).ready(function() { init_codefold(0); });
|
||||
<div class="foldopen" id="foldopen00009" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="structxrpl_1_1Keylet.html#aa1c15f751d20b0b0b09c189f934e98e6"> 9</a></span><a class="code hl_function" href="structxrpl_1_1Keylet.html#aa1c15f751d20b0b0b09c189f934e98e6">Keylet::check</a>(<a class="code hl_class" href="classxrpl_1_1STLedgerEntry.html">STLedgerEntry</a> <span class="keyword">const</span>& sle)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword"></span>{</div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> XRPL_ASSERT(</div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() != <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367a40dbaec76072f791687cbbe24c630ccc">ltANY</a> || sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() != <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367ab5936e96f2148b76bcd9e190dfe4f049">ltCHILD</a>,</div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="stringliteral">"xrpl::Keylet::check : valid input type"</span>);</div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structxrpl_1_1Keylet.html#a3340abd684294dbcc336b7c5d779784f">type</a> == <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367a40dbaec76072f791687cbbe24c630ccc">ltANY</a>)</div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structxrpl_1_1Keylet.html#a3340abd684294dbcc336b7c5d779784f">type</a> == <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367ab5936e96f2148b76bcd9e190dfe4f049">ltCHILD</a>)</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() != ltDIR_NODE;</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() == <a class="code hl_variable" href="structxrpl_1_1Keylet.html#a3340abd684294dbcc336b7c5d779784f">type</a> && sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a3f14481bebd93cf8d9f06629c2c271e2">key</a>() == <a class="code hl_variable" href="structxrpl_1_1Keylet.html#a03cc2a78d194c2eb48ae173f0db3b22c">key</a>;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>}</div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> XRPL_ASSERT(sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() != <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367a40dbaec76072f791687cbbe24c630ccc">ltANY</a> || sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() != <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367ab5936e96f2148b76bcd9e190dfe4f049">ltCHILD</a>, <span class="stringliteral">"xrpl::Keylet::check : valid input type"</span>);</div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structxrpl_1_1Keylet.html#a3340abd684294dbcc336b7c5d779784f">type</a> == <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367a40dbaec76072f791687cbbe24c630ccc">ltANY</a>)</div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structxrpl_1_1Keylet.html#a3340abd684294dbcc336b7c5d779784f">type</a> == <a class="code hl_enumvalue" href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367ab5936e96f2148b76bcd9e190dfe4f049">ltCHILD</a>)</div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() != ltDIR_NODE;</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">getType</a>() == <a class="code hl_variable" href="structxrpl_1_1Keylet.html#a3340abd684294dbcc336b7c5d779784f">type</a> && sle.<a class="code hl_function" href="classxrpl_1_1STLedgerEntry.html#a3f14481bebd93cf8d9f06629c2c271e2">key</a>() == <a class="code hl_variable" href="structxrpl_1_1Keylet.html#a03cc2a78d194c2eb48ae173f0db3b22c">key</a>;</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span>} <span class="comment">// namespace xrpl</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>} <span class="comment">// namespace xrpl</span></div>
|
||||
<div class="ttc" id="aclassxrpl_1_1STLedgerEntry_html"><div class="ttname"><a href="classxrpl_1_1STLedgerEntry.html">xrpl::STLedgerEntry</a></div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00014">STLedgerEntry.h:15</a></div></div>
|
||||
<div class="ttc" id="aclassxrpl_1_1STLedgerEntry_html_a3f14481bebd93cf8d9f06629c2c271e2"><div class="ttname"><a href="classxrpl_1_1STLedgerEntry.html#a3f14481bebd93cf8d9f06629c2c271e2">xrpl::STLedgerEntry::key</a></div><div class="ttdeci">uint256 const & key() const</div><div class="ttdoc">Returns the 'key' (or 'index') of this item.</div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00100">STLedgerEntry.h:100</a></div></div>
|
||||
<div class="ttc" id="aclassxrpl_1_1STLedgerEntry_html_a9e450ae71218766e586f1e88c96bd772"><div class="ttname"><a href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">xrpl::STLedgerEntry::getType</a></div><div class="ttdeci">LedgerEntryType getType() const</div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00106">STLedgerEntry.h:106</a></div></div>
|
||||
<div class="ttc" id="aclassxrpl_1_1STLedgerEntry_html_a3f14481bebd93cf8d9f06629c2c271e2"><div class="ttname"><a href="classxrpl_1_1STLedgerEntry.html#a3f14481bebd93cf8d9f06629c2c271e2">xrpl::STLedgerEntry::key</a></div><div class="ttdeci">uint256 const & key() const</div><div class="ttdoc">Returns the 'key' (or 'index') of this item.</div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00094">STLedgerEntry.h:94</a></div></div>
|
||||
<div class="ttc" id="aclassxrpl_1_1STLedgerEntry_html_a9e450ae71218766e586f1e88c96bd772"><div class="ttname"><a href="classxrpl_1_1STLedgerEntry.html#a9e450ae71218766e586f1e88c96bd772">xrpl::STLedgerEntry::getType</a></div><div class="ttdeci">LedgerEntryType getType() const</div><div class="ttdef"><b>Definition</b> <a href="STLedgerEntry_8h_source.html#l00100">STLedgerEntry.h:100</a></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_ad63abb872188c86948b8ba1b51c10367a40dbaec76072f791687cbbe24c630ccc"><div class="ttname"><a href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367a40dbaec76072f791687cbbe24c630ccc">xrpl::ltANY</a></div><div class="ttdeci">@ ltANY</div><div class="ttdoc">A special type, matching any ledger entry type.</div><div class="ttdef"><b>Definition</b> <a href="LedgerFormats_8h_source.html#l00059">LedgerFormats.h:59</a></div></div>
|
||||
<div class="ttc" id="anamespacexrpl_html_ad63abb872188c86948b8ba1b51c10367ab5936e96f2148b76bcd9e190dfe4f049"><div class="ttname"><a href="namespacexrpl.html#ad63abb872188c86948b8ba1b51c10367ab5936e96f2148b76bcd9e190dfe4f049">xrpl::ltCHILD</a></div><div class="ttdeci">@ ltCHILD</div><div class="ttdoc">A special type, matching any ledger type except directory nodes.</div><div class="ttdef"><b>Definition</b> <a href="LedgerFormats_8h_source.html#l00072">LedgerFormats.h:72</a></div></div>
|
||||
|
||||
Reference in New Issue
Block a user