Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::random::uniform_int_distribution< IntType >::param_type Class Reference

#include <uniform_int_distribution.hpp>

Inheritance diagram for boost::random::uniform_int_distribution< IntType >::param_type:

Public Types

typedef uniform_int_distribution distribution_type
 

Public Member Functions

 param_type (IntType min_arg=0, IntType max_arg=(std::numeric_limits< IntType >::max)())
 Constructs the parameters of a uniform_int_distribution. More...
 
IntType a () const
 Returns the minimum value of the distribution. More...
 
IntType b () const
 Returns the maximum value of the distribution. More...
 
 BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, param_type, parm)
 Writes the parameters to a std::ostream. More...
 
 BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, param_type, parm)
 Reads the parameters from a std::istream. More...
 
 BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (param_type, lhs, rhs)
 Returns true if the two sets of parameters are equal. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

template<class IntType = int>
boost::random::uniform_int_distribution< IntType >::param_type::param_type ( IntType  min_arg = 0,
IntType  max_arg = (std::numeric_limits<IntType>::max)() 
)
inlineexplicit

Constructs the parameters of a uniform_int_distribution.

Requires min <= max

References BOOST_ASSERT.

Referenced by boost::random::uniform_int_distribution< IntType >::param().

Member Function Documentation

template<class IntType = int>
IntType boost::random::uniform_int_distribution< IntType >::param_type::a ( ) const
inline
template<class IntType = int>
IntType boost::random::uniform_int_distribution< IntType >::param_type::b ( ) const
inline
template<class IntType = int>
boost::random::uniform_int_distribution< IntType >::param_type::BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR ( param_type  ,
lhs  ,
rhs   
)
inline

Returns true if the two sets of parameters are equal.

template<class IntType = int>
boost::random::uniform_int_distribution< IntType >::param_type::BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR ( is  ,
param_type  ,
parm   
)
inline

Reads the parameters from a std::istream.

References boost::regex_constants::failbit.

template<class IntType = int>
boost::random::uniform_int_distribution< IntType >::param_type::BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR ( os  ,
param_type  ,
parm   
)
inline

Writes the parameters to a std::ostream.


The documentation for this class was generated from the following file: