Skip to content

Commit 48bc83e

Browse files
committed
Tests for Placeholder, fixes for stream API
1 parent cc0d8e6 commit 48bc83e

File tree

129 files changed

+842
-546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+842
-546
lines changed

Doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ MARKDOWN_SUPPORT = YES
310310
# Minimum value: 0, maximum value: 99, default value: 0.
311311
# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
312312

313-
TOC_INCLUDE_HEADINGS = 0
313+
TOC_INCLUDE_HEADINGS = 3
314314

315315
# When enabled doxygen tries to link words that correspond to documented
316316
# classes, or namespaces to their corresponding documentation. Such a link can

doc/html/_end_stream_iterator_8h_source.html

+11-14
Large diffs are not rendered by default.

doc/html/_op_stream_iterator_8h_source.html

+5-6
Large diffs are not rendered by default.

doc/html/_placeholder_8h_source.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
<div class="title">Placeholder.h</div> </div>
6868
</div><!--header-->
6969
<div class="contents">
70-
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacescl.html">scl</a>{</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160; <span class="keyword">namespace </span>utils{</div><div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="structscl_1_1utils_1_1_placeholder.html"> 8</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a> final{</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>(<span class="keyword">const</span> <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>(<a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp; operator=(<a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; ~<a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structscl_1_1utils_1_1_placeholder.html#aedab31308f8432c77e0398c929660d26"> 21</a></span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html#aedab31308f8432c77e0398c929660d26">Placeholder</a>(T&amp;&amp;){}</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structscl_1_1utils_1_1_placeholder.html#a8854a9cf830ec235360b8bc6795cdadf"> 29</a></span>&#160; constexpr <span class="keyword">const</span> <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp; <a class="code" href="structscl_1_1utils_1_1_placeholder.html#a8854a9cf830ec235360b8bc6795cdadf">operator=</a>(T&amp;&amp;)<span class="keyword"> const</span>{ <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; };</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"> 32</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">namespace </span>placeholder{</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">scl::utils::Placeholder</a> _ = {};</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;}</div><div class="ttc" id="structscl_1_1utils_1_1_placeholder_html_a8854a9cf830ec235360b8bc6795cdadf"><div class="ttname"><a href="structscl_1_1utils_1_1_placeholder.html#a8854a9cf830ec235360b8bc6795cdadf">scl::utils::Placeholder::operator=</a></div><div class="ttdeci">constexpr const Placeholder &amp; operator=(T &amp;&amp;) const</div><div class="ttdoc">Assign to a placeholder. </div><div class="ttdef"><b>Definition:</b> <a href="_placeholder_8h_source.html#l00029">Placeholder.h:29</a></div></div>
71-
<div class="ttc" id="structscl_1_1utils_1_1_placeholder_html"><div class="ttname"><a href="structscl_1_1utils_1_1_placeholder.html">scl::utils::Placeholder</a></div><div class="ttdoc">Class representing parameter/return argument placholders. </div><div class="ttdef"><b>Definition:</b> <a href="_placeholder_8h_source.html#l00008">Placeholder.h:8</a></div></div>
72-
<div class="ttc" id="structscl_1_1utils_1_1_placeholder_html_aedab31308f8432c77e0398c929660d26"><div class="ttname"><a href="structscl_1_1utils_1_1_placeholder.html#aedab31308f8432c77e0398c929660d26">scl::utils::Placeholder::Placeholder</a></div><div class="ttdeci">constexpr Placeholder(T &amp;&amp;)</div><div class="ttdoc">Construct a placeholder from any kind of data. </div><div class="ttdef"><b>Definition:</b> <a href="_placeholder_8h_source.html#l00021">Placeholder.h:21</a></div></div>
70+
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacescl.html">scl</a>{</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160; <span class="keyword">namespace </span>utils{</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="structscl_1_1utils_1_1_placeholder.html"> 9</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a> final{</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>(<span class="keyword">const</span> <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>(<a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp; operator=(<a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; ~<a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structscl_1_1utils_1_1_placeholder.html#aedab31308f8432c77e0398c929660d26"> 22</a></span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html#aedab31308f8432c77e0398c929660d26">Placeholder</a>(T&amp;&amp;){}</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structscl_1_1utils_1_1_placeholder.html#a8854a9cf830ec235360b8bc6795cdadf"> 30</a></span>&#160; constexpr <span class="keyword">const</span> <a class="code" href="structscl_1_1utils_1_1_placeholder.html">Placeholder</a>&amp; <a class="code" href="structscl_1_1utils_1_1_placeholder.html#a8854a9cf830ec235360b8bc6795cdadf">operator=</a>(T&amp;&amp;)<span class="keyword"> const</span>{ <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</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"> 32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">namespace </span>placeholder{</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; constexpr <a class="code" href="structscl_1_1utils_1_1_placeholder.html">scl::utils::Placeholder</a> _ = {};</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;}</div><div class="ttc" id="structscl_1_1utils_1_1_placeholder_html_a8854a9cf830ec235360b8bc6795cdadf"><div class="ttname"><a href="structscl_1_1utils_1_1_placeholder.html#a8854a9cf830ec235360b8bc6795cdadf">scl::utils::Placeholder::operator=</a></div><div class="ttdeci">constexpr const Placeholder &amp; operator=(T &amp;&amp;) const</div><div class="ttdoc">Assign to a placeholder. </div><div class="ttdef"><b>Definition:</b> <a href="_placeholder_8h_source.html#l00030">Placeholder.h:30</a></div></div>
71+
<div class="ttc" id="structscl_1_1utils_1_1_placeholder_html"><div class="ttname"><a href="structscl_1_1utils_1_1_placeholder.html">scl::utils::Placeholder</a></div><div class="ttdoc">Class representing parameter/return argument placholders. </div><div class="ttdef"><b>Definition:</b> <a href="_placeholder_8h_source.html#l00009">Placeholder.h:9</a></div></div>
72+
<div class="ttc" id="structscl_1_1utils_1_1_placeholder_html_aedab31308f8432c77e0398c929660d26"><div class="ttname"><a href="structscl_1_1utils_1_1_placeholder.html#aedab31308f8432c77e0398c929660d26">scl::utils::Placeholder::Placeholder</a></div><div class="ttdeci">constexpr Placeholder(T &amp;&amp;)</div><div class="ttdoc">Construct a placeholder from any kind of data. </div><div class="ttdef"><b>Definition:</b> <a href="_placeholder_8h_source.html#l00022">Placeholder.h:22</a></div></div>
7373
<div class="ttc" id="namespacescl_html"><div class="ttname"><a href="namespacescl.html">scl</a></div><div class="ttdoc">Global namespace of the SCL. </div><div class="ttdef"><b>Definition:</b> <a href="_assignable_with_8h_source.html#l00006">AssignableWith.h:6</a></div></div>
7474
</div><!-- fragment --></div><!-- contents -->
7575
<!-- start footer part -->

doc/html/_stl_adapter_8h_source.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<div class="ttc" id="namespacescl_html"><div class="ttname"><a href="namespacescl.html">scl</a></div><div class="ttdoc">Global namespace of the SCL. </div><div class="ttdef"><b>Definition:</b> <a href="_assignable_with_8h_source.html#l00006">AssignableWith.h:6</a></div></div>
7373
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter_html_ab8f8d3d4c73251653e0943e2db4482ec"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter.html#ab8f8d3d4c73251653e0943e2db4482ec">scl::stream::details::iterator::StlAdapter::operator*</a></div><div class="ttdeci">payload_type operator*() const</div><div class="ttdoc">Dereference operator. </div><div class="ttdef"><b>Definition:</b> <a href="_stl_adapter_8h_source.html#l00153">StlAdapter.h:153</a></div></div>
7474
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter_html_a4b2b7399e74f7bf5ce46a534d0d4ce9f"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter.html#a4b2b7399e74f7bf5ce46a534d0d4ce9f">scl::stream::details::iterator::StlAdapter::operator++</a></div><div class="ttdeci">StlAdapter &amp; operator++()</div><div class="ttdoc">Pre-increment operator. </div><div class="ttdef"><b>Definition:</b> <a href="_stl_adapter_8h_source.html#l00099">StlAdapter.h:99</a></div></div>
75-
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stream_iterator_html_a31849e6fc1cd956273765a6e58caf48d"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stream_iterator.html#a31849e6fc1cd956273765a6e58caf48d">scl::stream::details::iterator::StreamIterator::payload_type</a></div><div class="ttdeci">StreamIteratorPayload&lt; T &gt; payload_type</div><div class="ttdoc">Type alias for the payload used. </div><div class="ttdef"><b>Definition:</b> <a href="_stream_iterator_8h_source.html#l00026">StreamIterator.h:26</a></div></div>
75+
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stream_iterator_html_a31849e6fc1cd956273765a6e58caf48d"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stream_iterator.html#a31849e6fc1cd956273765a6e58caf48d">scl::stream::details::iterator::StreamIterator::payload_type</a></div><div class="ttdeci">StreamIteratorPayload&lt; T &gt; payload_type</div><div class="ttdoc">Type alias for the payload used. </div><div class="ttdef"><b>Definition:</b> <a href="_stream_iterator_8h_source.html#l00027">StreamIterator.h:27</a></div></div>
7676
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter_html"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter.html">scl::stream::details::iterator::StlAdapter</a></div><div class="ttdoc">An adapter for STL-like iterators from stream iterators. </div><div class="ttdef"><b>Definition:</b> <a href="_stl_adapter_8h_source.html#l00017">StlAdapter.h:17</a></div></div>
7777
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter_html_ada63efad6151acb630adaeacbaeb8d9d"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter.html#ada63efad6151acb630adaeacbaeb8d9d">scl::stream::details::iterator::StlAdapter::payload</a></div><div class="ttdeci">payload_type payload</div><div class="ttdoc">The current payload. </div><div class="ttdef"><b>Definition:</b> <a href="_stl_adapter_8h_source.html#l00076">StlAdapter.h:76</a></div></div>
7878
<div class="ttc" id="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter_html_a85c3e86d47917e938e1876523a285d9f"><div class="ttname"><a href="classscl_1_1stream_1_1details_1_1iterator_1_1_stl_adapter.html#a85c3e86d47917e938e1876523a285d9f">scl::stream::details::iterator::StlAdapter::value_type</a></div><div class="ttdeci">payload_type value_type</div><div class="ttdoc">The type of value provided by the iterators. </div><div class="ttdef"><b>Definition:</b> <a href="_stl_adapter_8h_source.html#l00042">StlAdapter.h:42</a></div></div>

0 commit comments

Comments
 (0)