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);
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
mapped_type & refresh(const key_type &key)
mapped_type & get_value(const key_type &key)