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

contains link layer byte counters More...

#include <face-counters.hpp>

Inheritance diagram for nfd::LinkLayerCounters:
Collaboration diagram for nfd::LinkLayerCounters:

Public Member Functions

const ByteCountergetNInBytes () const
 received bytes More...
 
ByteCountergetNInBytes ()
 
const ByteCountergetNOutBytes () const
 sent bytes More...
 
ByteCountergetNOutBytes ()
 

Protected Member Functions

template<typename R >
void copyTo (R &recipient) const
 copy current obseverations to a struct More...
 

Detailed Description

contains link layer byte counters

Definition at line 186 of file face-counters.hpp.

Member Function Documentation

◆ getNInBytes() [1/2]

const ByteCounter& nfd::LinkLayerCounters::getNInBytes ( ) const
inline

◆ getNInBytes() [2/2]

ByteCounter& nfd::LinkLayerCounters::getNInBytes ( )
inline

Definition at line 197 of file face-counters.hpp.

◆ getNOutBytes() [1/2]

const ByteCounter& nfd::LinkLayerCounters::getNOutBytes ( ) const
inline

◆ getNOutBytes() [2/2]

ByteCounter& nfd::LinkLayerCounters::getNOutBytes ( )
inline

Definition at line 210 of file face-counters.hpp.

◆ copyTo()

template<typename R >
void nfd::LinkLayerCounters::copyTo ( R &  recipient) const
inlineprotected

copy current obseverations to a struct

Parameters
recipientan object with set methods for counters

Definition at line 221 of file face-counters.hpp.

References getNInBytes(), and getNOutBytes().

Referenced by nfd::FaceCounters::copyTo().


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