A stat for counting packets. More...
#include "packet-data-calculators.h"
Inheritance diagram for ns3::PacketCounterCalculator:
Collaboration diagram for ns3::PacketCounterCalculator:Public Member Functions | |
| PacketCounterCalculator () | |
| ~PacketCounterCalculator () override | |
| void | FrameUpdate (std::string path, Ptr< const Packet > packet, Mac48Address realto) |
| Increments the packet counter by one. | |
| void | PacketUpdate (std::string path, Ptr< const Packet > packet) |
| Increments the packet counter by one. | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Register this type. | |
Protected Member Functions | |
| void | DoDispose () override |
| Dispose of this Object. | |
A stat for counting packets.
Definition at line 27 of file packet-data-calculators.h.
| PacketCounterCalculator::PacketCounterCalculator | ( | ) |
Definition at line 23 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS.
Referenced by GetTypeId().
Here is the caller graph for this function:
|
override |
Definition at line 28 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS.
|
overrideprotected |
Dispose of this Object.
Definition at line 45 of file packet-data-calculators.cc.
References ns3::CounterCalculator< T >::DoDispose(), and NS_LOG_FUNCTION_NOARGS.
Here is the call graph for this function:| void PacketCounterCalculator::FrameUpdate | ( | std::string | path, |
| Ptr< const Packet > | packet, | ||
| Mac48Address | realto ) |
Increments the packet counter by one.
| path | not used in this method |
| packet | not used in this method |
| realto | not used in this method |
Definition at line 64 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS, and ns3::CounterCalculator< T >::Update().
Here is the call graph for this function:
|
static |
Register this type.
Definition at line 35 of file packet-data-calculators.cc.
References PacketCounterCalculator(), and ns3::TypeId::SetParent().
Here is the call graph for this function:Increments the packet counter by one.
| path | not used in this method |
| packet | not used in this method |
Definition at line 54 of file packet-data-calculators.cc.
References NS_LOG_FUNCTION_NOARGS, and ns3::CounterCalculator< T >::Update().
Here is the call graph for this function: