A Discrete-Event Network Simulator
API
ns3::PacketCounterCalculator Class Reference

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 ()
 
virtual ~PacketCounterCalculator ()
 
void FrameUpdate (std::string path, Ptr< const Packet > packet, Mac48Address realto)
 Increments the packet counter by one. More...
 
void PacketUpdate (std::string path, Ptr< const Packet > packet)
 Increments the packet counter by one. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Register this type. More...
 

Protected Member Functions

virtual void DoDispose (void)
 Dispose of this Object. More...
 

Detailed Description

A stat for counting packets.

Definition at line 37 of file packet-data-calculators.h.

Constructor & Destructor Documentation

◆ PacketCounterCalculator()

PacketCounterCalculator::PacketCounterCalculator ( )

Definition at line 34 of file packet-data-calculators.cc.

References NS_LOG_FUNCTION_NOARGS.

◆ ~PacketCounterCalculator()

PacketCounterCalculator::~PacketCounterCalculator ( )
virtual

Definition at line 39 of file packet-data-calculators.cc.

References NS_LOG_FUNCTION_NOARGS.

Member Function Documentation

◆ DoDispose()

void PacketCounterCalculator::DoDispose ( void  )
protectedvirtual

Dispose of this Object.

Definition at line 55 of file packet-data-calculators.cc.

References ns3::CounterCalculator< T >::DoDispose(), and NS_LOG_FUNCTION_NOARGS.

+ Here is the call graph for this function:

◆ FrameUpdate()

void PacketCounterCalculator::FrameUpdate ( std::string  path,
Ptr< const Packet packet,
Mac48Address  realto 
)

Increments the packet counter by one.

Parameters
pathnot used in this method
packetnot used in this method
realtonot used in this method

Definition at line 74 of file packet-data-calculators.cc.

References NS_LOG_FUNCTION_NOARGS, and ns3::CounterCalculator< T >::Update().

+ Here is the call graph for this function:

◆ GetTypeId()

TypeId PacketCounterCalculator::GetTypeId ( void  )
static

Register this type.

Returns
The TypeId.

Definition at line 45 of file packet-data-calculators.cc.

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ PacketUpdate()

void PacketCounterCalculator::PacketUpdate ( std::string  path,
Ptr< const Packet packet 
)

Increments the packet counter by one.

Parameters
pathnot used in this method
packetnot 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:

The documentation for this class was generated from the following files: