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

represents a counter of number of packets More...

#include <counter.hpp>

Inheritance diagram for nfd::PacketCounter:
Collaboration diagram for nfd::PacketCounter:

Public Member Functions

PacketCounteroperator++ ()
 increment the counter by one More...
- Public Member Functions inherited from nfd::SimpleCounter
constexpr SimpleCounter ()
 SimpleCounter (const SimpleCounter &)=delete
SimpleCounteroperator= (const SimpleCounter &)=delete
 operator rep () const
 observe the counter More...
void set (rep value)
 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

Detailed Description

represents a counter of number of packets

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

Definition at line 77 of file counter.hpp.

Member Function Documentation

§ operator++()

PacketCounter& nfd::PacketCounter::operator++ ( )

increment the counter by one

Definition at line 83 of file counter.hpp.

References nfd::SimpleCounter::m_value.

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