4.4.1
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions
fcppt::random::distribution::parameters::uniform_real< FloatType > Class Template Reference

Detailed Description

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

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 FloatType >
using fcppt::random::distribution::parameters::uniform_real< FloatType >::distribution = std::uniform_real_distribution<base_type>

◆ min

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

◆ result_type

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

◆ sup

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

◆ wrapped_param_type

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

Constructor & Destructor Documentation

◆ uniform_real()

template<typename FloatType >
fcppt::random::distribution::parameters::uniform_real< FloatType >::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 FloatType >
wrapped_param_type fcppt::random::distribution::parameters::uniform_real< FloatType >::convert_from ( ) const

◆ convert_to()

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