mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 04:55:52 +00:00
deploy: 2406b28e64
This commit is contained in:
@@ -95,35 +95,37 @@ $(function() {
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">//==============================================================================</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include <xrpl/protocol/Keylet.h></span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include <xrpl/protocol/STLedgerEntry.h></span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#include <xrpl/beast/utility/instrumentation.h></span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include <xrpl/protocol/Keylet.h></span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include <xrpl/protocol/LedgerFormats.h></span></div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <xrpl/protocol/STLedgerEntry.h></span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802"> 26</a></span><a class="code hl_function" href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802">Keylet::check</a>(<a class="code hl_class" href="classripple_1_1STLedgerEntry.html">STLedgerEntry</a> <span class="keyword">const</span>& sle)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword"></span>{</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> XRPL_ASSERT(</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() != <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a> || sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() != <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a822b27579a5bc94b9dea2395852e5bbd">ltCHILD</a>,</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="stringliteral">"ripple::Keylet::check : valid input type"</span>);</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">type</a> == <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a>)</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</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> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">type</a> == <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a822b27579a5bc94b9dea2395852e5bbd">ltCHILD</a>)</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() != ltDIR_NODE;</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() == <a class="code hl_variable" href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">type</a>;</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> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keywordtype">bool</span></div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802"> 28</a></span><a class="code hl_function" href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802">Keylet::check</a>(<a class="code hl_class" href="classripple_1_1STLedgerEntry.html">STLedgerEntry</a> <span class="keyword">const</span>& sle)<span class="keyword"> const</span></div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword"></span>{</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> XRPL_ASSERT(</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() != <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a> || sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() != <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a822b27579a5bc94b9dea2395852e5bbd">ltCHILD</a>,</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="stringliteral">"ripple::Keylet::check : valid input type"</span>);</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">type</a> == <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ltANY</a>)</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</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> <span class="keywordflow">if</span> (<a class="code hl_variable" href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">type</a> == <a class="code hl_enumvalue" href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a822b27579a5bc94b9dea2395852e5bbd">ltCHILD</a>)</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() != ltDIR_NODE;</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> sle.<a class="code hl_function" href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">getType</a>() == <a class="code hl_variable" href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">type</a>;</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>}</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>} <span class="comment">// namespace ripple</span></div>
|
||||
<div class="ttc" id="aclassripple_1_1STLedgerEntry_html"><div class="ttname"><a href="classripple_1_1STLedgerEntry.html">ripple::STLedgerEntry</a></div><div class="ttdef"><b>Definition:</b> <a href="STLedgerEntry_8h_source.html#l00031">STLedgerEntry.h:32</a></div></div>
|
||||
<div class="ttc" id="aclassripple_1_1STLedgerEntry_html_a3c289baf99474db3d44d381e43358723"><div class="ttname"><a href="classripple_1_1STLedgerEntry.html#a3c289baf99474db3d44d381e43358723">ripple::STLedgerEntry::getType</a></div><div class="ttdeci">LedgerEntryType getType() const</div><div class="ttdef"><b>Definition:</b> <a href="STLedgerEntry_8h_source.html#l00120">STLedgerEntry.h:120</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="algorithm_8h_source.html#l00026">algorithm.h:26</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ac151bf19e1f4daae2b04c65c65117139a822b27579a5bc94b9dea2395852e5bbd"><div class="ttname"><a href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a822b27579a5bc94b9dea2395852e5bbd">ripple::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#l00091">LedgerFormats.h:91</a></div></div>
|
||||
<div class="ttc" id="anamespaceripple_html_ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4"><div class="ttname"><a href="namespaceripple.html#ac151bf19e1f4daae2b04c65c65117139a926f3c33237e0c1bb2d4cb8afc0c82b4">ripple::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#l00078">LedgerFormats.h:78</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Keylet_html_a194d83c488eaa909ae4bcf816d8f4cb0"><div class="ttname"><a href="structripple_1_1Keylet.html#a194d83c488eaa909ae4bcf816d8f4cb0">ripple::Keylet::type</a></div><div class="ttdeci">LedgerEntryType type</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8h_source.html#l00041">Keylet.h:41</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Keylet_html_a1e8ccd4a50a894a338c789fc566d8802"><div class="ttname"><a href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802">ripple::Keylet::check</a></div><div class="ttdeci">bool check(STLedgerEntry const &) const</div><div class="ttdoc">Returns true if the SLE matches the type.</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8cpp_source.html#l00026">Keylet.cpp:26</a></div></div>
|
||||
<div class="ttc" id="astructripple_1_1Keylet_html_a1e8ccd4a50a894a338c789fc566d8802"><div class="ttname"><a href="structripple_1_1Keylet.html#a1e8ccd4a50a894a338c789fc566d8802">ripple::Keylet::check</a></div><div class="ttdeci">bool check(STLedgerEntry const &) const</div><div class="ttdoc">Returns true if the SLE matches the type.</div><div class="ttdef"><b>Definition:</b> <a href="Keylet_8cpp_source.html#l00028">Keylet.cpp:28</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
|
||||
Reference in New Issue
Block a user