std::xor_combine(3)

std::xor_combine3

Detailed Description

template<class _UniformRandomNumberGenerator1, int __s1, class _UniformRandomNumberGenerator2, int __s2> class std::xor_combine< _UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2, __s2 >

A random number generator adaptor class that combines two random number generator engines into a single output sequence.

Definition at line 1224 of file tr1_impl/random.

Public Types

typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) > _Result_type1
typedef _UniformRandomNumberGenerator1 base1_type
typedef _UniformRandomNumberGenerator2 base2_type
typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) > _Result_type2::__type result_type

Public Member Functions

const base1_type & base1 () const
const base2_type & base2 () const
result_type max () const
result_type min () const
result_type operator() ()
template<class _Gen> void seed (_Gen &__g)
void seed ()
typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) > sizeof (_Result_type2))
template<class _Gen> xor_combine (_Gen &__g)
xor_combine (unsigned long __s)
xor_combine (const base1_type &__rng1, const base2_type &__rng2)

Static Public Attributes

static const int shift1
static const int shift2

Friends

bool operator!= (const xor_combine &__lhs, const xor_combine &__rhs)
template<class _UniformRandomNumberGenerator11, int __s11, class _UniformRandomNumberGenerator21, int __s21, typename _CharT, typename _Traits> std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const xor_combine< _UniformRandomNumberGenerator11, __s11, _UniformRandomNumberGenerator21, __s21 > &__x)
bool operator== (const xor_combine &__lhs, const xor_combine &__rhs)
template<class _UniformRandomNumberGenerator11, int __s11, class _UniformRandomNumberGenerator21, int __s21, typename _CharT, typename _Traits> std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > &__is, xor_combine< _UniformRandomNumberGenerator11, __s11, _UniformRandomNumberGenerator21, __s21 > &__x)

Member Typedef Documentation

template<class _UniformRandomNumberGenerator1, int __s1, class _UniformRandomNumberGenerator2, int __s2> typedef _UniformRandomNumberGenerator1 std::xor_combine< _UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2, __s2 >::base1_type

The type of the first underlying generator engine.

Definition at line 1233 of file tr1_impl/random.

template<class _UniformRandomNumberGenerator1, int __s1, class _UniformRandomNumberGenerator2, int __s2> typedef _UniformRandomNumberGenerator2 std::xor_combine< _UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2, __s2 >::base2_type

The type of the second underlying generator engine.

Definition at line 1235 of file tr1_impl/random.

Member Function Documentation

template<class _UniformRandomNumberGenerator1, int __s1, class _UniformRandomNumberGenerator2, int __s2> result_type std::xor_combine< _UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2, __s2 >::operator() () [inline]

Gets the next random number in the sequence.

Definition at line 1305 of file tr1_impl/random.

template<class _UniformRandomNumberGenerator1, int __s1, class _UniformRandomNumberGenerator2, int __s2> typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) > std::xor_combine< _UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2, __s2 >::sizeof (_Result_type2)

The type of the generated random value.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From libstdc++6-4.3-doc 4.3.2-1.1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.