This commit is contained in:
rozmansi
2023-07-14 12:52:35 +00:00
parent b46be9f0e8
commit 87ee8b067c
281 changed files with 3167 additions and 2816 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.6"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>stdex: include/stdex/mapping.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
@@ -30,7 +30,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
@@ -94,22 +94,30 @@ $(function() {
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> T from; <span class="comment">// index in source string</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> T to; <span class="comment">// index in destination string</span></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="keyword">inline</span> <a class="code hl_struct" href="structstdex_1_1mapping.html">mapping</a>() : from(0), to(0) {}</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">inline</span> <a class="code hl_struct" href="structstdex_1_1mapping.html">mapping</a>(_In_ T x) : from(x), to(x) {}</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">inline</span> <a class="code hl_struct" href="structstdex_1_1mapping.html">mapping</a>(_In_ T _from, _In_ T _to) : from(_from), to(_to) {}</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="keyword">friend</span> <span class="keywordtype">bool</span> operator ==(_In_ <a class="code hl_struct" href="structstdex_1_1mapping.html">stdex::mapping&lt;T&gt;</a> <span class="keyword">const</span>&amp; a, _In_ <a class="code hl_struct" href="structstdex_1_1mapping.html">stdex::mapping&lt;T&gt;</a> <span class="keyword">const</span>&amp; b) <span class="keyword">noexcept</span> { <span class="keywordflow">return</span> a.from == b.from &amp;&amp; a.to == b.to; }</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> operator !=(_In_ <a class="code hl_struct" href="structstdex_1_1mapping.html">stdex::mapping&lt;T&gt;</a> <span class="keyword">const</span>&amp; a, _In_ <a class="code hl_struct" href="structstdex_1_1mapping.html">stdex::mapping&lt;T&gt;</a> <span class="keyword">const</span>&amp; b) <span class="keyword">noexcept</span> { <span class="keywordflow">return</span> !(a == b); }</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> };</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> _Alloc = std::allocator&lt;mapping&lt;T&gt;&gt;&gt;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">using </span>mapping_vector = std::vector&lt;mapping&lt;T&gt;, _Alloc&gt;;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span>}</div>
<div class="ttc" id="astructstdex_1_1mapping_html"><div class="ttname"><a href="structstdex_1_1mapping.html">stdex::mapping</a></div><div class="ttdoc">Maps index in source string to index in destination string.</div><div class="ttdef"><b>Definition:</b> mapping.hpp:17</div></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structstdex_1_1mapping.html#a9634b5ef182398e24b61c2ca78cc8e46"> 24</a></span> <span class="keyword">inline</span> <a class="code hl_function" href="structstdex_1_1mapping.html#a9634b5ef182398e24b61c2ca78cc8e46">mapping</a>() : from(0), to(0) {}</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structstdex_1_1mapping.html#a48069d4eb38c276e856d650075f6c3bd"> 31</a></span> <span class="keyword">inline</span> <a class="code hl_function" href="structstdex_1_1mapping.html#a48069d4eb38c276e856d650075f6c3bd">mapping</a>(_In_ T x) : from(x), to(x) {}</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structstdex_1_1mapping.html#ae72436dbc2b54e2062822cd7772de830"> 39</a></span> <span class="keyword">inline</span> <a class="code hl_function" href="structstdex_1_1mapping.html#ae72436dbc2b54e2062822cd7772de830">mapping</a>(_In_ T _from, _In_ T _to) : from(_from), to(_to) {}</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structstdex_1_1mapping.html#a6d9fa746849e2ea27f53e40b8b44fb46"> 48</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structstdex_1_1mapping.html#a6d9fa746849e2ea27f53e40b8b44fb46">operator==</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structstdex_1_1mapping.html">mapping</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> from == other.from &amp;&amp; to == other.to; }</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="structstdex_1_1mapping.html#a99e44b5840a155e5ce366d440cbe234b"> 57</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structstdex_1_1mapping.html#a99e44b5840a155e5ce366d440cbe234b">operator!=</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structstdex_1_1mapping.html">mapping</a>&amp; other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !<a class="code hl_function" href="structstdex_1_1mapping.html#a6d9fa746849e2ea27f53e40b8b44fb46">operator==</a>(other); }</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> };</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> _Alloc = std::allocator&lt;mapping&lt;T&gt;&gt;&gt;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">using </span>mapping_vector = std::vector&lt;mapping&lt;T&gt;, _Alloc&gt;;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>}</div>
<div class="ttc" id="astructstdex_1_1mapping_html"><div class="ttname"><a href="structstdex_1_1mapping.html">stdex::mapping</a></div><div class="ttdoc">Maps index in source string to index in destination string.</div><div class="ttdef"><b>Definition</b> mapping.hpp:17</div></div>
<div class="ttc" id="astructstdex_1_1mapping_html_a48069d4eb38c276e856d650075f6c3bd"><div class="ttname"><a href="structstdex_1_1mapping.html#a48069d4eb38c276e856d650075f6c3bd">stdex::mapping::mapping</a></div><div class="ttdeci">mapping(T x)</div><div class="ttdoc">Constructs an id mapping.</div><div class="ttdef"><b>Definition</b> mapping.hpp:31</div></div>
<div class="ttc" id="astructstdex_1_1mapping_html_a6d9fa746849e2ea27f53e40b8b44fb46"><div class="ttname"><a href="structstdex_1_1mapping.html#a6d9fa746849e2ea27f53e40b8b44fb46">stdex::mapping::operator==</a></div><div class="ttdeci">bool operator==(const mapping &amp;other) const</div><div class="ttdoc">Are mappings identical?</div><div class="ttdef"><b>Definition</b> mapping.hpp:48</div></div>
<div class="ttc" id="astructstdex_1_1mapping_html_a9634b5ef182398e24b61c2ca78cc8e46"><div class="ttname"><a href="structstdex_1_1mapping.html#a9634b5ef182398e24b61c2ca78cc8e46">stdex::mapping::mapping</a></div><div class="ttdeci">mapping()</div><div class="ttdoc">Constructs a zero to zero mapping.</div><div class="ttdef"><b>Definition</b> mapping.hpp:24</div></div>
<div class="ttc" id="astructstdex_1_1mapping_html_a99e44b5840a155e5ce366d440cbe234b"><div class="ttname"><a href="structstdex_1_1mapping.html#a99e44b5840a155e5ce366d440cbe234b">stdex::mapping::operator!=</a></div><div class="ttdeci">bool operator!=(const mapping &amp;other) const</div><div class="ttdoc">Are mappings different?</div><div class="ttdef"><b>Definition</b> mapping.hpp:57</div></div>
<div class="ttc" id="astructstdex_1_1mapping_html_ae72436dbc2b54e2062822cd7772de830"><div class="ttname"><a href="structstdex_1_1mapping.html#ae72436dbc2b54e2062822cd7772de830">stdex::mapping::mapping</a></div><div class="ttdeci">mapping(T _from, T _to)</div><div class="ttdoc">Constructs a mapping.</div><div class="ttdef"><b>Definition</b> mapping.hpp:39</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 16 2023 11:38:39 for stdex 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.6
Generated on Fri Jul 14 2023 12:52:33 for stdex 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.7
</small></address>
</body>
</html>