#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 |
void | increment (const id_type &) override |
counter_type | counter (const id_type &) const override |
Protected Attributes | |
std::unordered_map< id_type, counter_type > | m_counters |
Immortal CBF counters, i.e. they never expire.
Definition at line 61 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.
Reimplemented in vanetza::geonet::CbfCounterContending.
Definition at line 9 of file cbf_counter.cpp.
|
overridevirtual |
Retrieve counter value
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Definition at line 19 of file cbf_counter.cpp.
|
overridevirtual |
Increment packet counter by one
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Definition at line 14 of file cbf_counter.cpp.
|
inlineoverridevirtual |
Packet has been removed from buffer.
id | packet identifier |
Implements vanetza::geonet::CbfCounter.
Reimplemented in vanetza::geonet::CbfCounterContending.
Definition at line 65 of file cbf_counter.hpp.
|
protected |
Definition at line 70 of file cbf_counter.hpp.