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"
Collaboration diagram for ns3::UniformRandomBitGenerator: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.
Here is the call graph for this function:
|
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()().
Here is the caller graph for this function:
|
inlinestaticconstexpr |
Definition at line 46 of file uniform-random-bit-generator.h.
Referenced by operator()().
Here is the caller graph for this function:
|
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()().