Gromacs  2016.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
gmx::UniformIntDistribution< IntType >::param_type Class Reference

#include <gromacs/random/uniformintdistribution.h>

Description

template<class IntType = int>
class gmx::UniformIntDistribution< IntType >::param_type

Uniform int distribution parameters.

Public Types

typedef UniformIntDistribution distribution_type
 Reference back to the distribution class.
 

Public Member Functions

 param_type (result_type a=0, result_type b=std::numeric_limits< result_type >::max())
 Construct parameter block. More...
 
result_type a () const
 Return lower range.
 
result_type b () const
 Return upper range.
 
bool operator== (const param_type &x) const
 True if two parameter sets will return the same uniform int distribution. More...
 
bool operator!= (const param_type &x) const
 True if two parameter sets will return different uniform int distributions. More...
 

Constructor & Destructor Documentation

template<class IntType = int>
gmx::UniformIntDistribution< IntType >::param_type::param_type ( result_type  a = 0,
result_type  b = std::numeric_limits<result_type>::max() 
)
inlineexplicit

Construct parameter block.

Parameters
aLower end of range (inclusive)
bUpper end of range (inclusive)

Member Function Documentation

template<class IntType = int>
bool gmx::UniformIntDistribution< IntType >::param_type::operator!= ( const param_type x) const
inline

True if two parameter sets will return different uniform int distributions.

Parameters
xInstance to compare with.
template<class IntType = int>
bool gmx::UniformIntDistribution< IntType >::param_type::operator== ( const param_type x) const
inline

True if two parameter sets will return the same uniform int distribution.

Parameters
xInstance to compare with.

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