![]() |
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); virtual void seed(uint32_t); virtual void seed(); virtual void seed(pseudo_des &); virtual result_type min BOOST_PREVENT_MACRO_SUBSTITUTION() const; virtual result_type max BOOST_PREVENT_MACRO_SUBSTITUTION() const; virtual void write(std::ostream &) const; virtual void read(std::istream &); virtual void write_all(std::ostream &) const; virtual void read_all(std::istream &); // protected member functions virtual 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);
virtual void seed(uint32_t s);
seed from an integer using seed_with_sequence
See Also:
seed_with_sequence()
virtual void seed();seed with the default value
virtual void seed(pseudo_des & inigen);seed with the
pseudo_des
generator virtual result_type min BOOST_PREVENT_MACRO_SUBSTITUTION() const;
virtual result_type max BOOST_PREVENT_MACRO_SUBSTITUTION() const;
virtual void write(std::ostream &) const;write the state to a std::ostream
virtual void read(std::istream &);read the state from a std::istream
virtual void write_all(std::ostream & os) const;write the full state (including buffer) to a std::ostream
virtual void read_all(std::istream &);read the full state (including buffer) from a std::istream
Copyright © 2006-2008 Brigitte Surer, Matthias Troyer |