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 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)
 
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
 
time::milliseconds getExpirationPeriod () const
 
FaceStatussetExpirationPeriod (time::milliseconds expirationPeriod)
 
FaceStatusunsetExpirationPeriod ()
 
uint64_t getNInInterests () const
 
FaceStatussetNInInterests (uint64_t nInInterests)
 
uint64_t getNInData () const
 
FaceStatussetNInData (uint64_t nInData)
 
uint64_t getNInNacks () const
 
FaceStatussetNInNacks (uint64_t nInNacks)
 
uint64_t getNOutInterests () const
 
FaceStatussetNOutInterests (uint64_t nOutInterests)
 
uint64_t getNOutData () const
 
FaceStatussetNOutData (uint64_t nOutData)
 
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 >
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)
 

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
 

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.

References wireDecode().

Member Function Documentation

const Block & ndn::nfd::FaceStatus::wireEncode ( ) const
bool ndn::nfd::FaceStatus::hasExpirationPeriod ( ) const
inline
time::milliseconds ndn::nfd::FaceStatus::getExpirationPeriod ( ) const
inline
FaceStatus & ndn::nfd::FaceStatus::setExpirationPeriod ( time::milliseconds  expirationPeriod)
FaceStatus & ndn::nfd::FaceStatus::unsetExpirationPeriod ( )
uint64_t ndn::nfd::FaceStatus::getNInInterests ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNInData ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNInNacks ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNOutInterests ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNOutData ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNOutNacks ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNInBytes ( ) const
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)
uint64_t ndn::nfd::FaceStatus::getNOutBytes ( ) const
inline
FaceStatus & ndn::nfd::FaceStatus::setNOutBytes ( uint64_t  nOutBytes)

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