#include <cbf_counter.hpp>
Public Types | |
using | id_type = CbfPacketIdentifier |
using | counter_type = std::size_t |
Public Member Functions | |
void | add (const id_type &) override |
void | remove (const id_type &) override |
virtual void | increment (const id_type &id)=0 |
virtual counter_type | counter (const id_type &id) const =0 |
Private Member Functions | |
void | increment (const id_type &) override |
counter_type | counter (const id_type &) const override |
Private Attributes | |
std::unordered_map< id_type, counter_type > | m_counters |
Remembers only counter values for packets currently contending, i.e. stored in CBF buffer.
Definition at line 77 of file cbf_counter.hpp.
|
inherited |
Definition at line 27 of file cbf_counter.hpp.
|
inherited |
Definition at line 26 of file cbf_counter.hpp.
|
overridevirtual |
Packet has been added to buffer
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Definition at line 29 of file cbf_counter.cpp.
|
overridevirtualinherited |
Retrieve counter value
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Definition at line 19 of file cbf_counter.cpp.
|
pure virtualinherited |
Retrieve counter value
id | packet identifier |
Implemented in vanetza::geonet::CbfCounterImmortal, and vanetza::geonet::CbfCounterFading.
|
overridevirtualinherited |
Increment packet counter by one
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Definition at line 14 of file cbf_counter.cpp.
|
pure virtualinherited |
Increment packet counter by one
id | packet identifier |
Implemented in vanetza::geonet::CbfCounterImmortal, and vanetza::geonet::CbfCounterFading.
|
overridevirtual |
Packet has been removed from buffer.
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Definition at line 34 of file cbf_counter.cpp.
|
protectedinherited |
Definition at line 70 of file cbf_counter.hpp.