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

#include <random.hpp>

Public Types

typedef IntType result_type
 

Public Member Functions

 BOOST_STATIC_CONSTANT (IntType, modulus=m)
 
 BOOST_STATIC_CONSTANT (int, long_lag=r)
 
 BOOST_STATIC_CONSTANT (int, short_lag=s)
 
 subtract_with_carry ()
 
 subtract_with_carry (unsigned long value)
 
template<class Gen >
 subtract_with_carry (Gen &g)
 
void seed (unsigned long value=19780503ul)
 
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 subtract_with_carry &that) const
 
bool operator!= (const subtract_with_carry &that) const
 

Friends

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

Member Typedef Documentation

template<class IntType , IntType m, int s, int r>
typedef IntType std::tr1::subtract_with_carry< IntType, m, s, r >::result_type

Constructor & Destructor Documentation

template<class IntType , IntType m, int s, int r>
std::tr1::subtract_with_carry< IntType, m, s, r >::subtract_with_carry ( )
inline
template<class IntType , IntType m, int s, int r>
std::tr1::subtract_with_carry< IntType, m, s, r >::subtract_with_carry ( unsigned long  value)
inlineexplicit
template<class IntType , IntType m, int s, int r>
template<class Gen >
std::tr1::subtract_with_carry< IntType, m, s, r >::subtract_with_carry ( Gen &  g)
inline

Member Function Documentation

template<class IntType , IntType m, int s, int r>
result_type min std::tr1::subtract_with_carry< IntType, m, s, r >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline
template<class IntType , IntType m, int s, int r>
result_type max std::tr1::subtract_with_carry< IntType, m, s, r >::BOOST_PREVENT_MACRO_SUBSTITUTION ( ) const
inline
template<class IntType , IntType m, int s, int r>
std::tr1::subtract_with_carry< IntType, m, s, r >::BOOST_STATIC_CONSTANT ( IntType  ,
modulus  = m 
)
template<class IntType , IntType m, int s, int r>
std::tr1::subtract_with_carry< IntType, m, s, r >::BOOST_STATIC_CONSTANT ( int  ,
long_lag  = r 
)
template<class IntType , IntType m, int s, int r>
std::tr1::subtract_with_carry< IntType, m, s, r >::BOOST_STATIC_CONSTANT ( int  ,
short_lag  = s 
)
template<class IntType , IntType m, int s, int r>
bool std::tr1::subtract_with_carry< IntType, m, s, r >::operator!= ( const subtract_with_carry< IntType, m, s, r > &  that) const
inline
template<class IntType , IntType m, int s, int r>
result_type std::tr1::subtract_with_carry< IntType, m, s, r >::operator() ( )
inline
template<class IntType , IntType m, int s, int r>
bool std::tr1::subtract_with_carry< IntType, m, s, r >::operator== ( const subtract_with_carry< IntType, m, s, r > &  that) const
inline
template<class IntType , IntType m, int s, int r>
void std::tr1::subtract_with_carry< IntType, m, s, r >::seed ( unsigned long  value = 19780503ul)
inline
template<class IntType , IntType m, int s, int r>
template<class Gen >
void std::tr1::subtract_with_carry< IntType, m, s, r >::seed ( Gen &  g)
inline

Friends And Related Function Documentation

template<class IntType , IntType m, int s, int r>
template<class CharT , class Traits >
std::basic_ostream<CharT,Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const subtract_with_carry< IntType, m, s, r > &  lcg 
)
friend
template<class IntType , IntType m, int s, int r>
template<class CharT , class Traits >
std::basic_istream<CharT,Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
subtract_with_carry< IntType, m, s, r > &  lcg 
)
friend

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