1#include <vanetza/geonet/cbf_counter.hpp>
21 counter_type count = 0;
22 auto found = m_counters.find(
id);
23 if (found != m_counters.end()) {
24 count = found->second;
39CbfCounterFading::CbfCounterFading(
Runtime& rt, Clock::duration lifetime) :
42 m_counters.set_lifetime(lifetime);
47 ++m_counters.refresh(
id);
48 m_counters.drop_expired();
53 ++m_counters.get_value(
id);
58 auto* count = m_counters.get_value_ptr(
id);
59 return count ? *count : 0;
void add(const id_type &) override
void remove(const id_type &) override
void increment(const id_type &) override
void add(const id_type &) override
counter_type counter(const id_type &) const override
counter_type counter(const id_type &) const override
void add(const id_type &) override
void increment(const id_type &) override