represents a counter that encloses an integer value More...
#include <counter.hpp>
Public Types | |
typedef uint64_t | rep |
Public Member Functions | |
constexpr | SimpleCounter () |
SimpleCounter (const SimpleCounter &)=delete | |
SimpleCounter & | operator= (const SimpleCounter &)=delete |
operator rep () const | |
observe the counter More... | |
void | set (rep value) |
replace the counter value More... | |
Protected Attributes | |
rep | m_value |
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.
|
inline |
Definition at line 44 of file counter.hpp.
References operator=().
|
delete |
|
delete |
Referenced by SimpleCounter(), and nfd::SizeCounter< nfd::face::LpReassembler >::SizeCounter().
|
inline |
|
inline |
|
protected |
Definition at line 70 of file counter.hpp.
Referenced by operator rep(), nfd::PacketCounter::operator++(), nfd::ByteCounter::operator+=(), and set().