SatCat5
satcat5::eth::SwitchLogStatsStatic< SIZE > Class Template Reference

Detailed Description

template<unsigned SIZE = satcat5::eth::PMASK_SIZE>
class satcat5::eth::SwitchLogStatsStatic< SIZE >

Static allocation wrapper for eth::SwitchLogStats.

Definition at line 203 of file eth_sw_log.h.

#include <eth_sw_log.h>

Inheritance diagram for satcat5::eth::SwitchLogStatsStatic< SIZE >:
[legend]
Collaboration diagram for satcat5::eth::SwitchLogStatsStatic< SIZE >:
[legend]

Public Member Functions

TrafficStats get_port (unsigned idx)
 Read most recent statistics for the Nth port. More...
 
void log_packet (const satcat5::eth::SwitchLogMessage &msg) override
 Process each packet event.
 

Protected Attributes

satcat5::eth::SwitchLogStats::TrafficStats m_stats_buffer [SIZE]
 
TrafficStats *const m_stats
 Working counters.
 
const unsigned m_size
 Buffer size.
 

Private Attributes

satcat5::eth::SwitchLogHandlerm_next
 

Member Function Documentation

◆ get_port()

SwitchLogStats::TrafficStats SwitchLogStats::get_port ( unsigned  idx)
inherited

Read most recent statistics for the Nth port.

Calling this method resets all counters for the requested port.

Definition at line 211 of file eth_sw_log.cc.


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