NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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().

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

received bytes

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

Referenced by copyTo().

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

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

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

sent bytes

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

Referenced by copyTo().

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

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


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