Wraps a UniformRandomVariable into a class that meets the requirements of a UniformRandomBitGenerator as specified by the C++11 standard, thus allowing the usage of ns-3 style UniformRandomVariables as generators in the functions of the standard random library. More...
#include "uniform-random-bit-generator.h"
| Public Types | |
| using | result_type = uint32_t | 
| Typedef needed to meet requirements. Result type must be an unsigned integer type. | |
| Public Member Functions | |
| UniformRandomBitGenerator () | |
| Ptr< UniformRandomVariable > | GetRv () const | 
| result_type | operator() () | 
| Static Public Member Functions | |
| static constexpr result_type | max () | 
| static constexpr result_type | min () | 
| Private Attributes | |
| Ptr< UniformRandomVariable > | m_rv | 
| ns-3 style uniform random variable | |
Wraps a UniformRandomVariable into a class that meets the requirements of a UniformRandomBitGenerator as specified by the C++11 standard, thus allowing the usage of ns-3 style UniformRandomVariables as generators in the functions of the standard random library.
Definition at line 24 of file uniform-random-bit-generator.h.
Typedef needed to meet requirements. Result type must be an unsigned integer type.
Definition at line 41 of file uniform-random-bit-generator.h.
| 
 | inline | 
Definition at line 27 of file uniform-random-bit-generator.h.
References ns3::CreateObject(), and m_rv.
| 
 | inline | 
Definition at line 35 of file uniform-random-bit-generator.h.
References m_rv.
| 
 | inlinestaticconstexpr | 
Definition at line 54 of file uniform-random-bit-generator.h.
Referenced by operator()().
| 
 | inlinestaticconstexpr | 
Definition at line 46 of file uniform-random-bit-generator.h.
Referenced by operator()().
| 
 | inline | 
| 
 | private | 
ns-3 style uniform random variable
Definition at line 68 of file uniform-random-bit-generator.h.
Referenced by UniformRandomBitGenerator(), GetRv(), and operator()().