Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template random_t

Boost , Boost.Test , Header <boost/test/data/monomorphic/generators/random.hpp>

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template random_t

boost::unit_test::data::monomorphic::random_t — Generator for the random sequences.

Synopsis

// In header: <boost/test/data/monomorphic/generators/random.hpp>
template<typename SampleType = double, 
         typename DistributionType = typename ds_detail::default_distribution<SampleType>::type, 
         typename EngineType = std::default_random_engine> 
class random_t {
public:
  // types
  typedef SampleType       sample;     
  typedef DistributionType distr_type; 
  typedef EngineType       engine_type;
  // construct/copy/destruct
  random_t();
  explicit random_t(distr_type &&);
  random_t(engine_type &&, distr_type &&);
  // public member functions
  data::size_t capacity() const;
  SampleType next();
  void reset();
  template<typename SeedType> void seed(SeedType &&);
};

Description

Этот класс реализует концепцию генератора (см.boost::unit_test::data::monomorphic::generated_by).для реализации генератора случайных чисел.

random_t public construct/copy/destruct

  1. <
    random_t();
    >
  2. <
    explicitrandom_t(distr_type&&d);
    >
  3. <
    random_t(engine_type&&e,distr_type&&d);
    >

random_t public member functions

  1. <
    data::size_tcapacity()const;
    >
  2. <
    SampleTypenext();
    >
  3. <
    voidreset();
    >
  4. <
    template<typenameSeedType>voidseed(SeedType&&seed);
    >Устанавливает семя псевдослучайного числового двигателя.

PrevUpHomeNext

Статья Class template random_t раздела Boost.Test Header <boost/test/data/monomorphic/generators/random.hpp> может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Header <boost/test/data/monomorphic/generators/random.hpp> ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 21:08:45/0.0062720775604248/0