Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 > Class Template Reference

#include <random.hpp>

Public Types

typedef
UniformRandomNumberGenerator1 
base1_type
 
typedef
UniformRandomNumberGenerator2 
base2_type
 
typedef unsigned long result_type
 

Public Member Functions

 BOOST_STATIC_CONSTANT (int, shift1=s1)
 
 BOOST_STATIC_CONSTANT (int, shift2=s2)
 
 xor_combine ()
 
 xor_combine (const base1_type &rng1, const base2_type &rng2)
 
 xor_combine (unsigned long s)
 
template<class Gen >
 xor_combine (Gen &g)
 
void seed ()
 
void seed (unsigned long s)
 
template<class Gen >
void seed (Gen &g)
 
const base1_typebase1 () const
 
const base2_typebase2 () const
 
result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const
 
result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const
 
result_type operator() ()
 
bool operator== (const xor_combine &that) const
 
bool operator!= (const xor_combine &that) const
 

Friends

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

Member Typedef Documentation

template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
typedef UniformRandomNumberGenerator1 std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::base1_type
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
typedef UniformRandomNumberGenerator2 std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::base2_type
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
typedef unsigned long std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::result_type

Constructor & Destructor Documentation

template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::xor_combine ( )
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::xor_combine ( const base1_type rng1,
const base2_type rng2 
)
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::xor_combine ( unsigned long  s)
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
template<class Gen >
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::xor_combine ( Gen &  g)
inline

Member Function Documentation

template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
const base1_type& std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::base1 ( ) const
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
const base2_type& std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::base2 ( ) const
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
result_type min std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
result_type max std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::BOOST_STATIC_CONSTANT ( int  ,
shift1  = s1 
)
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::BOOST_STATIC_CONSTANT ( int  ,
shift2  = s2 
)
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
bool std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::operator!= ( const xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 > &  that) const
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
result_type std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::operator() ( )
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
bool std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::operator== ( const xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 > &  that) const
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
void std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::seed ( )
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
void std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::seed ( unsigned long  s)
inline
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
template<class Gen >
void std::tr1::xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 >::seed ( Gen &  g)
inline

Friends And Related Function Documentation

template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
template<class CharT , class Traits >
std::basic_ostream<CharT,Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 > &  lcg 
)
friend
template<class UniformRandomNumberGenerator1 , int s1, class UniformRandomNumberGenerator2 , int s2>
template<class CharT , class Traits >
std::basic_istream<CharT,Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
xor_combine< UniformRandomNumberGenerator1, s1, UniformRandomNumberGenerator2, s2 > &  lcg 
)
friend

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