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::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

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

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

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

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

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

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

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

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

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

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

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

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

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


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