std::tr1::uniform_int< _IntType > Class Template Reference
[Discrete Distributions]
List of all members.
Detailed Description
template<typename _IntType = int>
class std::tr1::uniform_int< _IntType >
Definition at line 1515 of file random.
Public Types
Public Member Functions
Friends
- template<typename _IntType1, typename _CharT, typename _Traits> std::basic_ostream< _CharT,
_Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const uniform_int< _IntType1 > &__x)
- template<typename _IntType1, typename _CharT, typename _Traits> std::basic_istream< _CharT,
_Traits > & operator>> (std::basic_istream< _CharT, _Traits > &__is, uniform_int< _IntType1 > &__x)
Member Typedef Documentation
template<typename _IntType = int>
The type of the parameters of the distribution.
Definition at line 1521 of file random.
template<typename _IntType = int>
The type of the range of the distribution.
Definition at line 1523 of file random.
Constructor & Destructor Documentation
template<typename _IntType = int>
Constructs a uniform distribution object.
Definition at line 1530 of file random.
Member Function Documentation
template<typename _IntType = int>
Gets the inclusive upper bound of the distribution range.
Definition at line 1547 of file random.
template<typename _IntType = int>
Gets the inclusive lower bound of the distribution range.
Definition at line 1540 of file random.
template<typename _IntType = int>
template<typename _UniformRandomNumberGenerator>
template<typename _IntType = int>
template<typename _UniformRandomNumberGenerator>
Gets a uniformly distributed random number in the range
.
Definition at line 1564 of file random.
template<typename _IntType = int>
Resets the distribution state.
Does nothing for the uniform integer distribution.
Definition at line 1556 of file random.
Friends And Related Function Documentation
template<typename _IntType = int>
template<typename _IntType1, typename _CharT, typename _Traits>
Inserts a uniform_int random number distribution __x
into the output stream os
.
- Parameters:
-
| __os | An output stream. |
| __x | A uniform_int random number distribution. |
- Returns:
- The output stream with the state of
__x
inserted or in an error state.
template<typename _IntType = int>
template<typename _IntType1, typename _CharT, typename _Traits>
Extracts a unform_int random number distribution __x
from the input stream __is
.
- Parameters:
-
| __is | An input stream. |
| __x | A uniform_int random number generator engine. |
- Returns:
- The input stream with
__x
extracted or in an error state.
The documentation for this class was generated from the following file: