Public Member Functions | Protected Member Functions | Protected Attributes

ns3::TimeMinMaxAvgTotalCalculator Class Reference

#include <time-data-calculators.h>

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

List of all members.

Public Member Functions

void Update (const Time i)
virtual void Output (DataOutputCallback &callback) const

Protected Member Functions

virtual void DoDispose (void)

Protected Attributes

uint32_t m_count
Time m_total
Time m_min
Time m_max

Detailed Description

Unfortunately, templating the base MinMaxAvgTotalCalculator to operate over Time values isn't straightforward. The main issues are setting the maximum value, which can be worked around easily as it done here, and dividing to get the average, which is not as easily worked around.


Member Function Documentation

virtual void ns3::TimeMinMaxAvgTotalCalculator::DoDispose ( void   )  [protected, virtual]

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

It is safe to call GetObject from within this method.

Reimplemented from ns3::DataCalculator.


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