135 lines
11 KiB
HTML
135 lines
11 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>SDL Utility: C:/Users/Robert/source/repos/SDLU/include/Util.hpp Source File</title>
|
|
<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="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.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" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">SDL Utility
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('_util_8hpp_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- 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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Util.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_util_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <cstdint></span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a598a3330b3c21701223ee0ca14316eca"> 10</a></span> <span class="preprocessor">#define PI 3.1415926f</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="_util_8hpp.html#aa4c68e5e049464b06576d7b1a190a9ce"> 12</a></span> <span class="preprocessor">#define IS_NULLPTR( x ) (x == nullptr)</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="_util_8hpp.html#ad78bed6042757c22a0a7415695d83912"> 14</a></span> <span class="preprocessor">#define RETURN_IF_NULLPTR( x, ... ) { if(IS_NULLPTR(x)) return __VA_ARGS__; }</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="_util_8hpp.html#aa5f4e3d7f412af2f887266042b63bb23"> 15</a></span> <span class="preprocessor">#define RETURN_IF_NOT_NULLPTR( x, ... ) { if(!IS_NULLPTR(x)) return __VA_ARGS__; }</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a2944638813a090aa23e62f4da842c3e2"> 17</a></span> <span class="keyword">typedef</span> uint8_t <a class="code" href="_util_8hpp.html#a2944638813a090aa23e62f4da842c3e2">Uint8</a>;</div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a1d6ba23467c5f743eb2b594913650a61"> 18</a></span> <span class="keyword">typedef</span> int8_t <a class="code" href="_util_8hpp.html#a1d6ba23467c5f743eb2b594913650a61">Int8</a>;</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a31fcc0a076c9068668173ee26d33e42b"> 20</a></span> <span class="keyword">typedef</span> uint16_t <a class="code" href="_util_8hpp.html#a31fcc0a076c9068668173ee26d33e42b">Uint16</a>;</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a6d70d2452bc784cc9a499c567e4b5a77"> 21</a></span> <span class="keyword">typedef</span> int16_t <a class="code" href="_util_8hpp.html#a6d70d2452bc784cc9a499c567e4b5a77">Int16</a>;</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="_util_8hpp.html#add440eff171ea5f55cb00c4a9ab8672d"> 23</a></span> <span class="keyword">typedef</span> uint32_t <a class="code" href="_util_8hpp.html#add440eff171ea5f55cb00c4a9ab8672d">Uint32</a>;</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a20b0c262d9ef5d263888e463dfa99638"> 24</a></span> <span class="keyword">typedef</span> int32_t <a class="code" href="_util_8hpp.html#a20b0c262d9ef5d263888e463dfa99638">Int32</a>;</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="_util_8hpp.html#ac006cf2bd55a42a9cc8ae9f123aa7e13"> 26</a></span> <span class="keyword">typedef</span> uint64_t <a class="code" href="_util_8hpp.html#ac006cf2bd55a42a9cc8ae9f123aa7e13">Uint64</a>;</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d"> 27</a></span> <span class="keyword">typedef</span> int64_t <a class="code" href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a>;</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a6f6f72fed1b9e22bc996980c4da87c5f"> 29</a></span> <span class="preprocessor">#define THROW_IF( condition, exception ) ( condition ? throw exception : false)</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="_util_8hpp.html#a8e2f2eee0698641fd77fbc489bf5b72a"> 30</a></span> <span class="preprocessor">#define THROW_IF_NOT( condition, exception ) ( THROW_IF(!condition, exception) )</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="_util_8hpp.html#ad0494d8896dbc587136819e261afdc91"> 32</a></span> <span class="preprocessor">#define SDLU_BEGIN namespace sdlu {</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#define SDLU_END }</span></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a1d6ba23467c5f743eb2b594913650a61"><div class="ttname"><a href="_util_8hpp.html#a1d6ba23467c5f743eb2b594913650a61">Int8</a></div><div class="ttdeci">int8_t Int8</div><div class="ttdef"><b>Definition:</b> Util.hpp:18</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a20b0c262d9ef5d263888e463dfa99638"><div class="ttname"><a href="_util_8hpp.html#a20b0c262d9ef5d263888e463dfa99638">Int32</a></div><div class="ttdeci">int32_t Int32</div><div class="ttdef"><b>Definition:</b> Util.hpp:24</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a2944638813a090aa23e62f4da842c3e2"><div class="ttname"><a href="_util_8hpp.html#a2944638813a090aa23e62f4da842c3e2">Uint8</a></div><div class="ttdeci">uint8_t Uint8</div><div class="ttdef"><b>Definition:</b> Util.hpp:17</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a2de3f49eadcae5078cd57134586ee25d"><div class="ttname"><a href="_util_8hpp.html#a2de3f49eadcae5078cd57134586ee25d">Int64</a></div><div class="ttdeci">int64_t Int64</div><div class="ttdef"><b>Definition:</b> Util.hpp:27</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a31fcc0a076c9068668173ee26d33e42b"><div class="ttname"><a href="_util_8hpp.html#a31fcc0a076c9068668173ee26d33e42b">Uint16</a></div><div class="ttdeci">uint16_t Uint16</div><div class="ttdef"><b>Definition:</b> Util.hpp:20</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_a6d70d2452bc784cc9a499c567e4b5a77"><div class="ttname"><a href="_util_8hpp.html#a6d70d2452bc784cc9a499c567e4b5a77">Int16</a></div><div class="ttdeci">int16_t Int16</div><div class="ttdef"><b>Definition:</b> Util.hpp:21</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_ac006cf2bd55a42a9cc8ae9f123aa7e13"><div class="ttname"><a href="_util_8hpp.html#ac006cf2bd55a42a9cc8ae9f123aa7e13">Uint64</a></div><div class="ttdeci">uint64_t Uint64</div><div class="ttdef"><b>Definition:</b> Util.hpp:26</div></div>
|
|
<div class="ttc" id="a_util_8hpp_html_add440eff171ea5f55cb00c4a9ab8672d"><div class="ttname"><a href="_util_8hpp.html#add440eff171ea5f55cb00c4a9ab8672d">Uint32</a></div><div class="ttdeci">uint32_t Uint32</div><div class="ttdef"><b>Definition:</b> Util.hpp:23</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="_util_8hpp.html">Util.hpp</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|