#include <basic-data-calculators.h>
Public Member Functions | |
MinMaxAvgTotalCalculator () | |
virtual | ~MinMaxAvgTotalCalculator () |
void | Update (const T i) |
virtual void | Output (DataOutputCallback &callback) const |
Protected Member Functions | |
virtual void | DoDispose (void) |
Protected Attributes | |
uint32_t | m_count |
T | m_total |
T | m_min |
T | m_max |
Definition at line 31 of file basic-data-calculators.h.
ns3::MinMaxAvgTotalCalculator< T >::MinMaxAvgTotalCalculator | ( | ) | [inline] |
Definition at line 51 of file basic-data-calculators.h.
References ns3::MinMaxAvgTotalCalculator< T >::m_count, ns3::MinMaxAvgTotalCalculator< T >::m_max, ns3::MinMaxAvgTotalCalculator< T >::m_min, and ns3::MinMaxAvgTotalCalculator< T >::m_total.
ns3::MinMaxAvgTotalCalculator< T >::~MinMaxAvgTotalCalculator | ( | ) | [inline, virtual] |
Definition at line 60 of file basic-data-calculators.h.
void ns3::MinMaxAvgTotalCalculator< T >::DoDispose | ( | void | ) | [inline, 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.
Reimplemented in ns3::PacketSizeMinMaxAvgTotalCalculator.
Definition at line 65 of file basic-data-calculators.h.
void ns3::MinMaxAvgTotalCalculator< T >::Output | ( | DataOutputCallback & | callback | ) | const [inline, virtual] |
Implements ns3::DataCalculator.
Definition at line 90 of file basic-data-calculators.h.
References ns3::MinMaxAvgTotalCalculator< T >::m_count, ns3::DataCalculator::m_key, ns3::MinMaxAvgTotalCalculator< T >::m_max, ns3::MinMaxAvgTotalCalculator< T >::m_min, ns3::MinMaxAvgTotalCalculator< T >::m_total, and ns3::DataOutputCallback::OutputSingleton().
void ns3::MinMaxAvgTotalCalculator< T >::Update | ( | const T | i | ) | [inline] |
uint32_t ns3::MinMaxAvgTotalCalculator< T >::m_count [protected] |
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 38 of file basic-data-calculators.h.
Referenced by ns3::MinMaxAvgTotalCalculator< T >::MinMaxAvgTotalCalculator(), ns3::MinMaxAvgTotalCalculator< T >::Output(), and ns3::MinMaxAvgTotalCalculator< T >::Update().
T ns3::MinMaxAvgTotalCalculator< T >::m_max [protected] |
Definition at line 39 of file basic-data-calculators.h.
Referenced by ns3::MinMaxAvgTotalCalculator< T >::MinMaxAvgTotalCalculator(), ns3::MinMaxAvgTotalCalculator< T >::Output(), and ns3::MinMaxAvgTotalCalculator< T >::Update().
T ns3::MinMaxAvgTotalCalculator< T >::m_min [protected] |
Definition at line 39 of file basic-data-calculators.h.
Referenced by ns3::MinMaxAvgTotalCalculator< T >::MinMaxAvgTotalCalculator(), ns3::MinMaxAvgTotalCalculator< T >::Output(), and ns3::MinMaxAvgTotalCalculator< T >::Update().
T ns3::MinMaxAvgTotalCalculator< T >::m_total [protected] |
Definition at line 39 of file basic-data-calculators.h.
Referenced by ns3::MinMaxAvgTotalCalculator< T >::MinMaxAvgTotalCalculator(), ns3::MinMaxAvgTotalCalculator< T >::Output(), and ns3::MinMaxAvgTotalCalculator< T >::Update().