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

represents Face status More...

#include <nfd-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 getNOutInterests () const
 
FaceStatussetNOutInterests (uint64_t nOutInterests)
 
uint64_t getNOutDatas () const
 
FaceStatussetNOutDatas (uint64_t nOutDatas)
 
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)
 

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
 

Detailed Description

Constructor & Destructor Documentation

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

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

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

Definition at line 47 of file nfd-face-status.cpp.

References wireDecode().

Member Function Documentation

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

encode FaceStatus

Definition at line 99 of file nfd-face-status.cpp.

References ndn::Block::hasWire().

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

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

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

const time::milliseconds& ndn::nfd::FaceStatus::getExpirationPeriod ( ) const
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().

uint64_t ndn::nfd::FaceStatus::getNInInterests ( ) const
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().

uint64_t ndn::nfd::FaceStatus::getNInDatas ( ) const
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().

uint64_t ndn::nfd::FaceStatus::getNOutInterests ( ) const
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().

uint64_t ndn::nfd::FaceStatus::getNOutDatas ( ) const
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().

uint64_t ndn::nfd::FaceStatus::getNInBytes ( ) const
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().

uint64_t ndn::nfd::FaceStatus::getNOutBytes ( ) const
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().

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

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

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

References ndn::Block::reset().

Referenced by getNOutBytes().


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