-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=9"/> | ||
<title>xtd: xtd.core/include/xtd/internal/__as_enum.h File Reference</title> | ||
<link href="favicon.png" rel="shortcut icon" type="image/png"/> | ||
<link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="jquery.js"></script> | ||
<script type="text/javascript" src="dynsections.js"></script> | ||
<link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="search/searchdata.js"></script> | ||
<script type="text/javascript" src="search/search.js"></script> | ||
<link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/> | ||
<link href="custom_images.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script> | ||
<script type="text/javascript"> DoxygenAwesomeDarkModeToggle.init() </script> | ||
</head> | ||
<body> | ||
<div id="page_container"> | ||
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
<div id="titlearea"> | ||
<table cellspacing="0" cellpadding="0" style="width: 100%;"> | ||
<tbody> | ||
<tr> | ||
<td id="projectlogo"> | ||
<a href="https://gammasoft71.github.io/xtd/" target="_new"> | ||
<img alt="Logo" src="xtd_doxygen.png"/> | ||
</a> | ||
</td> | ||
<td id="projectalign" style="padding-left: 0.5em; text-align: right;"> | ||
<div id="projectname">xtd | ||
<span id="projectnumber">0.2.0</span> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!-- end header part --> | ||
<!-- Generated by Doxygen 1.9.7 --> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
var searchBox = new SearchBox("searchBox", "search/",'.html'); | ||
/* @license-end */ | ||
</script> | ||
<script type="text/javascript" src="menudata.js"></script> | ||
<script type="text/javascript" src="menu.js"></script> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
$(function() { | ||
initMenu('',true,false,'search.php','Search'); | ||
$(document).ready(function() { init_search(); }); | ||
}); | ||
/* @license-end */ | ||
</script> | ||
<div id="main-nav"></div> | ||
<!-- window showing the filter options --> | ||
<div id="MSearchSelectWindow" | ||
onmouseover="return searchBox.OnSearchSelectShow()" | ||
onmouseout="return searchBox.OnSearchSelectHide()" | ||
onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
</div> | ||
|
||
<!-- iframe showing the search results (closed by default) --> | ||
<div id="MSearchResultsWindow"> | ||
<div id="MSearchResults"> | ||
<div class="SRPage"> | ||
<div id="SRIndex"> | ||
<div id="SRResults"></div> | ||
<div class="SRStatus" id="Loading">Loading...</div> | ||
<div class="SRStatus" id="Searching">Searching...</div> | ||
<div class="SRStatus" id="NoMatches">No Matches</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="nav-path" class="navpath"> | ||
<ul> | ||
<li class="navelem"><a class="el" href="dir_dc97fa897e7997e4ee808021e868856c.html">xtd.core</a></li><li class="navelem"><a class="el" href="dir_cd4d13b1160eb35a323b5c83cf3e9e5e.html">include</a></li><li class="navelem"><a class="el" href="dir_8bddd848f68e3e28b5aa5e234df2e4b1.html">xtd</a></li><li class="navelem"><a class="el" href="dir_618e153bd4f02720ed2e807a9fe886a0.html">internal</a></li> </ul> | ||
</div> | ||
</div><!-- top --> | ||
<div class="header"> | ||
<div class="headertitle"><div class="title">__as_enum.h File Reference</div></div> | ||
</div><!--header--> | ||
<div class="contents"> | ||
<div class="textblock"><code>#include "<a class="el" href="convert__pointer_8h_source.html">../convert_pointer.h</a>"</code><br /> | ||
</div><a name="details" id="details"></a><h2 class="groupheader">Definition</h2> | ||
<div class="textblock"><p>Contains <b>as_enum</b> struct. </p> | ||
</div> | ||
<p><a href="____as__enum_8h_source.html">Go to the source code of this file.</a></p> | ||
</div><!-- contents --> | ||
<!-- HTML footer for doxygen 1.9.1--> | ||
<!-- start footer part --> | ||
<hr class="footer"/><address class="footer"><small> | ||
Generated on Sun Jun 23 2024 22:28:54 for xtd by <a href="https://gammasoft71.wixsite.com/gammasoft">Gammasoft</a>. All rights reserved. | ||
</small></address> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=9"/> | ||
<title>xtd: xtd.core/include/xtd/internal/__as_enum.h Source File</title> | ||
<link href="favicon.png" rel="shortcut icon" type="image/png"/> | ||
<link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="jquery.js"></script> | ||
<script type="text/javascript" src="dynsections.js"></script> | ||
<link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="search/searchdata.js"></script> | ||
<script type="text/javascript" src="search/search.js"></script> | ||
<link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/> | ||
<link href="custom_images.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script> | ||
<script type="text/javascript"> DoxygenAwesomeDarkModeToggle.init() </script> | ||
</head> | ||
<body> | ||
<div id="page_container"> | ||
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
<div id="titlearea"> | ||
<table cellspacing="0" cellpadding="0" style="width: 100%;"> | ||
<tbody> | ||
<tr> | ||
<td id="projectlogo"> | ||
<a href="https://gammasoft71.github.io/xtd/" target="_new"> | ||
<img alt="Logo" src="xtd_doxygen.png"/> | ||
</a> | ||
</td> | ||
<td id="projectalign" style="padding-left: 0.5em; text-align: right;"> | ||
<div id="projectname">xtd | ||
<span id="projectnumber">0.2.0</span> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!-- end header part --> | ||
<!-- Generated by Doxygen 1.9.7 --> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
var searchBox = new SearchBox("searchBox", "search/",'.html'); | ||
/* @license-end */ | ||
</script> | ||
<script type="text/javascript" src="menudata.js"></script> | ||
<script type="text/javascript" src="menu.js"></script> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
$(function() { | ||
initMenu('',true,false,'search.php','Search'); | ||
$(document).ready(function() { init_search(); }); | ||
}); | ||
/* @license-end */ | ||
</script> | ||
<div id="main-nav"></div> | ||
<!-- window showing the filter options --> | ||
<div id="MSearchSelectWindow" | ||
onmouseover="return searchBox.OnSearchSelectShow()" | ||
onmouseout="return searchBox.OnSearchSelectHide()" | ||
onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
</div> | ||
|
||
<!-- iframe showing the search results (closed by default) --> | ||
<div id="MSearchResultsWindow"> | ||
<div id="MSearchResults"> | ||
<div class="SRPage"> | ||
<div id="SRIndex"> | ||
<div id="SRResults"></div> | ||
<div class="SRStatus" id="Loading">Loading...</div> | ||
<div class="SRStatus" id="Searching">Searching...</div> | ||
<div class="SRStatus" id="NoMatches">No Matches</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="nav-path" class="navpath"> | ||
<ul> | ||
<li class="navelem"><a class="el" href="dir_dc97fa897e7997e4ee808021e868856c.html">xtd.core</a></li><li class="navelem"><a class="el" href="dir_cd4d13b1160eb35a323b5c83cf3e9e5e.html">include</a></li><li class="navelem"><a class="el" href="dir_8bddd848f68e3e28b5aa5e234df2e4b1.html">xtd</a></li><li class="navelem"><a class="el" href="dir_618e153bd4f02720ed2e807a9fe886a0.html">internal</a></li> </ul> | ||
</div> | ||
</div><!-- top --> | ||
<div class="header"> | ||
<div class="headertitle"><div class="title">__as_enum.h</div></div> | ||
</div><!--header--> | ||
<div class="contents"> | ||
<a href="____as__enum_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div> | ||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#pragma once</span></div> | ||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#if !defined(__XTD_CORE_INTERNAL__)</span></div> | ||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#error "Do not include this file: Internal use only"</span></div> | ||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#endif</span></div> | ||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div> | ||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include "../convert_pointer.h"</span></div> | ||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div> | ||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">template</span><<span class="keyword">typename</span> new_type_t, <span class="keyword">typename</span> current_type_t, <span class="keyword">typename</span> <span class="keywordtype">bool</span>_t></div> | ||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">struct </span>__as_enum__ {};</div> | ||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div> | ||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">template</span><<span class="keyword">typename</span> new_type_t, <span class="keyword">typename</span> current_type_t></div> | ||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">struct </span>__as_enum__<new_type_t, current_type_t, std::true_type> {</div> | ||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">const</span> new_type_t& convert(<span class="keyword">const</span> current_type_t& value) {</div> | ||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> __result__ = <span class="keyword">static_cast<</span>new_type_t<span class="keyword">></span>(value);</div> | ||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordflow">return</span> __result__;</div> | ||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> }</div> | ||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> new_type_t& convert(current_type_t& value) {</div> | ||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> __result__ = <span class="keyword">static_cast<</span>new_type_t<span class="keyword">></span>(value);</div> | ||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">return</span> __result__;</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">thread_local</span> <span class="keyword">inline</span> <span class="keyword">static</span> new_type_t __result__ {};</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><<span class="keyword">typename</span> new_type_t, <span class="keyword">typename</span> current_type_t></div> | ||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">struct </span>__as_enum__<new_type_t, current_type_t, std::false_type> {</div> | ||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">const</span> new_type_t& convert(<span class="keyword">const</span> current_type_t& value) {</div> | ||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">return</span> xtd::convert_pointer::to_ref<new_type_t>(value);</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> new_type_t& convert(current_type_t& value) {</div> | ||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordflow">return</span> xtd::convert_pointer::to_ref<new_type_t>(value);</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>};</div> | ||
</div><!-- fragment --></div><!-- contents --> | ||
<!-- HTML footer for doxygen 1.9.1--> | ||
<!-- start footer part --> | ||
<hr class="footer"/><address class="footer"><small> | ||
Generated on Sun Jun 23 2024 22:28:52 for xtd by <a href="https://gammasoft71.wixsite.com/gammasoft">Gammasoft</a>. All rights reserved. | ||
</small></address> | ||
</body> | ||
</html> |