NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::ByteCounter Class Reference

represents a counter of number of bytes More...

#include <counter.hpp>

Inheritance diagram for nfd::ByteCounter:
Collaboration diagram for nfd::ByteCounter:

Public Member Functions

ByteCounteroperator+= (rep n) noexcept
 increase the counter More...
 
- Public Member Functions inherited from nfd::SimpleCounter
 operator rep () const noexcept
 observe the counter More...
 
void set (rep value) noexcept
 replace the counter value More...
 

Additional Inherited Members

- Public Types inherited from nfd::SimpleCounter
typedef uint64_t rep
 
- Protected Attributes inherited from nfd::SimpleCounter
rep m_value = 0
 

Detailed Description

represents a counter of number of bytes

Warning
The counter value may wrap after exceeding the range of underlying integer type.

Definition at line 84 of file counter.hpp.

Member Function Documentation

◆ operator+=()

ByteCounter& nfd::ByteCounter::operator+= ( rep  n)
inlinenoexcept

increase the counter

Definition at line 90 of file counter.hpp.

References nfd::SimpleCounter::m_value.


The documentation for this class was generated from the following file: