<!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"/> <title>libstdc++: __gnu_cxx::subtractive_rng Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libstdc++</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('a00070.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">__gnu_cxx::subtractive_rng Class Reference<div class="ingroups"><a class="el" href="a01157.html">SGI</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="__gnu_cxx::subtractive_rng" --><!-- doxytag: inherits="std::unary_function" --><div class="dynheader"> Inheritance diagram for __gnu_cxx::subtractive_rng:</div> <div class="dyncontent"> <div class="center"><img src="a01484.png" border="0" usemap="#____gnu__cxx_1_1subtractive__rng_inherit__map" alt="Inheritance graph"/></div> <map name="____gnu__cxx_1_1subtractive__rng_inherit__map" id="____gnu__cxx_1_1subtractive__rng_inherit__map"> <area shape="rect" id="node2" href="a00723.html" title="std::unary_function\< unsigned int, unsigned int \>" alt="" coords="5,5,291,35"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a01485.html">List of all members.</a></p> <h2><a name="pub-types"></a> Public Types</h2> <ul> <li>typedef _Arg <a class="el" href="a00723.html#a6e96c92b2592035c938f85ab1da1c876">argument_type</a> <li>typedef _Result <a class="el" href="a00723.html#a70d48de710aa15c5e811cbcf6c8bdd61">result_type</a> </ul> <h2><a name="pub-methods"></a> Public Member Functions</h2> <ul> <li><a class="el" href="a00070.html#a4e0180804e5e548805eca04c560571d5">subtractive_rng</a> (unsigned int __seed) <li><a class="el" href="a00070.html#a8763d20bcd47a2f9acd2da92e39193a8">subtractive_rng</a> () <li><a class="anchor" id="a51949a6fce04d37c99a125eac07d1e9e"></a><!-- doxytag: member="__gnu_cxx::subtractive_rng::_M_initialize" ref="a51949a6fce04d37c99a125eac07d1e9e" args="(unsigned int __seed)" --> void <b>_M_initialize</b> (unsigned int __seed) <li>unsigned int <a class="el" href="a00070.html#a01fb6415bad2c6df91eb607f863fd9e5">operator()</a> (unsigned int __limit) </ul> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>The <code><a class="el" href="a00070.html">subtractive_rng</a></code> class is documented on <a href="http://www.sgi.com/tech/stl/">SGI's site</a>. Note that this code assumes that <code>int</code> is 32 bits. </p> <p>Definition at line <a class="el" href="a00885_source.html#l00349">349</a> of file <a class="el" href="a00885_source.html">ext/functional</a>.</p> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a6e96c92b2592035c938f85ab1da1c876"></a><!-- doxytag: member="__gnu_cxx::subtractive_rng::argument_type" ref="a6e96c92b2592035c938f85ab1da1c876" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename _Arg, typename _Result> </div> <table class="memname"> <tr> <td class="memname">typedef _Arg <a class="el" href="a00723.html">std::unary_function</a>< _Arg, _Result >::<a class="el" href="a00723.html#a6e96c92b2592035c938f85ab1da1c876">argument_type</a><code> [inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>argument_type</code> is the type of the argument </p> <p>Definition at line <a class="el" href="a01050_source.html#l00105">105</a> of file <a class="el" href="a01050_source.html">stl_function.h</a>.</p> </div> </div> <a class="anchor" id="a70d48de710aa15c5e811cbcf6c8bdd61"></a><!-- doxytag: member="__gnu_cxx::subtractive_rng::result_type" ref="a70d48de710aa15c5e811cbcf6c8bdd61" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename _Arg, typename _Result> </div> <table class="memname"> <tr> <td class="memname">typedef _Result <a class="el" href="a00723.html">std::unary_function</a>< _Arg, _Result >::<a class="el" href="a00723.html#a70d48de710aa15c5e811cbcf6c8bdd61">result_type</a><code> [inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>result_type</code> is the return type </p> <p>Definition at line <a class="el" href="a01050_source.html#l00108">108</a> of file <a class="el" href="a01050_source.html">stl_function.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a4e0180804e5e548805eca04c560571d5"></a><!-- doxytag: member="__gnu_cxx::subtractive_rng::subtractive_rng" ref="a4e0180804e5e548805eca04c560571d5" args="(unsigned int __seed)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">__gnu_cxx::subtractive_rng::subtractive_rng </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>__seed</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Ctor allowing you to initialize the seed. </p> <p>Definition at line <a class="el" href="a00885_source.html#l00391">391</a> of file <a class="el" href="a00885_source.html">ext/functional</a>.</p> </div> </div> <a class="anchor" id="a8763d20bcd47a2f9acd2da92e39193a8"></a><!-- doxytag: member="__gnu_cxx::subtractive_rng::subtractive_rng" ref="a8763d20bcd47a2f9acd2da92e39193a8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">__gnu_cxx::subtractive_rng::subtractive_rng </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Default ctor; initializes its state with some number you don't see. </p> <p>Definition at line <a class="el" href="a00885_source.html#l00395">395</a> of file <a class="el" href="a00885_source.html">ext/functional</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a01fb6415bad2c6df91eb607f863fd9e5"></a><!-- doxytag: member="__gnu_cxx::subtractive_rng::operator()" ref="a01fb6415bad2c6df91eb607f863fd9e5" args="(unsigned int __limit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int __gnu_cxx::subtractive_rng::operator() </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>__limit</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a number less than the argument. </p> <p>Definition at line <a class="el" href="a00885_source.html#l00360">360</a> of file <a class="el" href="a00885_source.html">ext/functional</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="a00885_source.html">ext/functional</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="a01125.html">__gnu_cxx</a> </li> <li class="navelem"><a class="el" href="a00070.html">subtractive_rng</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.7.4 </li> </ul> </div> </body> </html>