Represents a counter of number of bytes. More...
#include <daemon/common/counter.hpp>
Inheritance diagram for nfd::ByteCounter:
Collaboration diagram for nfd::ByteCounter:Public Types | |
| using | rep = uint64_t |
Public Member Functions | |
| operator rep () const noexcept | |
| Return the counter's value. More... | |
| ByteCounter & | operator+= (rep n) noexcept |
| Increase the counter. More... | |
| void | set (rep value) noexcept |
| Replace the counter's value. More... | |
Protected Attributes | |
| rep | m_value = 0 |
Represents a counter of number of bytes.
Definition at line 89 of file counter.hpp.
|
inherited |
Definition at line 42 of file counter.hpp.
|
inlinenoexceptinherited |
Return the counter's value.
Definition at line 47 of file counter.hpp.
|
inlinenoexcept |
Increase the counter.
Definition at line 96 of file counter.hpp.
|
inlinenoexceptinherited |
Replace the counter's value.
Definition at line 56 of file counter.hpp.
|
protectedinherited |
Definition at line 62 of file counter.hpp.