vSMC
vSMC: Scalable Monte Carlo
Classes | Public Types | Public Member Functions | Friends | List of all members
vsmc::UniformBitsDistribution< UIntType > Class Template Reference

Uniform bits distribution. More...

#include <vsmc/rng/internal/common.hpp>

Classes

class  param_type
 

Public Types

using distribution_type = UniformBitsDistribution< UIntType >
 
using result_type = UIntType
 

Public Member Functions

 UniformBitsDistribution ()
 
 UniformBitsDistribution (const param_type &)
 
result_type max () const
 
result_type min () const
 
template<typename RNGType >
result_type operator() (RNGType &rng)
 
template<typename RNGType >
result_type operator() (RNGType &rng, const param_type &)
 
template<typename RNGType >
void operator() (RNGType &rng, std::size_t n, result_type *r)
 
template<typename RNGType >
void operator() (RNGType &rng, std::size_t n, result_type *r, const param_type &)
 
void reset ()
 

Friends

bool operator!= (const UniformBitsDistribution< UIntType > &, const UniformBitsDistribution< UIntType > &)
 
template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const UniformBitsDistribution< UIntType > &)
 
bool operator== (const UniformBitsDistribution< UIntType > &, const UniformBitsDistribution< UIntType > &)
 
template<typename CharT , typename Traits >
std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &is, UniformBitsDistribution< UIntType > &)
 

Detailed Description

template<typename UIntType>
class vsmc::UniformBitsDistribution< UIntType >

Uniform bits distribution.

Definition at line 461 of file common.hpp.

Member Typedef Documentation

template<typename UIntType>
using vsmc::UniformBitsDistribution< UIntType >::distribution_type = UniformBitsDistribution<UIntType>

Definition at line 106 of file uniform_bits_distribution.hpp.

template<typename UIntType>
using vsmc::UniformBitsDistribution< UIntType >::result_type = UIntType

Definition at line 105 of file uniform_bits_distribution.hpp.

Constructor & Destructor Documentation

template<typename UIntType>
vsmc::UniformBitsDistribution< UIntType >::UniformBitsDistribution ( )
inline

Definition at line 139 of file uniform_bits_distribution.hpp.

template<typename UIntType>
vsmc::UniformBitsDistribution< UIntType >::UniformBitsDistribution ( const param_type )
inlineexplicit

Definition at line 140 of file uniform_bits_distribution.hpp.

Member Function Documentation

template<typename UIntType>
result_type vsmc::UniformBitsDistribution< UIntType >::max ( ) const
inline

Definition at line 147 of file uniform_bits_distribution.hpp.

template<typename UIntType>
result_type vsmc::UniformBitsDistribution< UIntType >::min ( ) const
inline

Definition at line 142 of file uniform_bits_distribution.hpp.

template<typename UIntType>
template<typename RNGType >
result_type vsmc::UniformBitsDistribution< UIntType >::operator() ( RNGType &  rng)
inline

Definition at line 155 of file uniform_bits_distribution.hpp.

template<typename UIntType>
template<typename RNGType >
result_type vsmc::UniformBitsDistribution< UIntType >::operator() ( RNGType &  rng,
const param_type  
)
inline

Definition at line 162 of file uniform_bits_distribution.hpp.

template<typename UIntType>
template<typename RNGType >
void vsmc::UniformBitsDistribution< UIntType >::operator() ( RNGType &  rng,
std::size_t  n,
result_type r 
)
inline

Definition at line 168 of file uniform_bits_distribution.hpp.

template<typename UIntType>
template<typename RNGType >
void vsmc::UniformBitsDistribution< UIntType >::operator() ( RNGType &  rng,
std::size_t  n,
result_type r,
const param_type  
)
inline

Definition at line 174 of file uniform_bits_distribution.hpp.

template<typename UIntType>
void vsmc::UniformBitsDistribution< UIntType >::reset ( )
inline

Definition at line 152 of file uniform_bits_distribution.hpp.

Friends And Related Function Documentation

template<typename UIntType>
bool operator!= ( const UniformBitsDistribution< UIntType > &  ,
const UniformBitsDistribution< UIntType > &   
)
friend

Definition at line 186 of file uniform_bits_distribution.hpp.

template<typename UIntType>
template<typename CharT , typename Traits >
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const UniformBitsDistribution< UIntType > &   
)
friend

Definition at line 193 of file uniform_bits_distribution.hpp.

template<typename UIntType>
bool operator== ( const UniformBitsDistribution< UIntType > &  ,
const UniformBitsDistribution< UIntType > &   
)
friend

Definition at line 180 of file uniform_bits_distribution.hpp.

template<typename UIntType>
template<typename CharT , typename Traits >
std::basic_istream<CharT, Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
UniformBitsDistribution< UIntType > &   
)
friend

Definition at line 201 of file uniform_bits_distribution.hpp.