![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::buffered_rng
// In header: <alps/random/buffered_rng.h> template<typename RNG> class buffered_rng : public alps::buffered_rng_base { public: // construct/copy/destruct buffered_rng(); buffered_rng(RNG); // private member functions BOOST_STATIC_ASSERT((::boost::is_same< typename RNG::result_type, uint32_t >::value)); // public member functions template<typename IT> void seed(IT, IT); void seed(uint32_t); void seed(); void seed(pseudo_des &); result_type min BOOST_PREVENT_MACRO_SUBSTITUTION() const; result_type max BOOST_PREVENT_MACRO_SUBSTITUTION() const; void write(std::ostream &) const; void read(std::istream &); void write_all(std::ostream &) const; void read_all(std::istream &); // protected member functions void fill_buffer(); };
a concrete implementation of a buffered random number generator
buffered_rng
public member functionstemplate<typename IT> void seed(IT start, IT end);
void seed(uint32_t s);
seed from an integer using seed_with_sequence
See Also:
seed_with_sequence()
void seed();seed with the default value
void seed(pseudo_des & inigen);seed with the
pseudo_des
generator result_type min BOOST_PREVENT_MACRO_SUBSTITUTION() const;
result_type max BOOST_PREVENT_MACRO_SUBSTITUTION() const;
void write(std::ostream &) const;write the state to a std::ostream
void read(std::istream &);read the state from a std::istream
void write_all(std::ostream & os) const;write the full state (including buffer) to a std::ostream
void read_all(std::istream &);read the full state (including buffer) from a std::istream
Copyright © 2006-2008 Brigitte Surer, Matthias Troyer |