Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

classtesting_1_1internal_1_1_random.html 11 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: testing::internal::Random Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('classtesting_1_1internal_1_1_random.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="summary">
  88. <a href="#pub-methods">Public Member Functions</a> &#124;
  89. <a href="#pub-static-attribs">Static Public Attributes</a> &#124;
  90. <a href="classtesting_1_1internal_1_1_random-members.html">List of all members</a> </div>
  91. <div class="headertitle">
  92. <div class="title">testing::internal::Random Class Reference</div> </div>
  93. </div><!--header-->
  94. <div class="contents">
  95. <p><code>#include &lt;<a class="el" href="gtest_8h_source.html">gtest.h</a>&gt;</code></p>
  96. <table class="memberdecls">
  97. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  98. Public Member Functions</h2></td></tr>
  99. <tr class="memitem:a6e112be5e7cce00551f6383025f69460"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_random.html#a6e112be5e7cce00551f6383025f69460">Random</a> (<a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a> seed)</td></tr>
  100. <tr class="separator:a6e112be5e7cce00551f6383025f69460"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:adf2f24199318a46f885c78f50d89a69e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_random.html#adf2f24199318a46f885c78f50d89a69e">Reseed</a> (<a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a> seed)</td></tr>
  102. <tr class="separator:adf2f24199318a46f885c78f50d89a69e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a9315b7fb621cbcfdf92ed4b5e584c0db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_random.html#a9315b7fb621cbcfdf92ed4b5e584c0db">Generate</a> (<a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a> range)</td></tr>
  104. <tr class="separator:a9315b7fb621cbcfdf92ed4b5e584c0db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. </table><table class="memberdecls">
  106. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
  107. Static Public Attributes</h2></td></tr>
  108. <tr class="memitem:a36d72dd7063d0b5338f229e75382fdd2"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtesting_1_1internal_1_1_random.html#a36d72dd7063d0b5338f229e75382fdd2">kMaxRange</a> = 1u &lt;&lt; 31</td></tr>
  109. <tr class="separator:a36d72dd7063d0b5338f229e75382fdd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. </table>
  111. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  112. <div class="textblock">
  113. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l07276">7276</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  114. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  115. <a id="a6e112be5e7cce00551f6383025f69460"></a>
  116. <h2 class="memtitle"><span class="permalink"><a href="#a6e112be5e7cce00551f6383025f69460">&#9670;&nbsp;</a></span>Random()</h2>
  117. <div class="memitem">
  118. <div class="memproto">
  119. <table class="mlabels">
  120. <tr>
  121. <td class="mlabels-left">
  122. <table class="memname">
  123. <tr>
  124. <td class="memname">testing::internal::Random::Random </td>
  125. <td>(</td>
  126. <td class="paramtype"><a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a>&#160;</td>
  127. <td class="paramname"><em>seed</em></td><td>)</td>
  128. <td></td>
  129. </tr>
  130. </table>
  131. </td>
  132. <td class="mlabels-right">
  133. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
  134. </tr>
  135. </table>
  136. </div><div class="memdoc">
  137. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l07280">7280</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  138. </div>
  139. </div>
  140. <h2 class="groupheader">Member Function Documentation</h2>
  141. <a id="a9315b7fb621cbcfdf92ed4b5e584c0db"></a>
  142. <h2 class="memtitle"><span class="permalink"><a href="#a9315b7fb621cbcfdf92ed4b5e584c0db">&#9670;&nbsp;</a></span>Generate()</h2>
  143. <div class="memitem">
  144. <div class="memproto">
  145. <table class="memname">
  146. <tr>
  147. <td class="memname"><a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a> testing::internal::Random::Generate </td>
  148. <td>(</td>
  149. <td class="paramtype"><a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a>&#160;</td>
  150. <td class="paramname"><em>range</em></td><td>)</td>
  151. <td></td>
  152. </tr>
  153. </table>
  154. </div><div class="memdoc">
  155. </div>
  156. </div>
  157. <a id="adf2f24199318a46f885c78f50d89a69e"></a>
  158. <h2 class="memtitle"><span class="permalink"><a href="#adf2f24199318a46f885c78f50d89a69e">&#9670;&nbsp;</a></span>Reseed()</h2>
  159. <div class="memitem">
  160. <div class="memproto">
  161. <table class="mlabels">
  162. <tr>
  163. <td class="mlabels-left">
  164. <table class="memname">
  165. <tr>
  166. <td class="memname">void testing::internal::Random::Reseed </td>
  167. <td>(</td>
  168. <td class="paramtype"><a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a>&#160;</td>
  169. <td class="paramname"><em>seed</em></td><td>)</td>
  170. <td></td>
  171. </tr>
  172. </table>
  173. </td>
  174. <td class="mlabels-right">
  175. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  176. </tr>
  177. </table>
  178. </div><div class="memdoc">
  179. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l07282">7282</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  180. </div>
  181. </div>
  182. <h2 class="groupheader">Member Data Documentation</h2>
  183. <a id="a36d72dd7063d0b5338f229e75382fdd2"></a>
  184. <h2 class="memtitle"><span class="permalink"><a href="#a36d72dd7063d0b5338f229e75382fdd2">&#9670;&nbsp;</a></span>kMaxRange</h2>
  185. <div class="memitem">
  186. <div class="memproto">
  187. <table class="mlabels">
  188. <tr>
  189. <td class="mlabels-left">
  190. <table class="memname">
  191. <tr>
  192. <td class="memname">const <a class="el" href="namespacetesting_1_1internal.html#a40d4fffcd2bf56f18b1c380615aa85e3">UInt32</a> testing::internal::Random::kMaxRange = 1u &lt;&lt; 31</td>
  193. </tr>
  194. </table>
  195. </td>
  196. <td class="mlabels-right">
  197. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  198. </tr>
  199. </table>
  200. </div><div class="memdoc">
  201. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l07278">7278</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  202. </div>
  203. </div>
  204. <hr/>The documentation for this class was generated from the following file:<ul>
  205. <li>test/eclipse-cygwin/lib/gtest/<a class="el" href="gtest_8h_source.html">gtest.h</a></li>
  206. </ul>
  207. </div><!-- contents -->
  208. </div><!-- doc-content -->
  209. <!-- start footer part -->
  210. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  211. <ul>
  212. <li class="navelem"><a class="el" href="namespacetesting.html">testing</a></li><li class="navelem"><a class="el" href="namespacetesting_1_1internal.html">internal</a></li><li class="navelem"><a class="el" href="classtesting_1_1internal_1_1_random.html">Random</a></li>
  213. <li class="footer">Generated by
  214. <a href="http://www.doxygen.org/index.html">
  215. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  216. </ul>
  217. </div>
  218. </body>
  219. </html>