0.12.0
Freundlich's C++ toolkit
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes
fcppt::random::distribution::uniform_real< FloatType > Class Template Reference

Detailed Description

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

A wrapper around a uniform real distribution.

Wraps a uniform real distribution, removing the default parameters of the constructor and also using strong typedefs.

Template Parameters
FloatTypeMust be an floating point type

Public Types

typedef FloatType float_type
 The float type used.
 
typedef wrapped::result_type result_type
 The result returned by drawing random numbers.
 
typedef float_type min
 
typedef float_type sup
 

Public Member Functions

 FCPPT_STATIC_ASSERT_STATEMENT (boost::is_floating_point< float_type >::value)
 
 uniform_real (min _min, sup _sup)
 Constructs a uniform real distribution.
 

Public Attributes

 FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL
 

Member Typedef Documentation

template<typename FloatType >
typedef FloatType fcppt::random::distribution::uniform_real< FloatType >::float_type

The float type used.

template<typename FloatType >
typedef float_type fcppt::random::distribution::uniform_real< FloatType >::min
template<typename FloatType >
typedef wrapped::result_type fcppt::random::distribution::uniform_real< FloatType >::result_type

The result returned by drawing random numbers.

template<typename FloatType >
typedef float_type fcppt::random::distribution::uniform_real< FloatType >::sup

Constructor & Destructor Documentation

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

Constructs a uniform real distribution.

Constructs the uniform real distribution from _min and _sup.

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

Member Function Documentation

template<typename FloatType >
fcppt::random::distribution::uniform_real< FloatType >::FCPPT_STATIC_ASSERT_STATEMENT ( boost::is_floating_point< float_type >::value  )

Member Data Documentation

template<typename FloatType >
fcppt::random::distribution::uniform_real< FloatType >::FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL