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

 TimeMinMaxAvgTotalCalculator ()
virtual ~TimeMinMaxAvgTotalCalculator ()
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.

Definition at line 40 of file time-data-calculators.h.


Constructor & Destructor Documentation

TimeMinMaxAvgTotalCalculator::TimeMinMaxAvgTotalCalculator (  ) 

Definition at line 33 of file time-data-calculators.cc.

References m_count.

TimeMinMaxAvgTotalCalculator::~TimeMinMaxAvgTotalCalculator (  )  [virtual]

Definition at line 37 of file time-data-calculators.cc.


Member Function Documentation

void 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.

Reimplemented from ns3::DataCalculator.

Definition at line 41 of file time-data-calculators.cc.

void TimeMinMaxAvgTotalCalculator::Output ( DataOutputCallback callback  )  const [virtual]
void TimeMinMaxAvgTotalCalculator::Update ( const Time  i  ) 

Definition at line 48 of file time-data-calculators.cc.

References m_count, ns3::DataCalculator::m_enabled, m_max, m_min, and m_total.


Member Data Documentation

The reference count for this object. Each aggregate has an individual reference count. When the global reference count (the sum of all reference counts) reaches zero, the object and all its aggregates is deleted.

Reimplemented from ns3::Object.

Definition at line 52 of file time-data-calculators.h.

Referenced by Output(), TimeMinMaxAvgTotalCalculator(), and Update().

Definition at line 53 of file time-data-calculators.h.

Referenced by Output(), and Update().

Definition at line 53 of file time-data-calculators.h.

Referenced by Output(), and Update().

Definition at line 53 of file time-data-calculators.h.

Referenced by Output(), and Update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:09 2009 for NS-3 by  doxygen 1.6.3