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 Block & | wireEncode () 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 |
ForwarderStatus & | setNfdVersion (const std::string &nfdVersion) |
const time::system_clock::TimePoint & | getStartTimestamp () const |
ForwarderStatus & | setStartTimestamp (const time::system_clock::TimePoint &startTimestamp) |
const time::system_clock::TimePoint & | getCurrentTimestamp () const |
ForwarderStatus & | setCurrentTimestamp (const time::system_clock::TimePoint ¤tTimestamp) |
uint64_t | getNNameTreeEntries () const |
ForwarderStatus & | setNNameTreeEntries (uint64_t nNameTreeEntries) |
uint64_t | getNFibEntries () const |
ForwarderStatus & | setNFibEntries (uint64_t nFibEntries) |
uint64_t | getNPitEntries () const |
ForwarderStatus & | setNPitEntries (uint64_t nPitEntries) |
uint64_t | getNMeasurementsEntries () const |
ForwarderStatus & | setNMeasurementsEntries (uint64_t nMeasurementsEntries) |
uint64_t | getNCsEntries () const |
ForwarderStatus & | setNCsEntries (uint64_t nCsEntries) |
uint64_t | getNInInterests () const |
ForwarderStatus & | setNInInterests (uint64_t nInInterests) |
uint64_t | getNInData () const |
ForwarderStatus & | setNInData (uint64_t nInData) |
uint64_t | getNInNacks () const |
ForwarderStatus & | setNInNacks (uint64_t nInNacks) |
uint64_t | getNOutInterests () const |
ForwarderStatus & | setNOutInterests (uint64_t nOutInterests) |
uint64_t | getNOutData () const |
ForwarderStatus & | setNOutData (uint64_t nOutData) |
uint64_t | getNOutNacks () const |
ForwarderStatus & | setNOutNacks (uint64_t nOutNacks) |
uint64_t | getNSatisfiedInterests () const |
ForwarderStatus & | setNSatisfiedInterests (uint64_t nSatisfiedInterests) |
uint64_t | getNUnsatisfiedInterests () const |
ForwarderStatus & | setNUnsatisfiedInterests (uint64_t nUnsatisfiedInterests) |
represents NFD General Status dataset
Definition at line 36 of file forwarder-status.hpp.
ndn::nfd::ForwarderStatus::ForwarderStatus | ( | ) |
Definition at line 33 of file forwarder-status.cpp.
|
explicit |
Definition at line 50 of file forwarder-status.cpp.
References wireDecode().
size_t ndn::nfd::ForwarderStatus::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
prepend ForwarderStatus as a Content block to the encoder
The outermost Content element isn't part of ForwarderStatus structure.
Definition at line 57 of file forwarder-status.cpp.
References ndn::tlv::Content, ndn::tlv::nfd::CurrentTimestamp, ndn::tlv::nfd::NCsEntries, ndn::tlv::nfd::NfdVersion, ndn::tlv::nfd::NFibEntries, ndn::tlv::nfd::NInData, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NInNacks, ndn::tlv::nfd::NMeasurementsEntries, ndn::tlv::nfd::NNameTreeEntries, ndn::tlv::nfd::NOutData, ndn::tlv::nfd::NOutInterests, ndn::tlv::nfd::NOutNacks, ndn::tlv::nfd::NPitEntries, ndn::tlv::nfd::NSatisfiedInterests, ndn::tlv::nfd::NUnsatisfiedInterests, ndn::encoding::prependNonNegativeIntegerBlock(), ndn::encoding::prependStringBlock(), ndn::tlv::nfd::StartTimestamp, and ndn::time::toUnixTimestamp().
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().
void ndn::nfd::ForwarderStatus::wireDecode | ( | const Block & | wire | ) |
decode ForwarderStatus from a Content block
The outermost Content element isn't part of ForwarderStatus structure.
Definition at line 104 of file forwarder-status.cpp.
References ndn::tlv::Content, ndn::tlv::nfd::CurrentTimestamp, ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::time::fromUnixTimestamp(), ndn::tlv::nfd::NCsEntries, ndn::tlv::nfd::NfdVersion, ndn::tlv::nfd::NFibEntries, ndn::tlv::nfd::NInData, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NInNacks, ndn::tlv::nfd::NMeasurementsEntries, ndn::tlv::nfd::NNameTreeEntries, ndn::tlv::nfd::NOutData, ndn::tlv::nfd::NOutInterests, ndn::tlv::nfd::NOutNacks, ndn::tlv::nfd::NPitEntries, ndn::tlv::nfd::NSatisfiedInterests, ndn::tlv::nfd::NUnsatisfiedInterests, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::encoding::readString(), ndn::tlv::nfd::StartTimestamp, and ndn::Block::type().
Referenced by ForwarderStatus().
|
inline |
Definition at line 74 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNfdVersion | ( | const std::string & | nfdVersion | ) |
Definition at line 243 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 83 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setStartTimestamp | ( | const time::system_clock::TimePoint & | startTimestamp | ) |
Definition at line 251 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 92 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setCurrentTimestamp | ( | const time::system_clock::TimePoint & | currentTimestamp | ) |
Definition at line 259 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 101 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNNameTreeEntries | ( | uint64_t | nNameTreeEntries | ) |
Definition at line 267 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 110 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNFibEntries | ( | uint64_t | nFibEntries | ) |
Definition at line 275 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 119 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNPitEntries | ( | uint64_t | nPitEntries | ) |
Definition at line 283 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 128 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNMeasurementsEntries | ( | uint64_t | nMeasurementsEntries | ) |
Definition at line 291 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 137 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNCsEntries | ( | uint64_t | nCsEntries | ) |
Definition at line 299 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 146 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNInInterests | ( | uint64_t | nInInterests | ) |
Definition at line 307 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 155 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNInData | ( | uint64_t | nInData | ) |
Definition at line 315 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 164 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNInNacks | ( | uint64_t | nInNacks | ) |
Definition at line 323 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 173 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutInterests | ( | uint64_t | nOutInterests | ) |
Definition at line 331 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 182 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutData | ( | uint64_t | nOutData | ) |
Definition at line 339 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 191 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutNacks | ( | uint64_t | nOutNacks | ) |
Definition at line 347 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 200 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNSatisfiedInterests | ( | uint64_t | nSatisfiedInterests | ) |
Definition at line 355 of file forwarder-status.cpp.
References ndn::Block::reset().
|
inline |
Definition at line 209 of file forwarder-status.hpp.
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNUnsatisfiedInterests | ( | uint64_t | nUnsatisfiedInterests | ) |
Definition at line 363 of file forwarder-status.cpp.
References ndn::Block::reset().