A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Bench Class Reference

Bench class. More...

Public Member Functions

 Bench (const uint32_t population, const uint32_t total)
 constructor More...
 
void RunBench (void)
 Run function. More...
 
void SetPopulation (const uint32_t population)
 Set population function. More...
 
void SetRandomStream (Ptr< RandomVariableStream > stream)
 Set random stream. More...
 
void SetTotal (const uint32_t total)
 Set total function. More...
 

Private Member Functions

void Cb (void)
 callback function More...
 

Private Attributes

uint32_t m_count
 count More...
 
uint32_t m_population
 population More...
 
Ptr< RandomVariableStreamm_rand
 random variable More...
 
uint32_t m_total
 total More...
 

Detailed Description

Bench class.

Definition at line 43 of file bench-simulator.cc.

Constructor & Destructor Documentation

◆ Bench()

Bench::Bench ( const uint32_t  population,
const uint32_t  total 
)
inline

constructor

Parameters
populationthe population
totalthe total

Definition at line 51 of file bench-simulator.cc.

Member Function Documentation

◆ Cb()

void Bench::Cb ( void  )
private

callback function

Definition at line 134 of file bench-simulator.cc.

References DEB, ns3::NanoSeconds(), ns3::Simulator::Now(), and ns3::Simulator::Schedule().

Referenced by RunBench().

◆ RunBench()

void Bench::RunBench ( void  )

◆ SetPopulation()

void Bench::SetPopulation ( const uint32_t  population)
inline

Set population function.

Parameters
populationthe population

Definition at line 71 of file bench-simulator.cc.

◆ SetRandomStream()

void Bench::SetRandomStream ( Ptr< RandomVariableStream stream)
inline

Set random stream.

Parameters
streamthe random variable stream

Definition at line 62 of file bench-simulator.cc.

◆ SetTotal()

void Bench::SetTotal ( const uint32_t  total)
inline

Set total function.

Parameters
total

Definition at line 80 of file bench-simulator.cc.

Member Data Documentation

◆ m_count

uint32_t Bench::m_count
private

count

Definition at line 94 of file bench-simulator.cc.

◆ m_population

uint32_t Bench::m_population
private

population

Definition at line 92 of file bench-simulator.cc.

◆ m_rand

Ptr<RandomVariableStream> Bench::m_rand
private

random variable

Definition at line 91 of file bench-simulator.cc.

◆ m_total

uint32_t Bench::m_total
private

total

Definition at line 93 of file bench-simulator.cc.


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