STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
_Mult_prec< _Ty, _Ax, _Cx, _Mx > Class Template Reference

Public Member Functions

 _Mult_prec (_Ty _Val=0)
 
_Ty operator() ()
 

Public Attributes

_Ty _Prev
 

Constructor & Destructor Documentation

template<class _Ty , _Max_type _Ax, _Max_type _Cx, _Max_type _Mx>
_Mult_prec< _Ty, _Ax, _Cx, _Mx >::_Mult_prec ( _Ty  _Val = 0)
inline
388  : _Prev(_Val)
389  { // construct
390  }
_Ty _Prev
Definition: random:402
_FwdIt const _Ty _Val
Definition: algorithm:1938

Member Function Documentation

template<class _Ty , _Max_type _Ax, _Max_type _Cx, _Max_type _Mx>
_Ty _Mult_prec< _Ty, _Ax, _Cx, _Mx >::operator() ( )
inline
393  { // return next value
394  _MP_arr _Wx;
395  _MP_Mul(_Wx, _Prev, _Ax);
396  _MP_Add(_Wx, _Cx);
397  _MP_Rem(_Wx, _Mx);
398  _Prev = _MP_Get(_Wx);
399  return (_Prev);
400  }
_Max_type _MP_arr[_MP_len]
Definition: random:343
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _MP_Mul(_MP_arr, _Max_type, _Max_type)
_CRTIMP2_PURE _Max_type __CLRCALL_PURE_OR_CDECL _MP_Get(_MP_arr)
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _MP_Rem(_MP_arr, _Max_type)
_Ty _Prev
Definition: random:402
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _MP_Add(_MP_arr, _Max_type)

Member Data Documentation

template<class _Ty , _Max_type _Ax, _Max_type _Cx, _Max_type _Mx>
_Ty _Mult_prec< _Ty, _Ax, _Cx, _Mx >::_Prev

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