<!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"/> <meta name="generator" content="Doxygen 1.8.17"/> <meta name="description" content="PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU."> <title>PhasicFlow: randomReal Class Reference</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> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function() { init_search(); }); /* @license-end */ </script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], }); </script> <script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="customdoxygen.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" > <tbody> <tr> <td id="projectlogo"><a href="https://github.com/PhasicFlow"><img alt="Logo" src="phasicFlow_logo.png"></a></td> <td> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </td> </tr> <tr> <td id="projectbrief"> <a href="https://https://cemf.ir">www.cemf.ir</a> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.17 --> <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'); /* @license-end */ </script> </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('classpFlow_1_1randomReal.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="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="classpFlow_1_1randomReal-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">randomReal Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> </div><!--header--> <div class="contents"> <div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for randomReal:</div> <div id="dynsection-0-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-0-content" class="dyncontent" style="display:none;"> <div class="center"><img src="classpFlow_1_1randomReal__inherit__graph.png" border="0" usemap="#randomReal_inherit__map" alt="Inheritance graph"/></div> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a20eb19d10d47390102834d5aab1c4b59"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#a20eb19d10d47390102834d5aab1c4b59">TypeInfo</a> ("randomReal")</td></tr> <tr class="separator:a20eb19d10d47390102834d5aab1c4b59"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a539151366461205e46247dc28757799f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#a539151366461205e46247dc28757799f">randomReal</a> (<a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> <a class="el" href="pFlowMacros_8hpp.html#a86d500a34c624c2cae56bc25a31b12f3">UNUSED</a>(distribution))</td></tr> <tr class="separator:a539151366461205e46247dc28757799f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9bcd81e10bd6f563fa2be8bf0ed76a83"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#a9bcd81e10bd6f563fa2be8bf0ed76a83">create_vCtor</a> (<a class="el" href="classpFlow_1_1randomReal.html">randomReal</a>, <a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a>,(<a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> distribution),(distribution))</td></tr> <tr class="separator:a9bcd81e10bd6f563fa2be8bf0ed76a83"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aba14944f8ccb0ed0ee635ecada2b5963"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#aba14944f8ccb0ed0ee635ecada2b5963">~randomReal</a> ()=default</td></tr> <tr class="separator:aba14944f8ccb0ed0ee635ecada2b5963"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0eeb2a5e6a9a4bd47e869b34c7623d0c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#a0eeb2a5e6a9a4bd47e869b34c7623d0c">randomNumber</a> (<a class="el" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> a, <a class="el" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> b)=0</td></tr> <tr class="separator:a0eeb2a5e6a9a4bd47e869b34c7623d0c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7bb032e5b3fcdd81aed17aeec417cc1f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">realx3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#a7bb032e5b3fcdd81aed17aeec417cc1f">randomNumber</a> (<a class="el" href="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">realx3</a> a, <a class="el" href="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">realx3</a> b)=0</td></tr> <tr class="separator:a7bb032e5b3fcdd81aed17aeec417cc1f"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:a56210becacba9d1d2f84fcc998cbbab2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classpFlow_1_1uniquePtr.html">uniquePtr</a>< <a class="el" href="classpFlow_1_1randomReal.html">randomReal</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classpFlow_1_1randomReal.html#a56210becacba9d1d2f84fcc998cbbab2">create</a> (<a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> distribution)</td></tr> <tr class="separator:a56210becacba9d1d2f84fcc998cbbab2"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"> <p class="definition">Definition at line <a class="el" href="randomReal_8hpp_source.html#l00031">31</a> of file <a class="el" href="randomReal_8hpp_source.html">randomReal.hpp</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a539151366461205e46247dc28757799f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a539151366461205e46247dc28757799f">◆ </a></span>randomReal()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpFlow_1_1randomReal.html">randomReal</a> </td> <td>(</td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a>  </td> <td class="paramname"><em>UNUSED</em>distribution</td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="randomReal_8hpp_source.html#l00040">40</a> of file <a class="el" href="randomReal_8hpp_source.html">randomReal.hpp</a>.</p> </div> </div> <a id="aba14944f8ccb0ed0ee635ecada2b5963"></a> <h2 class="memtitle"><span class="permalink"><a href="#aba14944f8ccb0ed0ee635ecada2b5963">◆ </a></span>~randomReal()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual ~<a class="el" href="classpFlow_1_1randomReal.html">randomReal</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">default</span></span> </td> </tr> </table> </div><div class="memdoc"> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a20eb19d10d47390102834d5aab1c4b59"></a> <h2 class="memtitle"><span class="permalink"><a href="#a20eb19d10d47390102834d5aab1c4b59">◆ </a></span>TypeInfo()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">TypeInfo </td> <td>(</td> <td class="paramtype">"randomReal" </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a id="a9bcd81e10bd6f563fa2be8bf0ed76a83"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9bcd81e10bd6f563fa2be8bf0ed76a83">◆ </a></span>create_vCtor()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">create_vCtor </td> <td>(</td> <td class="paramtype"><a class="el" href="classpFlow_1_1randomReal.html">randomReal</a> </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">(<a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> distribution) </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">(distribution) </td> <td class="paramname"> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> </div> </div> <a id="a0eeb2a5e6a9a4bd47e869b34c7623d0c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a0eeb2a5e6a9a4bd47e869b34c7623d0c">◆ </a></span>randomNumber() <span class="overload">[1/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> randomNumber </td> <td>(</td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> </td> <td class="paramname"><em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a6192191c0e9c178a44ee1ac350fde476">real</a> </td> <td class="paramname"><em>b</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Implemented in <a class="el" href="classpFlow_1_1RandomReal.html#a0ae73c26d301fa9a1e801d1a98dafbb0">RandomReal< DistributionType ></a>.</p> </div> </div> <a id="a7bb032e5b3fcdd81aed17aeec417cc1f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7bb032e5b3fcdd81aed17aeec417cc1f">◆ </a></span>randomNumber() <span class="overload">[2/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">realx3</a> randomNumber </td> <td>(</td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">realx3</a> </td> <td class="paramname"><em>a</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a5164661f6974ad24fa90bf19433e6116">realx3</a> </td> <td class="paramname"><em>b</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Implemented in <a class="el" href="classpFlow_1_1RandomReal.html#a03f286a304fdfd66f19c220e8ba70b12">RandomReal< DistributionType ></a>.</p> </div> </div> <a id="a56210becacba9d1d2f84fcc998cbbab2"></a> <h2 class="memtitle"><span class="permalink"><a href="#a56210becacba9d1d2f84fcc998cbbab2">◆ </a></span>create()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpFlow_1_1uniquePtr.html">pFlow::uniquePtr</a>< <a class="el" href="classpFlow_1_1randomReal.html">pFlow::randomReal</a> > create </td> <td>(</td> <td class="paramtype"><a class="el" href="namespacepFlow.html#a0ebe792a293e8c717bddf60070c0fe99">word</a> </td> <td class="paramname"><em>distribution</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="randomReal_8cpp_source.html#l00026">26</a> of file <a class="el" href="randomReal_8cpp_source.html">randomReal.cpp</a>.</p> <p class="reference">References <a class="el" href="bTypesFunctions_8cpp_source.html#l00156">pFlow::angleBracketsNames()</a>, <a class="el" href="error_8hpp_source.html#l00070">fatalError</a>, <a class="el" href="error_8hpp_source.html#l00098">fatalExit</a>, and <a class="el" href="namespacepFlow.html#a9c4454c5f18c8245eaaebf2b4832eab0">pFlow::printKeys()</a>.</p> <div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;"> <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div> <div id="dynsection-1-summary" class="dynsummary" style="display:block;"> </div> <div id="dynsection-1-content" class="dyncontent" style="display:none;"> <div class="center"><img src="classpFlow_1_1randomReal_a56210becacba9d1d2f84fcc998cbbab2_cgraph.png" border="0" usemap="#classpFlow_1_1randomReal_a56210becacba9d1d2f84fcc998cbbab2_cgraph" alt=""/></div> </div> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>src/phasicFlow/random/randomReal/<a class="el" href="randomReal_8hpp_source.html">randomReal.hpp</a></li> <li>src/phasicFlow/random/randomReal/<a class="el" href="randomReal_8cpp_source.html">randomReal.cpp</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="namespacepFlow.html">pFlow</a></li><li class="navelem"><a class="el" href="classpFlow_1_1randomReal.html">randomReal</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li> </ul> </div> </body> </html>