ns3::DeterministicVariableImpl Class Reference

Inheritance diagram for ns3::DeterministicVariableImpl:
Inheritance graph
[legend]
Collaboration diagram for ns3::DeterministicVariableImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DeterministicVariableImpl (double *d, uint32_t c)
 Constructor.
virtual ~DeterministicVariableImpl ()
virtual double GetValue ()
virtual RandomVariableBaseCopy (void) const

Private Attributes

uint32_t count
uint32_t next
double * data

Detailed Description

Definition at line 1331 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:
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.


Member Function Documentation

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]
Returns:
The next value in the deterministic sequence

Implements ns3::RandomVariableBase.

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

References count, data, and next.


Member Data Documentation

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

Referenced by GetValue().

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

Referenced by GetValue().

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

Referenced by GetValue().


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:10:28 2009 for NS-3 by  doxygen 1.6.3