represents a counter that encloses an integer value More...
#include <daemon/common/counter.hpp>
Public Types | |
typedef uint64_t | rep |
Public Member Functions | |
operator rep () const noexcept | |
observe the counter More... | |
void | set (rep value) noexcept |
replace the counter value More... | |
Protected Attributes | |
rep | m_value = 0 |
represents a counter that encloses an integer value
SimpleCounter is noncopyable, because increment should be called on the counter, not a copy of it; it's implicitly convertible to an integral type to be observed
Definition at line 38 of file counter.hpp.
typedef uint64_t nfd::SimpleCounter::rep |
Definition at line 41 of file counter.hpp.
|
inlinenoexcept |
observe the counter
Definition at line 45 of file counter.hpp.
|
inlinenoexcept |
replace the counter value
Definition at line 53 of file counter.hpp.
|
protected |
Definition at line 59 of file counter.hpp.