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

represents Face status 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)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 prepend FaceStatus to the encoder More...
 
const BlockwireEncode () const
 encode FaceStatus More...
 
void wireDecode (const Block &wire)
 decode FaceStatus More...
 
bool hasExpirationPeriod () const
 
const time::milliseconds & getExpirationPeriod () const
 
FaceStatussetExpirationPeriod (const time::milliseconds &expirationPeriod)
 
uint64_t getNInInterests () const
 
FaceStatussetNInInterests (uint64_t nInInterests)
 
uint64_t getNInDatas () const
 
FaceStatussetNInDatas (uint64_t nInDatas)
 
uint64_t getNInNacks () const
 
FaceStatussetNInNacks (uint64_t nInNacks)
 
uint64_t getNOutInterests () const
 
FaceStatussetNOutInterests (uint64_t nOutInterests)
 
uint64_t getNOutDatas () const
 
FaceStatussetNOutDatas (uint64_t nOutDatas)
 
uint64_t getNOutNacks () const
 
FaceStatussetNOutNacks (uint64_t nOutNacks)
 
uint64_t getNInBytes () const
 
FaceStatussetNInBytes (uint64_t nInBytes)
 
uint64_t getNOutBytes () const
 
FaceStatussetNOutBytes (uint64_t nOutBytes)
 
- Public Member Functions inherited from ndn::nfd::FaceTraits< FaceStatus >
 FaceTraits ()
 
uint64_t getFaceId () const
 
FaceStatussetFaceId (uint64_t faceId)
 
const std::string & getRemoteUri () const
 
FaceStatussetRemoteUri (const std::string &remoteUri)
 
const std::string & getLocalUri () const
 
FaceStatussetLocalUri (const std::string &localUri)
 
FaceScope getFaceScope () const
 
FaceStatussetFaceScope (FaceScope faceScope)
 
FacePersistency getFacePersistency () const
 
FaceStatussetFacePersistency (FacePersistency facePersistency)
 
LinkType getLinkType () const
 
FaceStatussetLinkType (LinkType linkType)
 
uint64_t getFlags () const
 
FaceStatussetFlags (uint64_t flags)
 
bool getFlagBit (size_t bit) const
 
FaceStatussetFlagBit (size_t bit, bool value)
 

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
 
uint64_t m_flags
 

Detailed Description

Constructor & Destructor Documentation

◆ FaceStatus() [1/2]

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

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

◆ FaceStatus() [2/2]

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

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

References wireDecode().

Member Function Documentation

◆ wireEncode() [1/2]

◆ wireEncode() [2/2]

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

encode FaceStatus

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

References ndn::Block::hasWire().

◆ wireDecode()

◆ hasExpirationPeriod()

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

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

Referenced by ndn::nfd::operator<<().

◆ getExpirationPeriod()

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

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

References setExpirationPeriod().

Referenced by ndn::nfd::operator<<().

◆ setExpirationPeriod()

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

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

References ndn::Block::reset().

Referenced by getExpirationPeriod(), and nfd::FaceManager::setConfigFile().

◆ getNInInterests()

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

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

References setNInInterests().

Referenced by ndn::nfd::operator<<().

◆ setNInInterests()

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

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

References ndn::Block::reset().

Referenced by getNInInterests(), and nfd::FaceManager::setConfigFile().

◆ getNInDatas()

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

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

References setNInDatas().

Referenced by ndn::nfd::operator<<().

◆ setNInDatas()

FaceStatus & ndn::nfd::FaceStatus::setNInDatas ( uint64_t  nInDatas)

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

References ndn::Block::reset().

Referenced by getNInDatas(), and nfd::FaceManager::setConfigFile().

◆ getNInNacks()

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

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

References setNInNacks().

Referenced by ndn::nfd::operator<<().

◆ setNInNacks()

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

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

References ndn::Block::reset().

Referenced by getNInNacks(), and nfd::FaceManager::setConfigFile().

◆ getNOutInterests()

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

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

References setNOutInterests().

Referenced by ndn::nfd::operator<<().

◆ setNOutInterests()

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

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

References ndn::Block::reset().

Referenced by getNOutInterests(), and nfd::FaceManager::setConfigFile().

◆ getNOutDatas()

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

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

References setNOutDatas().

Referenced by ndn::nfd::operator<<().

◆ setNOutDatas()

FaceStatus & ndn::nfd::FaceStatus::setNOutDatas ( uint64_t  nOutDatas)

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

References ndn::Block::reset().

Referenced by getNOutDatas(), and nfd::FaceManager::setConfigFile().

◆ getNOutNacks()

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

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

References setNOutNacks().

Referenced by ndn::nfd::operator<<().

◆ setNOutNacks()

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

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

References ndn::Block::reset().

Referenced by getNOutNacks(), and nfd::FaceManager::setConfigFile().

◆ getNInBytes()

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

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

References setNInBytes().

Referenced by ndn::nfd::operator<<().

◆ setNInBytes()

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

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

References ndn::Block::reset().

Referenced by getNInBytes(), and nfd::FaceManager::setConfigFile().

◆ getNOutBytes()

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

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

References ndn::nfd::operator<<(), setNOutBytes(), and wireReset().

Referenced by ndn::nfd::operator<<().

◆ setNOutBytes()

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

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

References ndn::Block::reset().

Referenced by getNOutBytes(), and nfd::FaceManager::setConfigFile().

◆ wireReset()

void ndn::nfd::FaceStatus::wireReset ( ) const
protectedvirtual

Implements ndn::nfd::FaceTraits< FaceStatus >.

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

References ndn::Block::reset().

Referenced by getNOutBytes().


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