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. More... | |
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 More... | |
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 35 of file uniform-random-bit-generator.h.
using ns3::UniformRandomBitGenerator::result_type = uint32_t |
Typedef needed to meet requirements. Result type must be an unsigned integer type.
Definition at line 52 of file uniform-random-bit-generator.h.
|
inline |
Definition at line 38 of file uniform-random-bit-generator.h.
|
inline |
Definition at line 46 of file uniform-random-bit-generator.h.
References m_rv.
|
inlinestaticconstexpr |
Definition at line 65 of file uniform-random-bit-generator.h.
References max.
Referenced by operator()().
|
inlinestaticconstexpr |
Definition at line 57 of file uniform-random-bit-generator.h.
Referenced by operator()().
|
inline |
Definition at line 73 of file uniform-random-bit-generator.h.
References ns3::UniformRandomVariable::GetInteger(), m_rv, max(), and min().
|
private |
ns-3 style uniform random variable
Definition at line 79 of file uniform-random-bit-generator.h.
Referenced by GetRv(), and operator()().