Public Member Functions | |
bool | GetEnabled () const |
void | Enable () |
void | Disable () |
void | SetKey (const std::string key) |
std::string | GetKey () const |
void | SetContext (const std::string context) |
std::string | GetContext () const |
virtual void | Start (const Time &startTime) |
virtual void | Stop (const Time &stopTime) |
virtual void | Output (DataOutputCallback &callback) const =0 |
Protected Member Functions | |
virtual void | DoDispose (void) |
Protected Attributes | |
bool | m_enabled |
std::string | m_key |
std::string | m_context |
virtual void ns3::DataCalculator::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::Object.
Reimplemented in ns3::MinMaxAvgTotalCalculator< T >, ns3::CounterCalculator< T >, ns3::PacketCounterCalculator, ns3::PacketSizeMinMaxAvgTotalCalculator, ns3::TimeMinMaxAvgTotalCalculator, ns3::MinMaxAvgTotalCalculator< uint32_t >, and ns3::CounterCalculator< uint32_t >.