std::variate_generator< _Engine, _Dist > Class Template Reference
[Random Number Generation]

List of all members.

Detailed Description

template<typename _Engine, typename _Dist>
class std::variate_generator< _Engine, _Dist >

Produces random numbers on a given distribution function using a non-uniform random number generation engine.

Todo:
the engine_value_type needs to be studied more carefully.

Definition at line 158 of file tr1_impl/random.

Public Types

Public Member Functions


Constructor & Destructor Documentation

template<typename _Engine, typename _Dist>
std::variate_generator< _Engine, _Dist >::variate_generator ( engine_type  __eng,
distribution_type  __dist 
) [inline]

Constructs a variate generator with the uniform random number generator __eng for the random distribution __dist.

Exceptions:
Any exceptions which may thrown by the copy constructors of the _Engine or _Dist objects.

Definition at line 182 of file tr1_impl/random.


Member Function Documentation

template<typename _Engine, typename _Dist>
const distribution_type& std::variate_generator< _Engine, _Dist >::distribution (  )  const [inline]

Gets a const reference to the underlying random distribution.

Definition at line 227 of file tr1_impl/random.

template<typename _Engine, typename _Dist>
distribution_type& std::variate_generator< _Engine, _Dist >::distribution (  )  [inline]

Gets a reference to the underlying random distribution.

Definition at line 220 of file tr1_impl/random.

Referenced by std::variate_generator< _Engine, _Dist >::max(), and std::variate_generator< _Engine, _Dist >::min().

template<typename _Engine, typename _Dist>
const engine_value_type& std::variate_generator< _Engine, _Dist >::engine (  )  const [inline]

Gets a const reference to the underlying uniform random number generator object.

Definition at line 213 of file tr1_impl/random.

template<typename _Engine, typename _Dist>
engine_value_type& std::variate_generator< _Engine, _Dist >::engine (  )  [inline]

Gets a reference to the underlying uniform random number generator object.

Definition at line 205 of file tr1_impl/random.

template<typename _Engine, typename _Dist>
result_type std::variate_generator< _Engine, _Dist >::max (  )  const [inline]

Gets the closed upper bound of the distribution interval.

Definition at line 241 of file tr1_impl/random.

References std::variate_generator< _Engine, _Dist >::distribution().

template<typename _Engine, typename _Dist>
result_type std::variate_generator< _Engine, _Dist >::min (  )  const [inline]

Gets the closed lower bound of the distribution interval.

Definition at line 234 of file tr1_impl/random.

References std::variate_generator< _Engine, _Dist >::distribution().

template<typename _Engine, typename _Dist>
template<typename _Tp>
result_type std::variate_generator< _Engine, _Dist >::operator() ( _Tp  __value  )  [inline]

WTF?

Definition at line 197 of file tr1_impl/random.

template<typename _Engine, typename _Dist>
result_type std::variate_generator< _Engine, _Dist >::operator() (  )  [inline]

Gets the next generated value on the distribution.

Definition at line 189 of file tr1_impl/random.


The documentation for this class was generated from the following file:
Generated on Wed Mar 26 00:44:52 2008 for libstdc++ by  doxygen 1.5.1