#include <time-data-calculators.h>
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 |
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.
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.