Factory class to create new instances of a particular random variable stream. More...
Public Member Functions | |
RngGenerator (bool anti=false) | |
Constructor. | |
Ptr< RandomVariableStream > | Create () const override |
Create a new instance of a random variable stream. | |
Private Attributes | |
bool | m_anti |
Whether to create antithetic random variable streams. | |
Factory class to create new instances of a particular random variable stream.
RNG | The type of random variable generator to create. |
Definition at line 169 of file random-variable-stream-test-suite.cc.
|
inline |
Constructor.
[in] | anti | Create antithetic streams if true . |
Definition at line 176 of file random-variable-stream-test-suite.cc.
|
inlineoverridevirtual |
Create a new instance of a random variable stream.
Implements ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.
Definition at line 182 of file random-variable-stream-test-suite.cc.
References ns3::CreateObject(), and ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >::m_anti.
|
private |
Whether to create antithetic random variable streams.
Definition at line 191 of file random-variable-stream-test-suite.cc.
Referenced by ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >::Create().