ns3::MinMaxAvgTotalCalculator< T > Class Template Reference

#include <basic-data-calculators.h>

Inheritance diagram for ns3::MinMaxAvgTotalCalculator< T >:
Inheritance graph
[legend]
Collaboration diagram for ns3::MinMaxAvgTotalCalculator< T >:
Collaboration graph
[legend]

List of all members.

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
m_total
m_min
m_max

Detailed Description

template<typename T = uint32_t>
class ns3::MinMaxAvgTotalCalculator< T >

Definition at line 31 of file basic-data-calculators.h.


Constructor & Destructor Documentation

template<typename T >
ns3::MinMaxAvgTotalCalculator< T >::MinMaxAvgTotalCalculator (  )  [inline]
template<typename T >
ns3::MinMaxAvgTotalCalculator< T >::~MinMaxAvgTotalCalculator (  )  [inline, virtual]

Definition at line 60 of file basic-data-calculators.h.


Member Function Documentation

template<typename T >
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.

template<typename T >
void ns3::MinMaxAvgTotalCalculator< T >::Output ( DataOutputCallback callback  )  const [inline, virtual]
template<typename T>
void ns3::MinMaxAvgTotalCalculator< T >::Update ( const T  i  )  [inline]

Member Data Documentation

template<typename T = uint32_t>
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().

template<typename T = uint32_t>
T ns3::MinMaxAvgTotalCalculator< T >::m_max [protected]
template<typename T = uint32_t>
T ns3::MinMaxAvgTotalCalculator< T >::m_min [protected]
template<typename T = uint32_t>
T ns3::MinMaxAvgTotalCalculator< T >::m_total [protected]

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