represents an item in NFD Face dataset More...
#include <face-status.hpp>
Public Member Functions | |
FaceStatus () | |
FaceStatus (const Block &block) | |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
prepend FaceStatus to the encoder More... | |
const Block & | wireEncode () const |
encode FaceStatus More... | |
void | wireDecode (const Block &wire) |
decode FaceStatus More... | |
bool | hasExpirationPeriod () const |
time::milliseconds | getExpirationPeriod () const |
FaceStatus & | setExpirationPeriod (time::milliseconds expirationPeriod) |
FaceStatus & | unsetExpirationPeriod () |
uint64_t | getNInInterests () const |
FaceStatus & | setNInInterests (uint64_t nInInterests) |
uint64_t | getNInData () const |
FaceStatus & | setNInData (uint64_t nInData) |
uint64_t | getNInNacks () const |
FaceStatus & | setNInNacks (uint64_t nInNacks) |
uint64_t | getNOutInterests () const |
FaceStatus & | setNOutInterests (uint64_t nOutInterests) |
uint64_t | getNOutData () const |
FaceStatus & | setNOutData (uint64_t nOutData) |
uint64_t | getNOutNacks () const |
FaceStatus & | setNOutNacks (uint64_t nOutNacks) |
uint64_t | getNInBytes () const |
FaceStatus & | setNInBytes (uint64_t nInBytes) |
uint64_t | getNOutBytes () const |
FaceStatus & | setNOutBytes (uint64_t nOutBytes) |
Public Member Functions inherited from ndn::nfd::FaceTraits< FaceStatus > | |
uint64_t | getFaceId () const |
FaceStatus & | setFaceId (uint64_t faceId) |
const std::string & | getRemoteUri () const |
FaceStatus & | setRemoteUri (const std::string &remoteUri) |
const std::string & | getLocalUri () const |
FaceStatus & | setLocalUri (const std::string &localUri) |
FaceScope | getFaceScope () const |
FaceStatus & | setFaceScope (FaceScope faceScope) |
FacePersistency | getFacePersistency () const |
FaceStatus & | setFacePersistency (FacePersistency facePersistency) |
LinkType | getLinkType () const |
FaceStatus & | setLinkType (LinkType linkType) |
uint64_t | getFlags () const |
FaceStatus & | setFlags (uint64_t flags) |
bool | getFlagBit (size_t bit) const |
FaceStatus & | setFlagBit (size_t bit, bool value) |
Additional Inherited Members | |
Protected Member Functions inherited from ndn::nfd::FaceTraits< FaceStatus > | |
FaceTraits () | |
Protected Attributes inherited from ndn::nfd::FaceTraits< FaceStatus > | |
uint64_t | m_faceId |
std::string | m_remoteUri |
std::string | m_localUri |
FaceScope | m_faceScope |
FacePersistency | m_facePersistency |
LinkType | m_linkType |
uint64_t | m_flags |
Block | m_wire |
represents an item in NFD Face dataset
Definition at line 36 of file face-status.hpp.
ndn::nfd::FaceStatus::FaceStatus | ( | ) |
Definition at line 34 of file face-status.cpp.
|
explicit |
Definition at line 46 of file face-status.cpp.
References wireDecode().
size_t ndn::nfd::FaceStatus::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
prepend FaceStatus to the encoder
Definition at line 53 of file face-status.cpp.
References ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::FaceScope, ndn::tlv::nfd::FaceStatus, ndn::tlv::nfd::Flags, ndn::tlv::nfd::LinkType, ndn::tlv::nfd::LocalUri, ndn::nfd::FaceTraits< FaceStatus >::m_faceId, ndn::nfd::FaceTraits< FaceStatus >::m_facePersistency, ndn::nfd::FaceTraits< FaceStatus >::m_faceScope, ndn::nfd::FaceTraits< FaceStatus >::m_flags, ndn::nfd::FaceTraits< FaceStatus >::m_linkType, ndn::nfd::FaceTraits< FaceStatus >::m_localUri, ndn::nfd::FaceTraits< FaceStatus >::m_remoteUri, ndn::nfd::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(), ndn::tlv::nfd::NInBytes, ndn::tlv::nfd::NInData, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NInNacks, ndn::tlv::nfd::NOutBytes, ndn::tlv::nfd::NOutData, ndn::tlv::nfd::NOutInterests, ndn::tlv::nfd::NOutNacks, ndn::encoding::prependNonNegativeIntegerBlock(), ndn::encoding::prependStringBlock(), and ndn::tlv::nfd::Uri.
Referenced by nfd::FaceManager::setConfigFile().
const Block & ndn::nfd::FaceStatus::wireEncode | ( | ) | const |
encode FaceStatus
Definition at line 85 of file face-status.cpp.
References ndn::Block::hasWire(), and ndn::nfd::FaceTraits< FaceStatus >::m_wire.
void ndn::nfd::FaceStatus::wireDecode | ( | const Block & | wire | ) |
decode FaceStatus
Definition at line 101 of file face-status.cpp.
References ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::optional< T >::emplace(), ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::FaceScope, ndn::tlv::nfd::FaceStatus, ndn::tlv::nfd::Flags, ndn::tlv::nfd::LinkType, ndn::tlv::nfd::LocalUri, ndn::nfd::FaceTraits< FaceStatus >::m_faceId, ndn::nfd::FaceTraits< FaceStatus >::m_facePersistency, ndn::nfd::FaceTraits< FaceStatus >::m_faceScope, ndn::nfd::FaceTraits< FaceStatus >::m_flags, ndn::nfd::FaceTraits< FaceStatus >::m_linkType, ndn::nfd::FaceTraits< FaceStatus >::m_localUri, ndn::nfd::FaceTraits< FaceStatus >::m_remoteUri, ndn::nfd::FaceTraits< FaceStatus >::m_wire, ndn::tlv::nfd::NInBytes, ndn::tlv::nfd::NInData, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NInNacks, ndn::tlv::nfd::NOutBytes, ndn::tlv::nfd::NOutData, ndn::tlv::nfd::NOutInterests, ndn::tlv::nfd::NOutNacks, ndn::nullopt, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::encoding::readString(), ndn::Block::type(), and ndn::tlv::nfd::Uri.
Referenced by FaceStatus().
|
inline |
Definition at line 62 of file face-status.hpp.
References websocketpp::lib::asio::milliseconds().
Referenced by getExpirationPeriod(), ndn::nfd::operator<<(), and ndn::nfd::operator==().
|
inline |
Definition at line 68 of file face-status.hpp.
References hasExpirationPeriod(), websocketpp::lib::asio::milliseconds(), setExpirationPeriod(), and unsetExpirationPeriod().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setExpirationPeriod | ( | time::milliseconds | expirationPeriod | ) |
Definition at line 240 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getExpirationPeriod(), and nfd::FaceManager::setConfigFile().
FaceStatus & ndn::nfd::FaceStatus::unsetExpirationPeriod | ( | ) |
Definition at line 248 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, ndn::nullopt, and ndn::Block::reset().
Referenced by getExpirationPeriod().
|
inline |
Definition at line 81 of file face-status.hpp.
References setNInInterests().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNInInterests | ( | uint64_t | nInInterests | ) |
Definition at line 256 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNInInterests(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 90 of file face-status.hpp.
References setNInData().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNInData | ( | uint64_t | nInData | ) |
Definition at line 264 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNInData(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 99 of file face-status.hpp.
References setNInNacks().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNInNacks | ( | uint64_t | nInNacks | ) |
Definition at line 272 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNInNacks(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 108 of file face-status.hpp.
References setNOutInterests().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNOutInterests | ( | uint64_t | nOutInterests | ) |
Definition at line 280 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNOutInterests(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 117 of file face-status.hpp.
References setNOutData().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNOutData | ( | uint64_t | nOutData | ) |
Definition at line 288 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNOutData(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 126 of file face-status.hpp.
References setNOutNacks().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNOutNacks | ( | uint64_t | nOutNacks | ) |
Definition at line 296 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNOutNacks(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 135 of file face-status.hpp.
References setNInBytes().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNInBytes | ( | uint64_t | nInBytes | ) |
Definition at line 304 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNInBytes(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 144 of file face-status.hpp.
References ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(), ndn::nfd::operator==(), and setNOutBytes().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
FaceStatus & ndn::nfd::FaceStatus::setNOutBytes | ( | uint64_t | nOutBytes | ) |
Definition at line 312 of file face-status.cpp.
References ndn::nfd::FaceTraits< FaceStatus >::m_wire, and ndn::Block::reset().
Referenced by getNOutBytes(), and nfd::FaceManager::setConfigFile().