26 #ifndef NFD_DAEMON_COMMON_COUNTER_HPP
27 #define NFD_DAEMON_COMMON_COUNTER_HPP
47 operator rep() const noexcept
132 BOOST_ASSERT(m_table !=
nullptr);
133 return m_table->size();
137 const T* m_table =
nullptr;
Represents a counter of number of bytes.
ByteCounter & operator+=(rep n) noexcept
Increase the counter.
Represents a counter of number of packets.
PacketCounter & operator++() noexcept
Increment the counter by one.
Represents a counter that encloses an integer value.
void set(rep value) noexcept
Replace the counter's value.
Provides a counter that observes the size of a table.
constexpr SizeCounter(const T *table=nullptr) noexcept
void observe(const T *table) noexcept