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

contains network layer packet counters More...

#include <face-counters.hpp>

Inheritance diagram for nfd::NetworkLayerCounters:
Collaboration diagram for nfd::NetworkLayerCounters:

Public Member Functions

const PacketCountergetNInInterests () const
 incoming Interest More...
 
PacketCountergetNInInterests ()
 
const PacketCountergetNInDatas () const
 incoming Data More...
 
PacketCountergetNInDatas ()
 
const PacketCountergetNOutInterests () const
 outgoing Interest More...
 
PacketCountergetNOutInterests ()
 
const PacketCountergetNOutDatas () const
 outgoing Data More...
 
PacketCountergetNOutDatas ()
 

Protected Member Functions

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

Detailed Description

contains network layer packet counters

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

Member Function Documentation

◆ getNInInterests() [1/2]

const PacketCounter& nfd::NetworkLayerCounters::getNInInterests ( ) const
inline

incoming Interest

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

Referenced by copyTo(), and nfd::Face::Face().

◆ getNInInterests() [2/2]

PacketCounter& nfd::NetworkLayerCounters::getNInInterests ( )
inline

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

◆ getNInDatas() [1/2]

const PacketCounter& nfd::NetworkLayerCounters::getNInDatas ( ) const
inline

incoming Data

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

Referenced by copyTo(), and nfd::Face::Face().

◆ getNInDatas() [2/2]

PacketCounter& nfd::NetworkLayerCounters::getNInDatas ( )
inline

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

◆ getNOutInterests() [1/2]

const PacketCounter& nfd::NetworkLayerCounters::getNOutInterests ( ) const
inline

outgoing Interest

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

Referenced by copyTo(), and nfd::Face::Face().

◆ getNOutInterests() [2/2]

PacketCounter& nfd::NetworkLayerCounters::getNOutInterests ( )
inline

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

◆ getNOutDatas() [1/2]

const PacketCounter& nfd::NetworkLayerCounters::getNOutDatas ( ) const
inline

outgoing Data

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

Referenced by copyTo(), and nfd::Face::Face().

◆ getNOutDatas() [2/2]

PacketCounter& nfd::NetworkLayerCounters::getNOutDatas ( )
inline

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

◆ copyTo()

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

copy current obseverations to a struct

Parameters
recipientan object with set methods for counters

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

References getNInDatas(), getNInInterests(), getNOutDatas(), and getNOutInterests().

Referenced by nfd::ForwarderCounters::copyTo(), and nfd::FaceCounters::copyTo().


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