A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::DeterministicVariableImpl Class Reference
+ Inheritance diagram for ns3::DeterministicVariableImpl:

Public Member Functions

 DeterministicVariableImpl (double *d, uint32_t c)
 Constructor. More...
 
virtual RandomVariableBaseCopy (void) const
 
virtual double GetValue ()
 
- Public Member Functions inherited from ns3::RandomVariableBase
 RandomVariableBase (const RandomVariableBase &o)
 
virtual uint32_t GetInteger ()
 
RngStreamGetStream (void)
 

Private Attributes

uint32_t count
 
double * data
 
uint32_t next
 

Detailed Description

Definition at line 1345 of file random-variable.cc.

Constructor & Destructor Documentation

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.

Parameters
dPointer to array of random values to return in sequence
cNumber of values in the array

Definition at line 1374 of file random-variable.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

double ns3::DeterministicVariableImpl::GetValue ( void  )
virtual
Returns
The next value in the deterministic sequence

Implements ns3::RandomVariableBase.

Definition at line 1387 of file random-variable.cc.

References NS_LOG_FUNCTION.


The documentation for this class was generated from the following file: