This commit is contained in:
bthomee
2025-03-11 18:21:06 +00:00
parent 95e4a9d650
commit 4ba075f689
2527 changed files with 275798 additions and 275583 deletions

View File

@@ -99,36 +99,37 @@ $(function() {
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#define RIPPLE_TEST_JTX_PROP_H_INCLUDED</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="preprocessor">#include &lt;test/jtx/Env.h&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">namespace </span>test {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span>jtx {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> Prop&gt;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html"> 32</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1prop.html">prop</a></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"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5"> 34</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;basic_prop&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">p_</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span>... Args&gt;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html#a5ea987b7781801f49c553a6c6da43758"> 37</a></span> <a class="code hl_function" href="structripple_1_1test_1_1jtx_1_1prop.html#a5ea987b7781801f49c553a6c6da43758">prop</a>(Args&amp;&amp;... args)</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> : <a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">p_</a>(<a class="code hl_namespace" href="namespacestd.html">std</a>::make_unique&lt;<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1prop__type.html">prop_type</a>&lt;Prop&gt;&gt;(<a class="code hl_namespace" href="namespacestd.html">std</a>::<a class="code hl_enumvalue" href="namespaceripple.html#a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8">forward</a>&lt;Args&gt;(args)...))</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> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html#a6c23bfd6c448e2c2d0d5308cb9d6258d"> 43</a></span> <a class="code hl_function" href="structripple_1_1test_1_1jtx_1_1prop.html#a6c23bfd6c448e2c2d0d5308cb9d6258d">operator()</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a>&amp; env, <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="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> jt.<a class="code hl_function" href="structripple_1_1test_1_1jtx_1_1JTx.html#a6aaacfb4ff9d3661b3891d11462b327d">set</a>(<a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">p_</a>-&gt;clone());</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span>};</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span>} <span class="comment">// namespace jtx</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</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#l00116">Env.h:117</a></div></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="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/memory.html">memory</a>&gt;</span></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="keyword">namespace </span><a class="code hl_namespace" href="namespaceripple.html">ripple</a> {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">namespace </span>test {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span>jtx {</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> Prop&gt;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html"> 33</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1prop.html">prop</a></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"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5"> 35</a></span> <a class="code hl_classRef" href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr&lt;basic_prop&gt;</a> <a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">p_</a>;</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="keyword">template</span> &lt;<span class="keyword">class</span>... Args&gt;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html#a5ea987b7781801f49c553a6c6da43758"> 38</a></span> <a class="code hl_function" href="structripple_1_1test_1_1jtx_1_1prop.html#a5ea987b7781801f49c553a6c6da43758">prop</a>(Args&amp;&amp;... args)</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> : <a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">p_</a>(<a class="code hl_namespace" href="namespacestd.html">std</a>::make_unique&lt;<a class="code hl_struct" href="structripple_1_1test_1_1jtx_1_1prop__type.html">prop_type</a>&lt;Prop&gt;&gt;(<a class="code hl_namespace" href="namespacestd.html">std</a>::<a class="code hl_enumvalue" href="namespaceripple.html#a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8">forward</a>&lt;Args&gt;(args)...))</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> }</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="keywordtype">void</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="structripple_1_1test_1_1jtx_1_1prop.html#a6c23bfd6c448e2c2d0d5308cb9d6258d"> 44</a></span> <a class="code hl_function" href="structripple_1_1test_1_1jtx_1_1prop.html#a6c23bfd6c448e2c2d0d5308cb9d6258d">operator()</a>(<a class="code hl_class" href="classripple_1_1test_1_1jtx_1_1Env.html">Env</a>&amp; env, <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="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> jt.<a class="code hl_function" href="structripple_1_1test_1_1jtx_1_1JTx.html#a6aaacfb4ff9d3661b3891d11462b327d">set</a>(<a class="code hl_variable" href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">p_</a>-&gt;clone());</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>};</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>} <span class="comment">// namespace jtx</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>} <span class="comment">// namespace test</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>} <span class="comment">// namespace ripple</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</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#l00117">Env.h:118</a></div></div>
<div class="ttc" id="amemory_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/memory.html">memory</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_a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8"><div class="ttname"><a href="namespaceripple.html#a2fca0f72cfacc04d15ad41d84ebf46fda965dbaac085fc891bfbbd4f9d145bbc8">ripple::StrandDirection::forward</a></div><div class="ttdeci">@ forward</div></div>
@@ -136,10 +137,10 @@ $(function() {
<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#l00043">JTx.h:44</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1JTx_html_a6aaacfb4ff9d3661b3891d11462b327d"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1JTx.html#a6aaacfb4ff9d3661b3891d11462b327d">ripple::test::jtx::JTx::set</a></div><div class="ttdeci">void set(std::unique_ptr&lt; basic_prop &gt; p)</div><div class="ttdoc">Set a property If the property already exists, it is replaced.</div><div class="ttdef"><b>Definition:</b> <a href="JTx_8h_source.html#l00117">JTx.h:117</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop__type_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop__type.html">ripple::test::jtx::prop_type</a></div><div class="ttdef"><b>Definition:</b> <a href="basic__prop_8h_source.html#l00037">basic_prop.h:38</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html">ripple::test::jtx::prop</a></div><div class="ttdoc">Set a property on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00032">prop.h:33</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html_a514b9adb383c31b760c6f152ee4dd3e5"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">ripple::test::jtx::prop::p_</a></div><div class="ttdeci">std::unique_ptr&lt; basic_prop &gt; p_</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00034">prop.h:34</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html_a5ea987b7781801f49c553a6c6da43758"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html#a5ea987b7781801f49c553a6c6da43758">ripple::test::jtx::prop::prop</a></div><div class="ttdeci">prop(Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00037">prop.h:37</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html_a6c23bfd6c448e2c2d0d5308cb9d6258d"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html#a6c23bfd6c448e2c2d0d5308cb9d6258d">ripple::test::jtx::prop::operator()</a></div><div class="ttdeci">void operator()(Env &amp;env, JTx &amp;jt) const</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00043">prop.h:43</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html">ripple::test::jtx::prop</a></div><div class="ttdoc">Set a property on a JTx.</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00033">prop.h:34</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html_a514b9adb383c31b760c6f152ee4dd3e5"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html#a514b9adb383c31b760c6f152ee4dd3e5">ripple::test::jtx::prop::p_</a></div><div class="ttdeci">std::unique_ptr&lt; basic_prop &gt; p_</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00035">prop.h:35</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html_a5ea987b7781801f49c553a6c6da43758"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html#a5ea987b7781801f49c553a6c6da43758">ripple::test::jtx::prop::prop</a></div><div class="ttdeci">prop(Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00038">prop.h:38</a></div></div>
<div class="ttc" id="astructripple_1_1test_1_1jtx_1_1prop_html_a6c23bfd6c448e2c2d0d5308cb9d6258d"><div class="ttname"><a href="structripple_1_1test_1_1jtx_1_1prop.html#a6c23bfd6c448e2c2d0d5308cb9d6258d">ripple::test::jtx::prop::operator()</a></div><div class="ttdeci">void operator()(Env &amp;env, JTx &amp;jt) const</div><div class="ttdef"><b>Definition:</b> <a href="prop_8h_source.html#l00044">prop.h:44</a></div></div>
<div class="ttc" id="aunique_ptr_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/memory/unique_ptr.html">std::unique_ptr</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->