A Discrete-Event Network Simulator
API
anonymous_namespace{sample-show-progress.cc}::Hold Class Reference

Execute a function periodically. More...

+ Inheritance diagram for anonymous_namespace{sample-show-progress.cc}::Hold:
+ Collaboration diagram for anonymous_namespace{sample-show-progress.cc}::Hold:

Public Member Functions

 Hold (Time wait, Time interval)
 
 Hold (Ptr< RandomVariableStream > rng)
 
void Event (void)
 
- Public Member Functions inherited from ns3::SimpleRefCount< Hold >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Attributes

SystemCondition m_condition
 
Time m_interval
 
Ptr< RandomVariableStreamm_rng
 
Time m_wait
 

Detailed Description

Execute a function periodically.

Definition at line 78 of file sample-show-progress.cc.

Constructor & Destructor Documentation

◆ Hold() [1/2]

anonymous_namespace{sample-show-progress.cc}::Hold::Hold ( Time  wait,
Time  interval 
)
inline

Definition at line 82 of file sample-show-progress.cc.

References ns3::Time::GetSeconds().

+ Here is the call graph for this function:

◆ Hold() [2/2]

anonymous_namespace{sample-show-progress.cc}::Hold::Hold ( Ptr< RandomVariableStream rng)
inline

Definition at line 91 of file sample-show-progress.cc.

Member Function Documentation

◆ Event()

void anonymous_namespace{sample-show-progress.cc}::Hold::Event ( void  )
inline

Member Data Documentation

◆ m_condition

SystemCondition anonymous_namespace{sample-show-progress.cc}::Hold::m_condition
private

Definition at line 114 of file sample-show-progress.cc.

◆ m_interval

Time anonymous_namespace{sample-show-progress.cc}::Hold::m_interval
private

Definition at line 116 of file sample-show-progress.cc.

◆ m_rng

Ptr<RandomVariableStream> anonymous_namespace{sample-show-progress.cc}::Hold::m_rng
private

Definition at line 113 of file sample-show-progress.cc.

◆ m_wait

Time anonymous_namespace{sample-show-progress.cc}::Hold::m_wait
private

Definition at line 115 of file sample-show-progress.cc.


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