ndn::nfd::FaceStatus Class Reference

represents an item in NFD Face dataset More...

#include <face-status.hpp>

+ Inheritance diagram for ndn::nfd::FaceStatus:
+ Collaboration diagram for ndn::nfd::FaceStatus:

Public Member Functions

 FaceStatus ()
 
 FaceStatus (const Block &block)
 
time::milliseconds getExpirationPeriod () const
 
uint64_t getFaceId () const
 
FacePersistency getFacePersistency () const
 
FaceScope getFaceScope () const
 
bool getFlagBit (size_t bit) const
 
uint64_t getFlags () const
 
LinkType getLinkType () const
 
const std::string & getLocalUri () const
 
uint64_t getNInBytes () const
 
uint64_t getNInData () const
 
uint64_t getNInInterests () const
 
uint64_t getNInNacks () const
 
uint64_t getNOutBytes () const
 
uint64_t getNOutData () const
 
uint64_t getNOutInterests () const
 
uint64_t getNOutNacks () const
 
const std::string & getRemoteUri () const
 
bool hasExpirationPeriod () const
 
FaceStatussetExpirationPeriod (time::milliseconds expirationPeriod)
 
FaceStatussetFaceId (uint64_t faceId)
 
FaceStatussetFacePersistency (FacePersistency facePersistency)
 
FaceStatussetFaceScope (FaceScope faceScope)
 
FaceStatussetFlagBit (size_t bit, bool value)
 
FaceStatussetFlags (uint64_t flags)
 
FaceStatussetLinkType (LinkType linkType)
 
FaceStatussetLocalUri (const std::string &localUri)
 
FaceStatussetNInBytes (uint64_t nInBytes)
 
FaceStatussetNInData (uint64_t nInData)
 
FaceStatussetNInInterests (uint64_t nInInterests)
 
FaceStatussetNInNacks (uint64_t nInNacks)
 
FaceStatussetNOutBytes (uint64_t nOutBytes)
 
FaceStatussetNOutData (uint64_t nOutData)
 
FaceStatussetNOutInterests (uint64_t nOutInterests)
 
FaceStatussetNOutNacks (uint64_t nOutNacks)
 
FaceStatussetRemoteUri (const std::string &remoteUri)
 
FaceStatusunsetExpirationPeriod ()
 
void wireDecode (const Block &wire)
 decode FaceStatus More...
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 prepend FaceStatus to the encoder More...
 
const BlockwireEncode () const
 encode FaceStatus More...
 

Protected Attributes

uint64_t m_faceId
 
FacePersistency m_facePersistency
 
FaceScope m_faceScope
 
uint64_t m_flags
 
LinkType m_linkType
 
std::string m_localUri
 
std::string m_remoteUri
 
Block m_wire
 

Detailed Description

represents an item in NFD Face dataset

See also
https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Dataset

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

Constructor & Destructor Documentation

ndn::nfd::FaceStatus::FaceStatus ( )

Definition at line 34 of file face-status.cpp.

ndn::nfd::FaceStatus::FaceStatus ( const Block block)
explicit

Definition at line 46 of file face-status.cpp.

Member Function Documentation

time::milliseconds ndn::nfd::FaceStatus::getExpirationPeriod ( ) const
inline

Definition at line 68 of file face-status.hpp.

uint64_t ndn::nfd::FaceTraits< FaceStatus >::getFaceId ( ) const
inlineinherited

Definition at line 51 of file face-traits.hpp.

FacePersistency ndn::nfd::FaceTraits< FaceStatus >::getFacePersistency ( ) const
inlineinherited

Definition at line 107 of file face-traits.hpp.

FaceScope ndn::nfd::FaceTraits< FaceStatus >::getFaceScope ( ) const
inlineinherited

Definition at line 93 of file face-traits.hpp.

bool ndn::nfd::FaceTraits< FaceStatus >::getFlagBit ( size_t  bit) const
inlineinherited

Definition at line 149 of file face-traits.hpp.

uint64_t ndn::nfd::FaceTraits< FaceStatus >::getFlags ( ) const
inlineinherited

Definition at line 135 of file face-traits.hpp.

LinkType ndn::nfd::FaceTraits< FaceStatus >::getLinkType ( ) const
inlineinherited

Definition at line 121 of file face-traits.hpp.

const std::string& ndn::nfd::FaceTraits< FaceStatus >::getLocalUri ( ) const
inlineinherited

Definition at line 79 of file face-traits.hpp.

uint64_t ndn::nfd::FaceStatus::getNInBytes ( ) const
inline

Definition at line 135 of file face-status.hpp.

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

Definition at line 90 of file face-status.hpp.

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

Definition at line 81 of file face-status.hpp.

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

Definition at line 99 of file face-status.hpp.

uint64_t ndn::nfd::FaceStatus::getNOutBytes ( ) const
inline

Definition at line 144 of file face-status.hpp.

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

Definition at line 117 of file face-status.hpp.

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

Definition at line 108 of file face-status.hpp.

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

Definition at line 126 of file face-status.hpp.

const std::string& ndn::nfd::FaceTraits< FaceStatus >::getRemoteUri ( ) const
inlineinherited

Definition at line 65 of file face-traits.hpp.

bool ndn::nfd::FaceStatus::hasExpirationPeriod ( ) const
inline

Definition at line 62 of file face-status.hpp.

FaceStatus & ndn::nfd::FaceStatus::setExpirationPeriod ( time::milliseconds  expirationPeriod)

Definition at line 240 of file face-status.cpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setFaceId ( uint64_t  faceId)
inlineinherited

Definition at line 57 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setFacePersistency ( FacePersistency  facePersistency)
inlineinherited

Definition at line 113 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setFaceScope ( FaceScope  faceScope)
inlineinherited

Definition at line 99 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setFlagBit ( size_t  bit,
bool  value 
)
inlineinherited

Definition at line 158 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setFlags ( uint64_t  flags)
inlineinherited

Definition at line 141 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setLinkType ( LinkType  linkType)
inlineinherited

Definition at line 127 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setLocalUri ( const std::string &  localUri)
inlineinherited

Definition at line 85 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceStatus::setNInBytes ( uint64_t  nInBytes)

Definition at line 304 of file face-status.cpp.

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

Definition at line 264 of file face-status.cpp.

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

Definition at line 256 of file face-status.cpp.

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

Definition at line 272 of file face-status.cpp.

FaceStatus & ndn::nfd::FaceStatus::setNOutBytes ( uint64_t  nOutBytes)

Definition at line 312 of file face-status.cpp.

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

Definition at line 288 of file face-status.cpp.

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

Definition at line 280 of file face-status.cpp.

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

Definition at line 296 of file face-status.cpp.

FaceStatus & ndn::nfd::FaceTraits< FaceStatus >::setRemoteUri ( const std::string &  remoteUri)
inlineinherited

Definition at line 71 of file face-traits.hpp.

FaceStatus & ndn::nfd::FaceStatus::unsetExpirationPeriod ( )

Definition at line 248 of file face-status.cpp.

void ndn::nfd::FaceStatus::wireDecode ( const Block wire)

decode FaceStatus

Definition at line 101 of file face-status.cpp.

template<encoding::Tag TAG>
size_t ndn::nfd::FaceStatus::wireEncode ( EncodingImpl< TAG > &  encoder) const

prepend FaceStatus to the encoder

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

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

encode FaceStatus

Definition at line 85 of file face-status.cpp.

Member Data Documentation

uint64_t ndn::nfd::FaceTraits< FaceStatus >::m_faceId
protectedinherited

Definition at line 187 of file face-traits.hpp.

FacePersistency ndn::nfd::FaceTraits< FaceStatus >::m_facePersistency
protectedinherited

Definition at line 191 of file face-traits.hpp.

FaceScope ndn::nfd::FaceTraits< FaceStatus >::m_faceScope
protectedinherited

Definition at line 190 of file face-traits.hpp.

uint64_t ndn::nfd::FaceTraits< FaceStatus >::m_flags
protectedinherited

Definition at line 193 of file face-traits.hpp.

LinkType ndn::nfd::FaceTraits< FaceStatus >::m_linkType
protectedinherited

Definition at line 192 of file face-traits.hpp.

std::string ndn::nfd::FaceTraits< FaceStatus >::m_localUri
protectedinherited

Definition at line 189 of file face-traits.hpp.

std::string ndn::nfd::FaceTraits< FaceStatus >::m_remoteUri
protectedinherited

Definition at line 188 of file face-traits.hpp.

Block ndn::nfd::FaceTraits< FaceStatus >::m_wire
mutableprotectedinherited

Definition at line 195 of file face-traits.hpp.