4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::random::distribution::parameters::uniform_real< IntType > Class Template Reference

Detailed Description

template<typename IntType>
class fcppt::random::distribution::parameters::uniform_real< IntType >

Parameters class for uniform real 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 sup parameters.

Public Types

using result_type = FloatType
 
using base_type = fcppt::random::distribution::base_type<result_type>
 
using distribution = std::uniform_real_distribution<base_type>
 
using wrapped_param_type = typename distribution::param_type
 
using min = fcppt::strong_typedef< FloatType ,_>
 
using sup = fcppt::strong_typedef< FloatType ,_>
 

Public Member Functions

 uniform_real (min _min, sup _sup)
 Constructs parameters for a uniform real distribution.
 
wrapped_param_type convert_from () const
 

Static Public Member Functions

static uniform_real convert_to (distribution const &)
 

Member Typedef Documentation

◆ base_type

◆ distribution

template<typename IntType >
using fcppt::random::distribution::parameters::uniform_real< IntType >::distribution = std::uniform_real_distribution<base_type>

◆ min

template<typename IntType >
using fcppt::random::distribution::parameters::uniform_real< IntType >::min = fcppt::strong_typedef< FloatType ,_>

◆ result_type

template<typename IntType >
using fcppt::random::distribution::parameters::uniform_real< IntType >::result_type = FloatType

◆ sup

template<typename IntType >
using fcppt::random::distribution::parameters::uniform_real< IntType >::sup = fcppt::strong_typedef< FloatType ,_>

◆ wrapped_param_type

template<typename IntType >
using fcppt::random::distribution::parameters::uniform_real< IntType >::wrapped_param_type = typename distribution::param_type

Constructor & Destructor Documentation

◆ uniform_real()

template<typename IntType >
fcppt::random::distribution::parameters::uniform_real< IntType >::uniform_real ( min _min,
sup _sup )

Constructs parameters for a uniform real distribution.

Constructs parameters for a uniform real distribution that can produce values from _min to (not including) _sup

Parameters
_minThe minimum value this distribution can produce
_supThe supremum of all values this distribution can produce

Member Function Documentation

◆ convert_from()

template<typename IntType >
wrapped_param_type fcppt::random::distribution::parameters::uniform_real< IntType >::convert_from ( ) const
nodiscard

◆ convert_to()

template<typename IntType >
static uniform_real fcppt::random::distribution::parameters::uniform_real< IntType >::convert_to ( distribution const & )
staticnodiscard