Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::random::seed_seq Class Reference

The class seed_seq stores a sequence of 32-bit words for seeding a . More...

#include <seed_seq.hpp>

Public Types

typedef boost::uint_least32_t result_type
 

Public Member Functions

 seed_seq ()
 Initializes a seed_seq to hold an empty sequence. More...
 
template<class T >
 seed_seq (const std::initializer_list< T > &il)
 Initializes the sequence from an initializer_list. More...
 
template<class Iter >
 seed_seq (Iter first, Iter last)
 Initializes the sequence from an iterator range. More...
 
template<class Range >
 seed_seq (const Range &range)
 Initializes the sequence from Boost.Range range. More...
 
template<class Iter >
void generate (Iter first, Iter last) const
 Fills a range with 32-bit values based on the stored sequence. More...
 
std::size_t size () const
 Returns the size of the sequence. More...
 
template<class Iter >
void param (Iter out)
 Writes the stored sequence to iter. More...
 

Detailed Description

The class seed_seq stores a sequence of 32-bit words for seeding a .

These words will be combined to fill the entire state of the generator.

Member Typedef Documentation

typedef boost::uint_least32_t boost::random::seed_seq::result_type

Constructor & Destructor Documentation

boost::random::seed_seq::seed_seq ( )
inline

Initializes a seed_seq to hold an empty sequence.

template<class T >
boost::random::seed_seq::seed_seq ( const std::initializer_list< T > &  il)
inline

Initializes the sequence from an initializer_list.

template<class Iter >
boost::random::seed_seq::seed_seq ( Iter  first,
Iter  last 
)
inline

Initializes the sequence from an iterator range.

template<class Range >
boost::random::seed_seq::seed_seq ( const Range &  range)
inlineexplicit

Initializes the sequence from Boost.Range range.

Member Function Documentation

template<class Iter >
void boost::random::seed_seq::generate ( Iter  first,
Iter  last 
) const
inline

Fills a range with 32-bit values based on the stored sequence.

Requires: Iter must be a Random Access Iterator whose value type is an unsigned integral type at least 32 bits wide.

References std::fill(), boost::xpressive::first, boost::accumulators::extract::max, boost::n, boost::multiprecision::backends::p, boost::asio::s, and boost::flyweights::t.

template<class Iter >
void boost::random::seed_seq::param ( Iter  out)
inline

Writes the stored sequence to iter.

References boost::filesystem::detail::copy(), and boost::out.

std::size_t boost::random::seed_seq::size ( void  ) const
inline

Returns the size of the sequence.


The documentation for this class was generated from the following file: