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 _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Myt
 
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)
 
template<class _Gen , class = typename _Enable_if_seed_seq<_Gen, _Myt>::type>
 subtract_with_carry (_Gen &_Gx)
 
- Public Member Functions inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
 _Swc_base ()
 
 _Swc_base (_Seed_t _X0)
 
 _Swc_base (_Gen &_Gx)
 
void seed (_Seed_t _Value=default_seed)
 
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 constexpr _Ty modulus = _Mx
 
- Static Public Attributes inherited from _Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > >
static constexpr size_t short_lag
 
static constexpr size_t long_lag
 
static constexpr _Seed_t default_seed
 

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, true_type)
 
void _Seed (_Gen &_Gx, bool _Readcy, false_type)
 
void _Reset (_Gen &_Gx, bool _Readcy)
 
void _Setx (int _Ix, _Ty _Xis, _Ty _Xir)
 
- 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
1062  : _Mybase(_X0)
1063  { // construct with default seed
1064  }
_Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Mybase
Definition: random:1055
template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
template<class _Gen , class = typename _Enable_if_seed_seq<_Gen, _Myt>::type>
subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::subtract_with_carry ( _Gen &  _Gx)
inline
1069  : _Mybase(_Gx)
1070  { // construct with seed values from generator
1071  }
_Swc_base< _Ty, _Sx, _Rx, _Swc_traits< _Ty, _Mx, _Rx > > _Mybase
Definition: random:1055

Member Data Documentation

template<class _Ty, _Ty _Mx, size_t _Sx, size_t _Rx>
constexpr _Ty subtract_with_carry< _Ty, _Mx, _Sx, _Rx >::modulus = _Mx
static

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