Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
std::tr1::linear_congruential< UIntType, a, c, m > Class Template Reference

#include <random.hpp>

Public Types

typedef UIntType result_type
 

Public Member Functions

 BOOST_STATIC_CONSTANT (UIntType, multiplier=a)
 
 BOOST_STATIC_CONSTANT (UIntType, increment=c)
 
 BOOST_STATIC_CONSTANT (UIntType, modulus=m)
 
 linear_congruential (unsigned long x0=1)
 
 linear_congruential (const linear_congruential &that)
 
template<class Gen >
 linear_congruential (Gen &g)
 
void seed (unsigned long x0=1)
 
template<class Gen >
void seed (Gen &g)
 
result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const
 
result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const
 
result_type operator() ()
 
bool operator== (const linear_congruential &that) const
 
bool operator!= (const linear_congruential &that) const
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT,
Traits > & 
operator<< (std::basic_ostream< CharT, Traits > &os, const linear_congruential &lcg)
 
template<class CharT , class Traits >
std::basic_istream< CharT,
Traits > & 
operator>> (std::basic_istream< CharT, Traits > &is, linear_congruential &lcg)
 

Member Typedef Documentation

template<class UIntType , UIntType a, UIntType c, UIntType m>
typedef UIntType std::tr1::linear_congruential< UIntType, a, c, m >::result_type

Constructor & Destructor Documentation

template<class UIntType , UIntType a, UIntType c, UIntType m>
std::tr1::linear_congruential< UIntType, a, c, m >::linear_congruential ( unsigned long  x0 = 1)
inlineexplicit
template<class UIntType , UIntType a, UIntType c, UIntType m>
std::tr1::linear_congruential< UIntType, a, c, m >::linear_congruential ( const linear_congruential< UIntType, a, c, m > &  that)
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
template<class Gen >
std::tr1::linear_congruential< UIntType, a, c, m >::linear_congruential ( Gen &  g)
inline

Member Function Documentation

template<class UIntType , UIntType a, UIntType c, UIntType m>
result_type min std::tr1::linear_congruential< UIntType, a, c, m >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
result_type max std::tr1::linear_congruential< UIntType, a, c, m >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
std::tr1::linear_congruential< UIntType, a, c, m >::BOOST_STATIC_CONSTANT ( UIntType  ,
multiplier  = a 
)
template<class UIntType , UIntType a, UIntType c, UIntType m>
std::tr1::linear_congruential< UIntType, a, c, m >::BOOST_STATIC_CONSTANT ( UIntType  ,
increment  = c 
)
template<class UIntType , UIntType a, UIntType c, UIntType m>
std::tr1::linear_congruential< UIntType, a, c, m >::BOOST_STATIC_CONSTANT ( UIntType  ,
modulus  = m 
)
template<class UIntType , UIntType a, UIntType c, UIntType m>
bool std::tr1::linear_congruential< UIntType, a, c, m >::operator!= ( const linear_congruential< UIntType, a, c, m > &  that) const
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
result_type std::tr1::linear_congruential< UIntType, a, c, m >::operator() ( )
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
bool std::tr1::linear_congruential< UIntType, a, c, m >::operator== ( const linear_congruential< UIntType, a, c, m > &  that) const
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
void std::tr1::linear_congruential< UIntType, a, c, m >::seed ( unsigned long  x0 = 1)
inline
template<class UIntType , UIntType a, UIntType c, UIntType m>
template<class Gen >
void std::tr1::linear_congruential< UIntType, a, c, m >::seed ( Gen &  g)
inline

Friends And Related Function Documentation

template<class UIntType , UIntType a, UIntType c, UIntType m>
template<class CharT , class Traits >
std::basic_ostream<CharT,Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const linear_congruential< UIntType, a, c, m > &  lcg 
)
friend
template<class UIntType , UIntType a, UIntType c, UIntType m>
template<class CharT , class Traits >
std::basic_istream<CharT,Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
linear_congruential< UIntType, a, c, m > &  lcg 
)
friend

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