STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Attributes | List of all members
subtract_with_carry< _Ty, _Mx, _Sx, _Rx > Class Template Reference
Inheritance diagram for subtract_with_carry< _Ty, _Mx, _Sx, _Rx >:
_Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Circ_buf< _Ty, _Rx >

Public Types

typedef subtract_with_carry< _Ty, _Mx, _Sx, _Rx > _Myt
 
typedef _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Mybase
 
- Public Types inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
typedef _Ty result_type
 
typedef _Swc_traits< _Ty, _Mx, _Rx > _Traits
 
typedef _Circ_buf< _Ty, _Rx > _Mybase
 
typedef _Swc_traits< _Ty, _Mx, _Rx >::_Seed_t _Seed_t
 

Public Member Functions

 subtract_with_carry (_Ty _X0=default_seed)
 
 subtract_with_carry (const _Myt &_Right)
 
 subtract_with_carry (_Myt &_Right)
 
template<class _Gen >
 subtract_with_carry (_Gen &_Gx)
 
- Public Member Functions inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
 _Swc_base ()
 
 _Swc_base (typename _Swc_traits< _Ty, _Mx, _Rx >::_Seed_t _X0)
 
 _Swc_base (_Gen &_Gx)
 
void seed (unsigned long _Value=19780503U)
 
void seed (_Gen &_Gx, bool _Readcy=false)
 
result_type() min () const
 
result_type() max () const
 
result_type operator() ()
 
void discard (unsigned long long _Nskip)
 
bool _Equals (const _Swc_base &_Right) const
 
basic_ostream< _Elem, _Traits > & _Write (basic_ostream< _Elem, _Traits > &_Ostr) const
 
- Public Member Functions inherited from _Circ_buf< _Ty, _Rx >
_Ty _At (int _Ix) const
 
bool _Equals (const _Circ_buf &_Right) const
 
unsigned int _Base (int _Ix=0) const
 

Static Public Attributes

static const _Ty modulus = _Mx
 
static const _Ty default_seed = 19780503U
 
- Static Public Attributes inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
static const size_t short_lag
 
static const size_t long_lag
 

Additional Inherited Members

- Public Attributes inherited from _Circ_buf< _Ty, _Rx >
unsigned int _Idx
 
_Ty _Ax [2 *_Nw]
 
- Protected Member Functions inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
void _Seed (_Gen &_Gx, bool _Readcy, const true_type &)
 
void _Seed (_Gen &_Gx, bool _Readcy, const false_type &)
 
void _Reset (_Gen &_Gx, bool _Readcy)
 
void _Setx (int _Ix, _Ty _First, _Ty _Second)
 
- Protected Attributes inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
_Swc_traits< _Ty, _Mx, _Rx >::_Cy_t _Carry
 

Member Typedef Documentation

template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
typedef _Swc_base<_Ty, _Sx, _Rx, _Swc_traits<_Ty, _Mx, _Rx> > subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::_Mybase
template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
typedef subtract_with_carry<_Ty, _Mx, _Sx, _Rx> subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::_Myt

Constructor & Destructor Documentation

template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::subtract_with_carry ( _Ty  _X0 = default_seed)
inlineexplicit
1061  : _Mybase(_X0)
1062  { // construct with default seed
1063  }
_Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Mybase
Definition: random:1054
template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::subtract_with_carry ( const _Myt _Right)
inline
1066  { // construct by copying
1067  *this = _Right;
1068  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::subtract_with_carry ( _Myt _Right)
inline
1071  { // construct by copying
1072  *this = _Right;
1073  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
template<class _Gen >
subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::subtract_with_carry ( _Gen &  _Gx)
inline
1077  : _Mybase(_Gx)
1078  { // construct with seed values from generator
1079  }
_Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Mybase
Definition: random:1054

Member Data Documentation

template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
const _Ty subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::default_seed = 19780503U
static
template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
const _Ty subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::modulus = _Mx
static

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