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_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type Class Reference

#include <random.hpp>

Public Types

typedef uniform_smallint distribution_type
 

Public Member Functions

 param_type (result_type const &min_arg=0, result_type const &max_arg=9)
 constructs the parameters of a uniform_smallint distribution. More...
 
result_type a () const
 Returns the minimum value. More...
 
result_type b () const
 Returns the maximum value. 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

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
typedef uniform_smallint boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type::distribution_type

Constructor & Destructor Documentation

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type::param_type ( result_type const &  min_arg = 0,
result_type const &  max_arg = 9 
)
inline

constructs the parameters of a uniform_smallint distribution.

References BOOST_ASSERT.

Member Function Documentation

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
result_type boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type::a ( ) const
inline

Returns the minimum value.

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
result_type boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type::b ( ) const
inline

Returns the maximum value.

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type::BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR ( param_type  ,
lhs  ,
rhs   
)
inline

Returns true if the two sets of parameters are equal.

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::param_type::BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR ( is  ,
param_type  ,
parm   
)
inline

Reads the parameters from a std::istream.

template<class Backend , boost::multiprecision::expression_template_option ExpressionTemplates>
boost::random::uniform_smallint< boost::multiprecision::number< Backend, ExpressionTemplates > >::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: