This commit is contained in:
bthomee
2025-08-19 09:49:50 -07:00
parent bb5efdeec8
commit e7f4ae8bed
14888 changed files with 259444 additions and 168566 deletions

View File

@@ -3,7 +3,7 @@
<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.5"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: require.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -29,7 +29,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<!-- 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');
@@ -46,6 +46,11 @@ $(function() {
/* @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()"
@@ -111,17 +116,20 @@ $(function() {
<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="keyword">template</span> &lt;<span class="keyword">class </span>Cond, <span class="keyword">class</span>... Args&gt;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">inline</span> <span class="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="}">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1jtx_1_1detail.html#a7058607f9e8bbdd85c7bcae916b0851b"> 36</a></span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx_1_1detail.html#a7058607f9e8bbdd85c7bcae916b0851b">require_args</a>(<a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">requires_t</a>&amp; vec, Cond <span class="keyword">const</span>&amp; cond, Args <span class="keyword">const</span>&amp;... args)</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> vec.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">push_back</a>(cond);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">if</span> <span class="keyword">constexpr</span> (<span class="keyword">sizeof</span>...(args) &gt; 0)</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <a class="code hl_function" href="namespaceripple_1_1test_1_1jtx_1_1detail.html#a7058607f9e8bbdd85c7bcae916b0851b">require_args</a>(vec, args...);</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> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>} <span class="comment">// namespace detail</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="keyword">template</span> &lt;<span class="keyword">class</span>... Args&gt;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/utility/functional/function.html">require_t</a></div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1jtx.html#a7c64363fc49c3642ae628d349a50f425"> 48</a></span><a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7c64363fc49c3642ae628d349a50f425">required</a>(Args <span class="keyword">const</span>&amp;... args)</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>{</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/container/vector.html">requires_t</a> vec;</div>
@@ -131,7 +139,9 @@ $(function() {
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> f(env);</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>}</div>
</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="foldopen" id="foldopen00064" data-start="{" data-end="};">
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1require.html"> 64</a></span><span class="keyword">class </span><a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1require.html">require</a></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span>{</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keyword">private</span>:</div>
@@ -139,41 +149,46 @@ $(function() {
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span>... Args&gt;</div>
<div class="foldopen" id="foldopen00071" data-start="{" data-end="}">
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1require.html#a2ce59a920ddc43777edda357c3363495"> 71</a></span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1require.html#a2ce59a920ddc43777edda357c3363495">require</a>(Args <span class="keyword">const</span>&amp;... args) : <a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1require.html#a70ec0229194a37cdd26393c0f5be19dc">cond_</a>(<a class="code hl_function" href="namespaceripple_1_1test_1_1jtx.html#a7c64363fc49c3642ae628d349a50f425">required</a>(args...))</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> {</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="keywordtype">void</span></div>
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1jtx_1_1require.html#aa659c331e2c77b577b98fcac1ffbe2a9"> 76</a></span> <a class="code hl_function" href="classripple_1_1test_1_1jtx_1_1require.html#aa659c331e2c77b577b98fcac1ffbe2a9">operator()</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a>&amp;, <a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1JTx.html">JTx</a>&amp; jt)<span class="keyword"> const</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> jt.<a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1JTx.html#aa9c0bbf61f62251670d6fe59379eec49">require</a>.<a class="code hl_functionRef" href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html">emplace_back</a>(<a class="code hl_variable" href="classripple_1_1test_1_1jtx_1_1require.html#a70ec0229194a37cdd26393c0f5be19dc">cond_</a>);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> }</div>
</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span>};</div>
</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="comment">// namespace jtx</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html">ripple::test::jtx::Env</a></div><div class="ttdoc">A transaction testing environment.</div><div class="ttdef"><b>Definition:</b> <a href="Env_8h_source.html#l00120">Env.h:121</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html">ripple::test::jtx::require</a></div><div class="ttdoc">Check a set of conditions.</div><div class="ttdef"><b>Definition:</b> <a href="require_8h_source.html#l00064">require.h:65</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html_a2ce59a920ddc43777edda357c3363495"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html#a2ce59a920ddc43777edda357c3363495">ripple::test::jtx::require::require</a></div><div class="ttdeci">require(Args const &amp;... args)</div><div class="ttdef"><b>Definition:</b> <a href="require_8h_source.html#l00071">require.h:71</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html_a70ec0229194a37cdd26393c0f5be19dc"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html#a70ec0229194a37cdd26393c0f5be19dc">ripple::test::jtx::require::cond_</a></div><div class="ttdeci">require_t cond_</div><div class="ttdef"><b>Definition:</b> <a href="require_8h_source.html#l00067">require.h:67</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html_aa659c331e2c77b577b98fcac1ffbe2a9"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html#aa659c331e2c77b577b98fcac1ffbe2a9">ripple::test::jtx::require::operator()</a></div><div class="ttdeci">void operator()(Env &amp;, JTx &amp;jt) const</div><div class="ttdef"><b>Definition:</b> <a href="require_8h_source.html#l00076">require.h:76</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1Env_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1Env.html">ripple::test::jtx::Env</a></div><div class="ttdoc">A transaction testing environment.</div><div class="ttdef"><b>Definition</b> <a href="Env_8h_source.html#l00120">Env.h:121</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html">ripple::test::jtx::require</a></div><div class="ttdoc">Check a set of conditions.</div><div class="ttdef"><b>Definition</b> <a href="require_8h_source.html#l00064">require.h:65</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html_a2ce59a920ddc43777edda357c3363495"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html#a2ce59a920ddc43777edda357c3363495">ripple::test::jtx::require::require</a></div><div class="ttdeci">require(Args const &amp;... args)</div><div class="ttdef"><b>Definition</b> <a href="require_8h_source.html#l00071">require.h:71</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html_a70ec0229194a37cdd26393c0f5be19dc"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html#a70ec0229194a37cdd26393c0f5be19dc">ripple::test::jtx::require::cond_</a></div><div class="ttdeci">require_t cond_</div><div class="ttdef"><b>Definition</b> <a href="require_8h_source.html#l00067">require.h:67</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1jtx_1_1require_html_aa659c331e2c77b577b98fcac1ffbe2a9"><div class="ttname"><a href="classripple_1_1test_1_1jtx_1_1require.html#aa659c331e2c77b577b98fcac1ffbe2a9">ripple::test::jtx::require::operator()</a></div><div class="ttdeci">void operator()(Env &amp;, JTx &amp;jt) const</div><div class="ttdef"><b>Definition</b> <a href="require_8h_source.html#l00076">require.h:76</a></div></div>
<div class="ttc" id="aemplace_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/emplace_back.html">std::vector::emplace_back</a></div><div class="ttdeci">T emplace_back(T... args)</div></div>
<div class="ttc" id="afunction_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/functional/function.html">std::function</a></div></div>
<div class="ttc" id="afunctional_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/functional.html">functional</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_1_1detail_html_a7058607f9e8bbdd85c7bcae916b0851b"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx_1_1detail.html#a7058607f9e8bbdd85c7bcae916b0851b">ripple::test::jtx::detail::require_args</a></div><div class="ttdeci">void require_args(requires_t &amp;vec, Cond const &amp;cond, Args const &amp;... args)</div><div class="ttdef"><b>Definition:</b> <a href="require_8h_source.html#l00036">require.h:36</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a7c64363fc49c3642ae628d349a50f425"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a7c64363fc49c3642ae628d349a50f425">ripple::test::jtx::required</a></div><div class="ttdeci">require_t required(Args const &amp;... args)</div><div class="ttdoc">Compose many condition functors into one.</div><div class="ttdef"><b>Definition:</b> <a href="require_8h_source.html#l00048">require.h:48</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#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_1_1detail_html_a7058607f9e8bbdd85c7bcae916b0851b"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx_1_1detail.html#a7058607f9e8bbdd85c7bcae916b0851b">ripple::test::jtx::detail::require_args</a></div><div class="ttdeci">void require_args(requires_t &amp;vec, Cond const &amp;cond, Args const &amp;... args)</div><div class="ttdef"><b>Definition</b> <a href="require_8h_source.html#l00036">require.h:36</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1jtx_html_a7c64363fc49c3642ae628d349a50f425"><div class="ttname"><a href="namespaceripple_1_1test_1_1jtx.html#a7c64363fc49c3642ae628d349a50f425">ripple::test::jtx::required</a></div><div class="ttdeci">require_t required(Args const &amp;... args)</div><div class="ttdoc">Compose many condition functors into one.</div><div class="ttdef"><b>Definition</b> <a href="require_8h_source.html#l00048">require.h:48</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#l00025">algorithm.h:25</a></div></div>
<div class="ttc" id="apush_back_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/push_back.html">std::vector::push_back</a></div><div class="ttdeci">T push_back(T... args)</div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1JTx_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1JTx.html">ripple::test::jtx::JTx</a></div><div class="ttdoc">Execution context for applying a JSON transaction.</div><div class="ttdef"><b>Definition:</b> <a href="JTx_8h_source.html#l00044">JTx.h:45</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1JTx_html_aa9c0bbf61f62251670d6fe59379eec49"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1JTx.html#aa9c0bbf61f62251670d6fe59379eec49">ripple::test::jtx::JTx::require</a></div><div class="ttdeci">requires_t require</div><div class="ttdef"><b>Definition:</b> <a href="JTx_8h_source.html#l00047">JTx.h:47</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1JTx_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1JTx.html">ripple::test::jtx::JTx</a></div><div class="ttdoc">Execution context for applying a JSON transaction.</div><div class="ttdef"><b>Definition</b> <a href="JTx_8h_source.html#l00044">JTx.h:45</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1JTx_html_aa9c0bbf61f62251670d6fe59379eec49"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1JTx.html#aa9c0bbf61f62251670d6fe59379eec49">ripple::test::jtx::JTx::require</a></div><div class="ttdeci">requires_t require</div><div class="ttdef"><b>Definition</b> <a href="JTx_8h_source.html#l00047">JTx.h:47</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/vector.html">vector</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.5
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>