Inheritance diagram for ns3::ConstantVariableImpl:
Collaboration diagram for ns3::ConstantVariableImpl:Public Member Functions | |
| ConstantVariableImpl () | |
| Construct a ConstantVariableImpl RNG that returns zero every sample. More... | |
| ConstantVariableImpl (double c) | |
| Construct a ConstantVariableImpl RNG that returns the specified value every sample. More... | |
| ConstantVariableImpl (const ConstantVariableImpl &c) | |
| virtual RandomVariableBase * | Copy (void) const |
| virtual uint32_t | GetInteger () |
| virtual double | GetValue () |
| void | NewConstant (double c) |
| Specify a new constant RNG for this generator. More... | |
Public Member Functions inherited from ns3::RandomVariableBase | |
| RandomVariableBase () | |
| RandomVariableBase (const RandomVariableBase &o) | |
| virtual | ~RandomVariableBase () |
| RngStream * | GetStream (void) |
Private Attributes | |
| double | m_const |
Definition at line 297 of file random-variable.cc.
| ns3::ConstantVariableImpl::ConstantVariableImpl | ( | ) |
Construct a ConstantVariableImpl RNG that returns zero every sample.
Definition at line 332 of file random-variable.cc.
References NS_LOG_FUNCTION.
Referenced by Copy().
Here is the caller graph for this function:| ns3::ConstantVariableImpl::ConstantVariableImpl | ( | double | c | ) |
Construct a ConstantVariableImpl RNG that returns the specified value every sample.
| c | Unchanging value for this RNG. |
Definition at line 338 of file random-variable.cc.
References NS_LOG_FUNCTION.
| ns3::ConstantVariableImpl::ConstantVariableImpl | ( | const ConstantVariableImpl & | c | ) |
Definition at line 344 of file random-variable.cc.
References NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 369 of file random-variable.cc.
References ConstantVariableImpl(), and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
virtual |
Reimplemented from ns3::RandomVariableBase.
Definition at line 363 of file random-variable.cc.
References m_const, and NS_LOG_FUNCTION.
|
virtual |
Implements ns3::RandomVariableBase.
Definition at line 357 of file random-variable.cc.
References m_const, and NS_LOG_FUNCTION.
Referenced by ns3::operator<<().
Here is the caller graph for this function:| void ns3::ConstantVariableImpl::NewConstant | ( | double | c | ) |
Specify a new constant RNG for this generator.
| c | New constant value for this RNG. |
Definition at line 351 of file random-variable.cc.
References m_const, and NS_LOG_FUNCTION.
|
private |
Definition at line 329 of file random-variable.cc.
Referenced by GetInteger(), GetValue(), and NewConstant().