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

represents NFD Forwarder Status More...

#include <forwarder-status.hpp>

Classes

class  Error
 

Public Member Functions

 ForwarderStatus ()
 
 ForwarderStatus (const Block &payload)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 prepend ForwarderStatus as a Content block to the encoder More...
 
const BlockwireEncode () const
 encode ForwarderStatus as a Content block More...
 
void wireDecode (const Block &wire)
 decode ForwarderStatus from a Content block More...
 
const std::string & getNfdVersion () const
 
ForwarderStatussetNfdVersion (const std::string &nfdVersion)
 
const time::system_clock::TimePointgetStartTimestamp () const
 
ForwarderStatussetStartTimestamp (const time::system_clock::TimePoint &startTimestamp)
 
const time::system_clock::TimePointgetCurrentTimestamp () const
 
ForwarderStatussetCurrentTimestamp (const time::system_clock::TimePoint &currentTimestamp)
 
size_t getNNameTreeEntries () const
 
ForwarderStatussetNNameTreeEntries (size_t nNameTreeEntries)
 
size_t getNFibEntries () const
 
ForwarderStatussetNFibEntries (size_t nFibEntries)
 
size_t getNPitEntries () const
 
ForwarderStatussetNPitEntries (size_t nPitEntries)
 
size_t getNMeasurementsEntries () const
 
ForwarderStatussetNMeasurementsEntries (size_t nMeasurementsEntries)
 
size_t getNCsEntries () const
 
ForwarderStatussetNCsEntries (size_t nCsEntries)
 
uint64_t getNInInterests () const
 
ForwarderStatussetNInInterests (uint64_t nInInterests)
 
uint64_t getNInDatas () const
 
ForwarderStatussetNInDatas (uint64_t nInDatas)
 
uint64_t getNInNacks () const
 
ForwarderStatussetNInNacks (uint64_t nInNacks)
 
uint64_t getNOutInterests () const
 
ForwarderStatussetNOutInterests (uint64_t nOutInterests)
 
uint64_t getNOutDatas () const
 
ForwarderStatussetNOutDatas (uint64_t nOutDatas)
 
uint64_t getNOutNacks () const
 
ForwarderStatussetNOutNacks (uint64_t nOutNacks)
 

Detailed Description

represents NFD Forwarder Status

See also
http://redmine.named-data.net/projects/nfd/wiki/ForwarderStatus

Definition at line 36 of file forwarder-status.hpp.

Constructor & Destructor Documentation

◆ ForwarderStatus() [1/2]

ndn::nfd::ForwarderStatus::ForwarderStatus ( )

Definition at line 36 of file forwarder-status.cpp.

Referenced by ndn::nfd::ForwarderStatus::Error::Error().

◆ ForwarderStatus() [2/2]

ndn::nfd::ForwarderStatus::ForwarderStatus ( const Block payload)
explicit

Definition at line 53 of file forwarder-status.cpp.

References wireDecode().

Member Function Documentation

◆ wireEncode() [1/2]

◆ wireEncode() [2/2]

const Block & ndn::nfd::ForwarderStatus::wireEncode ( ) const

encode ForwarderStatus as a Content block

The outermost Content element isn't part of ForwardStatus structure.

Definition at line 106 of file forwarder-status.cpp.

References ndn::Block::hasWire().

Referenced by ndn::nfd::ForwarderStatus::Error::Error().

◆ wireDecode()

◆ getNfdVersion()

const std::string& ndn::nfd::ForwarderStatus::getNfdVersion ( ) const
inline

Definition at line 78 of file forwarder-status.hpp.

References setNfdVersion().

◆ setNfdVersion()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNfdVersion ( const std::string &  nfdVersion)

◆ getStartTimestamp()

const time::system_clock::TimePoint& ndn::nfd::ForwarderStatus::getStartTimestamp ( ) const
inline

Definition at line 87 of file forwarder-status.hpp.

References setStartTimestamp().

◆ setStartTimestamp()

ForwarderStatus & ndn::nfd::ForwarderStatus::setStartTimestamp ( const time::system_clock::TimePoint startTimestamp)

◆ getCurrentTimestamp()

const time::system_clock::TimePoint& ndn::nfd::ForwarderStatus::getCurrentTimestamp ( ) const
inline

Definition at line 96 of file forwarder-status.hpp.

References setCurrentTimestamp().

◆ setCurrentTimestamp()

ForwarderStatus & ndn::nfd::ForwarderStatus::setCurrentTimestamp ( const time::system_clock::TimePoint currentTimestamp)

◆ getNNameTreeEntries()

size_t ndn::nfd::ForwarderStatus::getNNameTreeEntries ( ) const
inline

Definition at line 105 of file forwarder-status.hpp.

References setNNameTreeEntries().

◆ setNNameTreeEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNNameTreeEntries ( size_t  nNameTreeEntries)

◆ getNFibEntries()

size_t ndn::nfd::ForwarderStatus::getNFibEntries ( ) const
inline

Definition at line 114 of file forwarder-status.hpp.

References setNFibEntries().

◆ setNFibEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNFibEntries ( size_t  nFibEntries)

◆ getNPitEntries()

size_t ndn::nfd::ForwarderStatus::getNPitEntries ( ) const
inline

Definition at line 123 of file forwarder-status.hpp.

References setNPitEntries().

◆ setNPitEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNPitEntries ( size_t  nPitEntries)

◆ getNMeasurementsEntries()

size_t ndn::nfd::ForwarderStatus::getNMeasurementsEntries ( ) const
inline

Definition at line 132 of file forwarder-status.hpp.

References setNMeasurementsEntries().

◆ setNMeasurementsEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNMeasurementsEntries ( size_t  nMeasurementsEntries)

◆ getNCsEntries()

size_t ndn::nfd::ForwarderStatus::getNCsEntries ( ) const
inline

Definition at line 141 of file forwarder-status.hpp.

References setNCsEntries().

◆ setNCsEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNCsEntries ( size_t  nCsEntries)

◆ getNInInterests()

uint64_t ndn::nfd::ForwarderStatus::getNInInterests ( ) const
inline

Definition at line 150 of file forwarder-status.hpp.

References setNInInterests().

◆ setNInInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInInterests ( uint64_t  nInInterests)

◆ getNInDatas()

uint64_t ndn::nfd::ForwarderStatus::getNInDatas ( ) const
inline

Definition at line 159 of file forwarder-status.hpp.

References setNInDatas().

◆ setNInDatas()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInDatas ( uint64_t  nInDatas)

◆ getNInNacks()

uint64_t ndn::nfd::ForwarderStatus::getNInNacks ( ) const
inline

Definition at line 168 of file forwarder-status.hpp.

References setNInNacks().

◆ setNInNacks()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInNacks ( uint64_t  nInNacks)

◆ getNOutInterests()

uint64_t ndn::nfd::ForwarderStatus::getNOutInterests ( ) const
inline

Definition at line 177 of file forwarder-status.hpp.

References setNOutInterests().

◆ setNOutInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutInterests ( uint64_t  nOutInterests)

◆ getNOutDatas()

uint64_t ndn::nfd::ForwarderStatus::getNOutDatas ( ) const
inline

Definition at line 186 of file forwarder-status.hpp.

References setNOutDatas().

◆ setNOutDatas()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutDatas ( uint64_t  nOutDatas)

◆ getNOutNacks()

uint64_t ndn::nfd::ForwarderStatus::getNOutNacks ( ) const
inline

Definition at line 195 of file forwarder-status.hpp.

References setNOutNacks().

◆ setNOutNacks()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutNacks ( uint64_t  nOutNacks)

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