Public Member Functions | |
DeterministicVariableImpl (double *d, uint32_t c) | |
Constructor. | |
virtual | ~DeterministicVariableImpl () |
virtual double | GetValue () |
virtual RandomVariableBase * | Copy (void) const |
Private Attributes | |
uint32_t | count |
uint32_t | next |
double * | data |
Definition at line 1331 of file random-variable.cc.
ns3::DeterministicVariableImpl::DeterministicVariableImpl | ( | double * | d, | |
uint32_t | c | |||
) | [explicit] |
Constructor.
Creates a generator that returns successive elements of the d array on successive calls to Value(). Note that the d pointer is copied for use by the generator (shallow-copy), not its contents, so the contents of the array d points to have to remain unchanged for the use of DeterministicVariableImpl to be meaningful.
d | Pointer to array of random values to return in sequence | |
c | Number of values in the array |
Definition at line 1360 of file random-variable.cc.
Referenced by Copy().
ns3::DeterministicVariableImpl::~DeterministicVariableImpl | ( | ) | [virtual] |
Definition at line 1365 of file random-variable.cc.
RandomVariableBase * ns3::DeterministicVariableImpl::Copy | ( | void | ) | const [virtual] |
Implements ns3::RandomVariableBase.
Definition at line 1373 of file random-variable.cc.
References DeterministicVariableImpl().
double ns3::DeterministicVariableImpl::GetValue | ( | ) | [virtual] |
Implements ns3::RandomVariableBase.
Definition at line 1367 of file random-variable.cc.
uint32_t ns3::DeterministicVariableImpl::count [private] |
Definition at line 1355 of file random-variable.cc.
Referenced by GetValue().
double* ns3::DeterministicVariableImpl::data [private] |
Definition at line 1357 of file random-variable.cc.
Referenced by GetValue().
uint32_t ns3::DeterministicVariableImpl::next [private] |
Definition at line 1356 of file random-variable.cc.
Referenced by GetValue().