represents Face status More...
#include <nfd-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 |
const time::milliseconds & | getExpirationPeriod () const |
FaceStatus & | setExpirationPeriod (const time::milliseconds &expirationPeriod) |
uint64_t | getNInInterests () const |
FaceStatus & | setNInInterests (uint64_t nInInterests) |
uint64_t | getNInDatas () const |
FaceStatus & | setNInDatas (uint64_t nInDatas) |
uint64_t | getNOutInterests () const |
FaceStatus & | setNOutInterests (uint64_t nOutInterests) |
uint64_t | getNOutDatas () const |
FaceStatus & | setNOutDatas (uint64_t nOutDatas) |
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 > | |
FaceTraits () | |
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) |
Protected Member Functions | |
void | wireReset () const |
Additional Inherited Members | |
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 |
represents Face status
Definition at line 37 of file nfd-face-status.hpp.
ndn::nfd::FaceStatus::FaceStatus | ( | ) |
Definition at line 36 of file nfd-face-status.cpp.
|
explicit |
Definition at line 47 of file nfd-face-status.cpp.
References wireDecode().
size_t ndn::nfd::FaceStatus::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
prepend FaceStatus to the encoder
Definition at line 54 of file nfd-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::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_linkType, ndn::nfd::FaceTraits< FaceStatus >::m_localUri, ndn::nfd::FaceTraits< FaceStatus >::m_remoteUri, ndn::tlv::nfd::NInBytes, ndn::tlv::nfd::NInDatas, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NOutBytes, ndn::tlv::nfd::NOutDatas, ndn::tlv::nfd::NOutInterests, ndn::encoding::prependNonNegativeIntegerBlock(), and ndn::tlv::nfd::Uri.
Referenced by nfd::FaceStatusPublisher::generate(), and nfd::FaceQueryStatusPublisher::generate().
const Block & ndn::nfd::FaceStatus::wireEncode | ( | ) | const |
encode FaceStatus
Definition at line 99 of file nfd-face-status.cpp.
References ndn::Block::hasWire().
void ndn::nfd::FaceStatus::wireDecode | ( | const Block & | wire | ) |
decode FaceStatus
Definition at line 115 of file nfd-face-status.cpp.
References ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::FaceScope, ndn::tlv::nfd::FaceStatus, 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_linkType, ndn::nfd::FaceTraits< FaceStatus >::m_localUri, ndn::nfd::FaceTraits< FaceStatus >::m_remoteUri, ndn::tlv::nfd::NInBytes, ndn::tlv::nfd::NInDatas, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NOutBytes, ndn::tlv::nfd::NOutDatas, ndn::tlv::nfd::NOutInterests, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::Block::type(), and ndn::tlv::nfd::Uri.
Referenced by FaceStatus().
|
inline |
Definition at line 63 of file nfd-face-status.hpp.
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 69 of file nfd-face-status.hpp.
References setExpirationPeriod().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setExpirationPeriod | ( | const time::milliseconds & | expirationPeriod | ) |
Definition at line 232 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getExpirationPeriod().
|
inline |
Definition at line 79 of file nfd-face-status.hpp.
References setNInInterests().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setNInInterests | ( | uint64_t | nInInterests | ) |
Definition at line 241 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNInInterests().
|
inline |
Definition at line 88 of file nfd-face-status.hpp.
References setNInDatas().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setNInDatas | ( | uint64_t | nInDatas | ) |
Definition at line 249 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNInDatas().
|
inline |
Definition at line 97 of file nfd-face-status.hpp.
References setNOutInterests().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setNOutInterests | ( | uint64_t | nOutInterests | ) |
Definition at line 257 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNOutInterests().
|
inline |
Definition at line 106 of file nfd-face-status.hpp.
References setNOutDatas().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setNOutDatas | ( | uint64_t | nOutDatas | ) |
Definition at line 265 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNOutDatas().
|
inline |
Definition at line 115 of file nfd-face-status.hpp.
References setNInBytes().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setNInBytes | ( | uint64_t | nInBytes | ) |
Definition at line 273 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNInBytes().
|
inline |
Definition at line 124 of file nfd-face-status.hpp.
References ndn::nfd::operator<<(), setNOutBytes(), and wireReset().
Referenced by ndn::nfd::operator<<().
FaceStatus & ndn::nfd::FaceStatus::setNOutBytes | ( | uint64_t | nOutBytes | ) |
Definition at line 281 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNOutBytes().
|
protectedvirtual |
Implements ndn::nfd::FaceTraits< FaceStatus >.
Definition at line 289 of file nfd-face-status.cpp.
References ndn::Block::reset().
Referenced by getNOutBytes().