Skip to content

Commit

Permalink
deploy: be6b01c
Browse files Browse the repository at this point in the history
  • Loading branch information
cieslarmichal committed Jun 27, 2024
1 parent 59c3c8a commit a0505de
Show file tree
Hide file tree
Showing 60 changed files with 1,268 additions and 1,596 deletions.
282 changes: 141 additions & 141 deletions Helper_8h_source.html

Large diffs are not rendered by default.

30 changes: 0 additions & 30 deletions Number_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@
</div>

<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">Number.h File Reference</div></div>
</div><!--header-->
<div class="contents">
Expand Down Expand Up @@ -136,33 +133,6 @@
</div>
</div>
<p><a href="Number_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacefaker.html">faker</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacefaker_1_1number.html">faker::number</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a56e8f02c1fc4e0b18f9d55901a31d659" id="r_a56e8f02c1fc4e0b18f9d55901a31d659"><td class="memTemplParams" colspan="2">template&lt;std::integral I&gt; </td></tr>
<tr class="memitem:a56e8f02c1fc4e0b18f9d55901a31d659"><td class="memTemplItemLeft" align="right" valign="top">I&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacefaker_1_1number.html#a56e8f02c1fc4e0b18f9d55901a31d659">faker::number::integer</a> (I min, I max)</td></tr>
<tr class="memdesc:a56e8f02c1fc4e0b18f9d55901a31d659"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a random integer number in the given range, bounds included. <br /></td></tr>
<tr class="separator:a56e8f02c1fc4e0b18f9d55901a31d659"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc3ffd60474194ebb9de6c1fadbd6a6e" id="r_afc3ffd60474194ebb9de6c1fadbd6a6e"><td class="memTemplParams" colspan="2">template&lt;std::integral I&gt; </td></tr>
<tr class="memitem:afc3ffd60474194ebb9de6c1fadbd6a6e"><td class="memTemplItemLeft" align="right" valign="top">I&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacefaker_1_1number.html#afc3ffd60474194ebb9de6c1fadbd6a6e">faker::number::integer</a> (I max)</td></tr>
<tr class="memdesc:afc3ffd60474194ebb9de6c1fadbd6a6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a random integer between 0 and the given maximum value, bounds included. <br /></td></tr>
<tr class="separator:afc3ffd60474194ebb9de6c1fadbd6a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbf7901ccec478ee254602fc5dbedb25" id="r_acbf7901ccec478ee254602fc5dbedb25"><td class="memTemplParams" colspan="2">template&lt;std::floating_point F&gt; </td></tr>
<tr class="memitem:acbf7901ccec478ee254602fc5dbedb25"><td class="memTemplItemLeft" align="right" valign="top">F&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacefaker_1_1number.html#acbf7901ccec478ee254602fc5dbedb25">faker::number::decimal</a> (F min, F max)</td></tr>
<tr class="memdesc:acbf7901ccec478ee254602fc5dbedb25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a random decimal number in the given range, bounds included. <br /></td></tr>
<tr class="separator:acbf7901ccec478ee254602fc5dbedb25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c47857bcf94b75f2a4c8c65591d21b0" id="r_a9c47857bcf94b75f2a4c8c65591d21b0"><td class="memTemplParams" colspan="2">template&lt;std::floating_point F&gt; </td></tr>
<tr class="memitem:a9c47857bcf94b75f2a4c8c65591d21b0"><td class="memTemplItemLeft" align="right" valign="top">F&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacefaker_1_1number.html#a9c47857bcf94b75f2a4c8c65591d21b0">faker::number::decimal</a> (F max)</td></tr>
<tr class="memdesc:a9c47857bcf94b75f2a4c8c65591d21b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a random decimal number between 0 and the given maximum value, bounds included. <br /></td></tr>
<tr class="separator:a9c47857bcf94b75f2a4c8c65591d21b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
Expand Down
7 changes: 0 additions & 7 deletions Number_8h.js

This file was deleted.

98 changes: 43 additions & 55 deletions Number_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,63 +108,51 @@
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;random&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include &lt;stdexcept&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="foldopen" id="foldopen00007" data-start="{" data-end="}">
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"><a class="line" href="namespacefaker_1_1number.html"> 7</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacefaker_1_1number.html">faker::number</a></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">namespace </span>faker::number</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span>{</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">int</span>egral I&gt;</div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="}">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="namespacefaker_1_1number.html#a56e8f02c1fc4e0b18f9d55901a31d659"> 22</a></span>I <a class="code hl_function" href="namespacefaker_1_1number.html#a56e8f02c1fc4e0b18f9d55901a31d659">integer</a>(I min, I max)</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>{</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordflow">if</span> (min &gt; max)</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="keywordflow">throw</span> std::invalid_argument(<span class="stringliteral">&quot;Minimum value must be smaller than maximum value.&quot;</span>);</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">static</span> std::mt19937 pseudoRandomGenerator{std::random_device{}()};</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> std::uniform_int_distribution&lt;I&gt; distribution(min, max);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">return</span> distribution(pseudoRandomGenerator);</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span>}</div>
</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">int</span>egral I&gt;</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span>I integer(I min, I max)</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="keywordflow">if</span> (min &gt; max)</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> {</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keywordflow">throw</span> std::invalid_argument(<span class="stringliteral">&quot;Minimum value must be smaller than maximum value.&quot;</span>);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> }</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> <span class="keyword">static</span> std::mt19937 pseudoRandomGenerator{std::random_device{}()};</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">int</span>egral I&gt;</div>
<div class="foldopen" id="foldopen00049" data-start="{" data-end="}">
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="namespacefaker_1_1number.html#afc3ffd60474194ebb9de6c1fadbd6a6e"> 49</a></span>I <a class="code hl_function" href="namespacefaker_1_1number.html#a56e8f02c1fc4e0b18f9d55901a31d659">integer</a>(I max)</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>{</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacefaker_1_1number.html#a56e8f02c1fc4e0b18f9d55901a31d659">integer&lt;I&gt;</a>(<span class="keyword">static_cast&lt;</span>I<span class="keyword">&gt;</span>(0), max);</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>}</div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">float</span>ing_po<span class="keywordtype">int</span> F&gt;</div>
<div class="foldopen" id="foldopen00067" data-start="{" data-end="}">
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="namespacefaker_1_1number.html#acbf7901ccec478ee254602fc5dbedb25"> 67</a></span>F <a class="code hl_function" href="namespacefaker_1_1number.html#acbf7901ccec478ee254602fc5dbedb25">decimal</a>(F min, F max)</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span>{</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">if</span> (min &gt; max)</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> {</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">throw</span> std::invalid_argument(<span class="stringliteral">&quot;Minimum value must be smaller than maximum value.&quot;</span>);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> }</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">static</span> std::mt19937 pseudoRandomGenerator{std::random_device{}()};</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> std::uniform_real_distribution&lt;F&gt; distribution(min, max);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">return</span> distribution(pseudoRandomGenerator);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span>}</div>
</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">float</span>ing_po<span class="keywordtype">int</span> F&gt;</div>
<div class="foldopen" id="foldopen00094" data-start="{" data-end="}">
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="namespacefaker_1_1number.html#a9c47857bcf94b75f2a4c8c65591d21b0"> 94</a></span>F <a class="code hl_function" href="namespacefaker_1_1number.html#acbf7901ccec478ee254602fc5dbedb25">decimal</a>(F max)</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span>{</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespacefaker_1_1number.html#acbf7901ccec478ee254602fc5dbedb25">decimal&lt;F&gt;</a>(<span class="keyword">static_cast&lt;</span>F<span class="keyword">&gt;</span>(0.), max);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span>}</div>
</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span>}</div>
</div>
<div class="ttc" id="anamespacefaker_1_1number_html"><div class="ttname"><a href="namespacefaker_1_1number.html">faker::number</a></div><div class="ttdef"><b>Definition</b> Number.h:8</div></div>
<div class="ttc" id="anamespacefaker_1_1number_html_a56e8f02c1fc4e0b18f9d55901a31d659"><div class="ttname"><a href="namespacefaker_1_1number.html#a56e8f02c1fc4e0b18f9d55901a31d659">faker::number::integer</a></div><div class="ttdeci">I integer(I min, I max)</div><div class="ttdoc">Generates a random integer number in the given range, bounds included.</div><div class="ttdef"><b>Definition</b> Number.h:22</div></div>
<div class="ttc" id="anamespacefaker_1_1number_html_acbf7901ccec478ee254602fc5dbedb25"><div class="ttname"><a href="namespacefaker_1_1number.html#acbf7901ccec478ee254602fc5dbedb25">faker::number::decimal</a></div><div class="ttdeci">F decimal(F min, F max)</div><div class="ttdoc">Generates a random decimal number in the given range, bounds included.</div><div class="ttdef"><b>Definition</b> Number.h:67</div></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> std::uniform_int_distribution&lt;I&gt; distribution(min, max);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> distribution(pseudoRandomGenerator);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>}</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">int</span>egral I&gt;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>I integer(I max)</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="keywordflow">return</span> integer&lt;I&gt;(<span class="keyword">static_cast&lt;</span>I<span class="keyword">&gt;</span>(0), max);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>}</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="keyword">template</span> &lt;std::<span class="keywordtype">float</span>ing_po<span class="keywordtype">int</span> F&gt;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span>F decimal(F min, F max)</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span>{</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">if</span> (min &gt; max)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">throw</span> std::invalid_argument(<span class="stringliteral">&quot;Minimum value must be smaller than maximum value.&quot;</span>);</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">static</span> std::mt19937 pseudoRandomGenerator{std::random_device{}()};</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> std::uniform_real_distribution&lt;F&gt; distribution(min, max);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keywordflow">return</span> distribution(pseudoRandomGenerator);</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span>}</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">template</span> &lt;std::<span class="keywordtype">float</span>ing_po<span class="keywordtype">int</span> F&gt;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> F decimal(F max)</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">return</span> decimal&lt;F&gt;(<span class="keyword">static_cast&lt;</span>F<span class="keyword">&gt;</span>(0.), max);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span>}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
Expand Down
2 changes: 1 addition & 1 deletion dir_21275a4f97039163a157995766de70c2.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var dir_21275a4f97039163a157995766de70c2 =
[ "Medicine.h", "Medicine_8h.html", "Medicine_8h" ],
[ "Movie.h", "Movie_8h.html", "Movie_8h" ],
[ "Music.h", "Music_8h.html", "Music_8h" ],
[ "Number.h", "Number_8h.html", "Number_8h" ],
[ "Number.h", "Number_8h.html", null ],
[ "Person.h", "Person_8h.html", "Person_8h" ],
[ "Phone.h", "Phone_8h.html", "Phone_8h" ],
[ "Plant.h", "Plant_8h.html", "Plant_8h" ],
Expand Down
Loading

0 comments on commit a0505de

Please sign in to comment.