#include <packet-data-calculators.h>
Public Member Functions | |
PacketCounterCalculator () | |
virtual | ~PacketCounterCalculator () |
void | PacketUpdate (std::string path, Ptr< const Packet > packet) |
void | FrameUpdate (std::string path, Ptr< const Packet > packet, Mac48Address realto) |
Protected Member Functions | |
virtual void | DoDispose (void) |
Definition at line 31 of file packet-data-calculators.h.
PacketCounterCalculator::PacketCounterCalculator | ( | ) |
Definition at line 35 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS.
PacketCounterCalculator::~PacketCounterCalculator | ( | ) | [virtual] |
Definition at line 40 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS.
void PacketCounterCalculator::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::CounterCalculator< uint32_t >.
Definition at line 45 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS.
void PacketCounterCalculator::FrameUpdate | ( | std::string | path, | |
Ptr< const Packet > | packet, | |||
Mac48Address | realto | |||
) |
Definition at line 64 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS, and ns3::CounterCalculator< uint32_t >::Update().
Definition at line 54 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS, and ns3::CounterCalculator< uint32_t >::Update().