4.6.0
Freundlich's C++ toolkit
|
Parameters class for uniform int distributions.
This class can be used as fcppt::random::distribution::basic's template parameter and is also used to initialize an object of it. It uses strong typedefs for the min and max parameters.
Public Types | |
using | result_type = IntType |
using | base_type = fcppt::random::distribution::base_type<result_type> |
using | distribution = typename Distribution::template apply<base_type>::type |
using | wrapped_param_type = typename distribution::param_type |
using | min = fcppt::strong_typedef< IntType ,_> |
using | max = fcppt::strong_typedef< IntType ,_> |
Public Member Functions | |
uniform_int (min _min, max _max) | |
Constructs parameters for a uniform int distribution. | |
wrapped_param_type | convert_from () const |
Static Public Member Functions | |
static uniform_int | convert_to (distribution const &) |
using fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::base_type = fcppt::random::distribution::base_type<result_type> |
using fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::distribution = typename Distribution::template apply<base_type>::type |
using fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::max = fcppt::strong_typedef< IntType ,_> |
using fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::min = fcppt::strong_typedef< IntType ,_> |
using fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::result_type = IntType |
using fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::wrapped_param_type = typename distribution::param_type |
fcppt::random::distribution::parameters::uniform_int< IntType, Distribution >::uniform_int | ( | min | _min, |
max | _max ) |
Constructs parameters for a uniform int distribution.
Constructs parameters for a uniform int distribution that can produce values from _min to (including) _max
_min | The minimum value this distribution can produce |
_max | The maximum values this distribution can produce |
|
nodiscard |
|
static |