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

represents NFD General Status dataset 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)
 
uint64_t getNNameTreeEntries () const
 
ForwarderStatussetNNameTreeEntries (uint64_t nNameTreeEntries)
 
uint64_t getNFibEntries () const
 
ForwarderStatussetNFibEntries (uint64_t nFibEntries)
 
uint64_t getNPitEntries () const
 
ForwarderStatussetNPitEntries (uint64_t nPitEntries)
 
uint64_t getNMeasurementsEntries () const
 
ForwarderStatussetNMeasurementsEntries (uint64_t nMeasurementsEntries)
 
uint64_t getNCsEntries () const
 
ForwarderStatussetNCsEntries (uint64_t nCsEntries)
 
uint64_t getNInInterests () const
 
ForwarderStatussetNInInterests (uint64_t nInInterests)
 
uint64_t getNInData () const
 
ForwarderStatussetNInData (uint64_t nInData)
 
uint64_t getNInNacks () const
 
ForwarderStatussetNInNacks (uint64_t nInNacks)
 
uint64_t getNOutInterests () const
 
ForwarderStatussetNOutInterests (uint64_t nOutInterests)
 
uint64_t getNOutData () const
 
ForwarderStatussetNOutData (uint64_t nOutData)
 
uint64_t getNOutNacks () const
 
ForwarderStatussetNOutNacks (uint64_t nOutNacks)
 
uint64_t getNSatisfiedInterests () const
 
ForwarderStatussetNSatisfiedInterests (uint64_t nSatisfiedInterests)
 
uint64_t getNUnsatisfiedInterests () const
 
ForwarderStatussetNUnsatisfiedInterests (uint64_t nUnsatisfiedInterests)
 

Detailed Description

represents NFD General Status dataset

See also
https://redmine.named-data.net/projects/nfd/wiki/ForwarderStatus#General-Status-Dataset

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

Constructor & Destructor Documentation

◆ ForwarderStatus() [1/2]

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

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

◆ ForwarderStatus() [2/2]

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

Definition at line 50 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 ForwarderStatus structure.

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

References ndn::Block::hasWire().

◆ wireDecode()

◆ getNfdVersion()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNfdVersion()

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

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

References ndn::Block::reset().

◆ getStartTimestamp()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setStartTimestamp()

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

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

References ndn::Block::reset().

◆ getCurrentTimestamp()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setCurrentTimestamp()

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

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

References ndn::Block::reset().

◆ getNNameTreeEntries()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNNameTreeEntries()

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

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

References ndn::Block::reset().

◆ getNFibEntries()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNFibEntries()

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

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

References ndn::Block::reset().

◆ getNPitEntries()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNPitEntries()

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

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

References ndn::Block::reset().

◆ getNMeasurementsEntries()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNMeasurementsEntries()

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

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

References ndn::Block::reset().

◆ getNCsEntries()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNCsEntries()

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

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

References ndn::Block::reset().

◆ getNInInterests()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNInInterests()

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

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

References ndn::Block::reset().

◆ getNInData()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNInData()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInData ( uint64_t  nInData)

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

References ndn::Block::reset().

◆ getNInNacks()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNInNacks()

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

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

References ndn::Block::reset().

◆ getNOutInterests()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNOutInterests()

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

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

References ndn::Block::reset().

◆ getNOutData()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNOutData()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutData ( uint64_t  nOutData)

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

References ndn::Block::reset().

◆ getNOutNacks()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNOutNacks()

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

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

References ndn::Block::reset().

◆ getNSatisfiedInterests()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNSatisfiedInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNSatisfiedInterests ( uint64_t  nSatisfiedInterests)

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

References ndn::Block::reset().

◆ getNUnsatisfiedInterests()

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

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

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setNUnsatisfiedInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNUnsatisfiedInterests ( uint64_t  nUnsatisfiedInterests)

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

References ndn::Block::reset().


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