1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Class template niederreiter_base2_engine</title> 6<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 8<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> 9<link rel="up" href="../../boost_random/reference.html#header.boost.random.niederreiter_base2_hpp" title="Header <boost/random/niederreiter_base2.hpp>"> 10<link rel="prev" href="negati_1_3_34_5_6_27_1_1_1/param_type.html" title="Class param_type"> 11<link rel="next" href="niederreiter_base2.html" title="Type definition niederreiter_base2"> 12</head> 13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 14<table cellpadding="2" width="100%"><tr> 15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> 16<td align="center"><a href="../../../../index.html">Home</a></td> 17<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> 18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 20<td align="center"><a href="../../../../more/index.htm">More</a></td> 21</tr></table> 22<hr> 23<div class="spirit-nav"> 24<a accesskey="p" href="negati_1_3_34_5_6_27_1_1_1/param_type.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#header.boost.random.niederreiter_base2_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="niederreiter_base2.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="refentry"> 27<a name="boost.random.niederreiter_base2_engine"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Class template niederreiter_base2_engine</span></h2> 30<p>boost::random::niederreiter_base2_engine</p> 31</div> 32<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 33<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../boost_random/reference.html#header.boost.random.niederreiter_base2_hpp" title="Header <boost/random/niederreiter_base2.hpp>">boost/random/niederreiter_base2.hpp</a>> 34 35</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> UIntType<span class="special">,</span> <span class="keyword">unsigned</span> w<span class="special">,</span> 36 <span class="keyword">typename</span> Nb2Table <span class="special">=</span> <span class="identifier">default_niederreiter_base2_table</span><span class="special">></span> 37<span class="keyword">class</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">{</span> 38<span class="keyword">public</span><span class="special">:</span> 39 <span class="comment">// types</span> 40 <span class="keyword">typedef</span> <span class="identifier">UIntType</span> <a name="boost.random.niederreiter_base2_engine.result_type"></a><span class="identifier">result_type</span><span class="special">;</span> 41 42 <span class="comment">// <a class="link" href="niederreiter_base2_engine.html#boost.random.niederreiter_base2_engineconstruct-copy-destruct">construct/copy/destruct</a></span> 43 <span class="keyword">explicit</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_5-bb"><span class="identifier">niederreiter_base2_engine</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span> 44 45 <span class="comment">// <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_4-bb">public member functions</a></span> 46 <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_4_1-bb"><span class="identifier">dimension</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span> 47 <span class="keyword">void</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_4_2-bb"><span class="identifier">seed</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 48 <span class="keyword">void</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_4_3-bb"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">UIntType</span><span class="special">)</span><span class="special">;</span> 49 <span class="identifier">result_type</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_4_4-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 50 <span class="keyword">void</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_4_5-bb"><span class="identifier">discard</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uintmax_t</span><span class="special">)</span><span class="special">;</span> 51 52 <span class="comment">// <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_6-bb">public static functions</a></span> 53 <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">result_type</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_6_1-bb"><span class="identifier">min</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 54 <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">result_type</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_6_2-bb"><span class="identifier">max</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span> 55 56 <span class="comment">// <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_7-bb">friend functions</a></span> 57 <span class="keyword">friend</span> <span class="keyword">bool</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_7_1-bb"><span class="keyword">operator</span><span class="special">==</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span><span class="special">,</span> 58 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 59 <span class="keyword">friend</span> <span class="keyword">bool</span> <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_7_2-bb"><span class="keyword">operator</span><span class="special">!=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span><span class="special">,</span> 60 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 61 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">></span> 62 <span class="keyword">friend</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span> 63 <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_7_3-bb"><span class="keyword">operator</span><span class="special"><<</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span><span class="special">,</span> 64 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 65 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">></span> 66 <span class="keyword">friend</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span> 67 <a class="link" href="niederreiter_base2_engine.html#id-1_3_34_5_6_28_1_1_1_7_4-bb"><span class="keyword">operator</span><span class="special">>></span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span><span class="special">,</span> 68 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 69<span class="special">}</span><span class="special">;</span></pre></div> 70<div class="refsect1"> 71<a name="id-1.3.34.5.6.27.3.4"></a><h2>Description</h2> 72<p>Instantiations of class template <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> model a <a class="link" href="../../boost_random/reference.html#boost_random.reference.concepts.quasi_random_number_generator" title="Quasi-Random Number Generator">quasi-random number generator</a> . The <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> uses the algorithm described in </p> 73<div class="blockquote"><blockquote class="blockquote"><p> Bratley, Fox, Niederreiter, ACM Trans. Model. Comp. Sim. 2, 195 (1992). </p></blockquote></div> 74<p> </p> 75<div class="note"><table border="0" summary="Note"> 76<tr> 77<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../doc/src/images/note.png"></td> 78<th align="left">Note</th> 79</tr> 80<tr><td align="left" valign="top"> 81<p><a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> skips trivial zeroes at the start of the sequence. For example, the beginning of the 2-dimensional Niederreiter base 2 sequence in <code class="computeroutput"><a class="link" href="uniform_01.html" title="Class template uniform_01">uniform_01</a></code> distribution will look like this: </p> 82<pre class="programlisting"><span class="number">0</span><span class="special">.</span><span class="number">5</span><span class="special">,</span> <span class="number">0</span><span class="special">.</span><span class="number">5</span><span class="special">,</span> 83<span class="number">0</span><span class="special">.</span><span class="number">75</span><span class="special">,</span> <span class="number">0</span><span class="special">.</span><span class="number">25</span><span class="special">,</span> 84<span class="number">0</span><span class="special">.</span><span class="number">25</span><span class="special">,</span> <span class="number">0</span><span class="special">.</span><span class="number">75</span><span class="special">,</span> 85<span class="number">0</span><span class="special">.</span><span class="number">375</span><span class="special">,</span> <span class="number">0</span><span class="special">.</span><span class="number">375</span><span class="special">,</span> 86<span class="number">0</span><span class="special">.</span><span class="number">875</span><span class="special">,</span> <span class="number">0</span><span class="special">.</span><span class="number">875</span><span class="special">,</span> 87<span class="special">...</span> 88</pre> 89</td></tr> 90</table></div> 91<p> 92In the following documentation <code class="computeroutput">X</code> denotes the concrete class of the template <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> returning objects of type <code class="computeroutput">UIntType</code>, u and v are the values of <code class="computeroutput">X</code>.</p> 93<p>Some member functions may throw exceptions of type std::range_error. This happens when the quasi-random domain is exhausted and the generator cannot produce any more values. The length of the low discrepancy sequence is given by <span class="inlinemediaobject"><img src="../../images/random//form_31.png"></span>. </p> 94<div class="refsect2"> 95<a name="id-1.3.34.5.6.27.3.4.5"></a><h3> 96<a name="boost.random.niederreiter_base2_engineconstruct-copy-destruct"></a><code class="computeroutput">niederreiter_base2_engine</code> 97 public 98 construct/copy/destruct</h3> 99<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> 100<pre class="literallayout"><span class="keyword">explicit</span> <a name="id-1_3_34_5_6_28_1_1_1_5-bb"></a><span class="identifier">niederreiter_base2_engine</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> s<span class="special">)</span><span class="special">;</span></pre> 101<p>Effects: Constructs the default <code class="computeroutput">s</code>-dimensional Niederreiter base 2 quasi-random number generator.</p> 102<p>Throws: bad_alloc, invalid_argument, range_error. </p> 103</li></ol></div> 104</div> 105<div class="refsect2"> 106<a name="id-1.3.34.5.6.27.3.4.6"></a><h3> 107<a name="id-1_3_34_5_6_28_1_1_1_4-bb"></a><code class="computeroutput">niederreiter_base2_engine</code> public member functions</h3> 108<div class="orderedlist"><ol class="orderedlist" type="1"> 109<li class="listitem"> 110<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="id-1_3_34_5_6_28_1_1_1_4_1-bb"></a><span class="identifier">dimension</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre> 111<p>Returns: The dimension of of the quasi-random domain.</p> 112<p>Throws: nothing. </p> 113</li> 114<li class="listitem"> 115<pre class="literallayout"><span class="keyword">void</span> <a name="id-1_3_34_5_6_28_1_1_1_4_2-bb"></a><span class="identifier">seed</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Throws: nothing. <p>Effects: Resets the quasi-random number generator state to the one given by the default construction. Equivalent to u.seed(0). </p> 116</li> 117<li class="listitem"> 118<pre class="literallayout"><span class="keyword">void</span> <a name="id-1_3_34_5_6_28_1_1_1_4_3-bb"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">UIntType</span> init<span class="special">)</span><span class="special">;</span></pre>Throws: range_error. <p>Effects: Effectively sets the quasi-random number generator state to the <code class="computeroutput">init</code>-th vector in the <code class="computeroutput">s</code>-dimensional quasi-random domain, where <code class="computeroutput">s</code> == X::dimension(). </p> 119<pre class="programlisting"><span class="identifier">X</span> <span class="identifier">u</span><span class="special">,</span> <span class="identifier">v</span><span class="special">;</span> 120<span class="keyword">for</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="identifier">N</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span><span class="special">)</span> 121 <span class="keyword">for</span><span class="special">(</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">j</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">j</span> <span class="special"><</span> <span class="identifier">u</span><span class="special">.</span><span class="identifier">dimension</span><span class="special">(</span><span class="special">)</span><span class="special">;</span> <span class="special">++</span><span class="identifier">j</span> <span class="special">)</span> 122 <span class="identifier">u</span><span class="special">(</span><span class="special">)</span><span class="special">;</span> 123<span class="identifier">v</span><span class="special">.</span><span class="identifier">seed</span><span class="special">(</span><span class="identifier">N</span><span class="special">)</span><span class="special">;</span> 124<span class="identifier">assert</span><span class="special">(</span><span class="identifier">u</span><span class="special">(</span><span class="special">)</span> <span class="special">==</span> <span class="identifier">v</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 125</pre> 126<p> </p> 127</li> 128<li class="listitem"> 129<pre class="literallayout"><span class="identifier">result_type</span> <a name="id-1_3_34_5_6_28_1_1_1_4_4-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 130<p>Returns: Returns a successive element of an <code class="computeroutput">s</code>-dimensional (s = X::dimension()) vector at each invocation. When all elements are exhausted, X::operator() begins anew with the starting element of a subsequent <code class="computeroutput">s</code>-dimensional vector.</p> 131<p>Throws: range_error. </p> 132</li> 133<li class="listitem"> 134<pre class="literallayout"><span class="keyword">void</span> <a name="id-1_3_34_5_6_28_1_1_1_4_5-bb"></a><span class="identifier">discard</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uintmax_t</span> z<span class="special">)</span><span class="special">;</span></pre> 135<p>Effects: Advances *this state as if <code class="computeroutput">z</code> consecutive X::operator() invocations were executed. </p> 136<pre class="programlisting"><span class="identifier">X</span> <span class="identifier">u</span> <span class="special">=</span> <span class="identifier">v</span><span class="special">;</span> 137<span class="keyword">for</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="identifier">N</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span><span class="special">)</span> 138 <span class="identifier">u</span><span class="special">(</span><span class="special">)</span><span class="special">;</span> 139<span class="identifier">v</span><span class="special">.</span><span class="identifier">discard</span><span class="special">(</span><span class="identifier">N</span><span class="special">)</span><span class="special">;</span> 140<span class="identifier">assert</span><span class="special">(</span><span class="identifier">u</span><span class="special">(</span><span class="special">)</span> <span class="special">==</span> <span class="identifier">v</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span> 141</pre> 142<p>Throws: range_error. </p> 143</li> 144</ol></div> 145</div> 146<div class="refsect2"> 147<a name="id-1.3.34.5.6.27.3.4.7"></a><h3> 148<a name="id-1_3_34_5_6_28_1_1_1_6-bb"></a><code class="computeroutput">niederreiter_base2_engine</code> public static functions</h3> 149<div class="orderedlist"><ol class="orderedlist" type="1"> 150<li class="listitem"> 151<pre class="literallayout"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">result_type</span> <a name="id-1_3_34_5_6_28_1_1_1_6_1-bb"></a><span class="identifier">min</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 152<p>Returns: Tight lower bound on the set of values returned by operator().</p> 153<p>Throws: nothing. </p> 154</li> 155<li class="listitem"> 156<pre class="literallayout"><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="identifier">result_type</span> <a name="id-1_3_34_5_6_28_1_1_1_6_2-bb"></a><span class="identifier">max</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre> 157<p>Returns: Tight upper bound on the set of values returned by operator().</p> 158<p>Throws: nothing. </p> 159</li> 160</ol></div> 161</div> 162<div class="refsect2"> 163<a name="id-1.3.34.5.6.27.3.4.8"></a><h3> 164<a name="id-1_3_34_5_6_28_1_1_1_7-bb"></a><code class="computeroutput">niederreiter_base2_engine</code> friend functions</h3> 165<div class="orderedlist"><ol class="orderedlist" type="1"> 166<li class="listitem"> 167<pre class="literallayout"><span class="keyword">friend</span> <span class="keyword">bool</span> <a name="id-1_3_34_5_6_28_1_1_1_7_1-bb"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span> x<span class="special">,</span> 168 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span> y<span class="special">)</span><span class="special">;</span></pre>Returns true if the two generators will produce identical sequences of outputs. </li> 169<li class="listitem"> 170<pre class="literallayout"><span class="keyword">friend</span> <span class="keyword">bool</span> <a name="id-1_3_34_5_6_28_1_1_1_7_2-bb"></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span> lhs<span class="special">,</span> 171 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span> rhs<span class="special">)</span><span class="special">;</span></pre>Returns true if the two generators will produce different sequences of outputs. </li> 172<li class="listitem"> 173<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">></span> 174 <span class="keyword">friend</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span> 175 <a name="id-1_3_34_5_6_28_1_1_1_7_3-bb"></a><span class="keyword">operator</span><span class="special"><<</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span> os<span class="special">,</span> 176 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span> s<span class="special">)</span><span class="special">;</span></pre>Writes the textual representation of the generator to a <code class="computeroutput">std::ostream</code>. </li> 177<li class="listitem"> 178<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">></span> 179 <span class="keyword">friend</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span> 180 <a name="id-1_3_34_5_6_28_1_1_1_7_4-bb"></a><span class="keyword">operator</span><span class="special">>></span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special"><</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">></span> <span class="special">&</span> is<span class="special">,</span> 181 <span class="keyword">const</span> <a class="link" href="niederreiter_base2_engine.html" title="Class template niederreiter_base2_engine">niederreiter_base2_engine</a> <span class="special">&</span> s<span class="special">)</span><span class="special">;</span></pre>Reads the textual representation of the generator from a <code class="computeroutput">std::istream</code>. </li> 182</ol></div> 183</div> 184</div> 185</div> 186<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 187<td align="left"></td> 188<td align="right"><div class="copyright-footer">Copyright © 2000-2005 Jens Maurer<br>Copyright © 2009, 2010 Steven Watanabe<p> 189 Distributed under the Boost Software License, Version 1.0. (See accompanying 190 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 191 </p> 192</div></td> 193</tr></table> 194<hr> 195<div class="spirit-nav"> 196<a accesskey="p" href="negati_1_3_34_5_6_27_1_1_1/param_type.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#header.boost.random.niederreiter_base2_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="niederreiter_base2.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 197</div> 198</body> 199</html> 200