Collaboration diagram for Bench: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< RandomVariableStream > | m_rand |
| random variable More... | |
| uint32_t | m_total |
| total More... | |
Bench class.
Definition at line 43 of file bench-simulator.cc.
constructor
| population | the population |
| total | the total |
Definition at line 51 of file bench-simulator.cc.
|
private |
callback function
Definition at line 134 of file bench-simulator.cc.
References Cb(), DEB, ns3::RandomVariableStream::GetValue(), m_count, m_rand, m_total, ns3::NanoSeconds(), and ns3::Now().
Referenced by Cb(), and RunBench().
Here is the call graph for this function:
Here is the caller graph for this function:| void Bench::RunBench | ( | void | ) |
Run function.
Definition at line 98 of file bench-simulator.cc.
References Cb(), DEB, ns3::SystemWallClockMs::End(), g_fwidth, ns3::RandomVariableStream::GetValue(), LOG, m_count, m_population, m_rand, ns3::NanoSeconds(), and ns3::SystemWallClockMs::Start().
Here is the call graph for this function:
|
inline |
Set population function.
| population | the population |
Definition at line 71 of file bench-simulator.cc.
References m_population.
|
inline |
Set random stream.
| stream | the random variable stream |
Definition at line 62 of file bench-simulator.cc.
References m_rand.
|
inline |
Set total function.
| total |
Definition at line 80 of file bench-simulator.cc.
References m_total.
|
private |
|
private |
population
Definition at line 92 of file bench-simulator.cc.
Referenced by RunBench(), and SetPopulation().
|
private |
random variable
Definition at line 91 of file bench-simulator.cc.
Referenced by Cb(), RunBench(), and SetRandomStream().
|
private |