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

contains information about an Interest on an incoming or outgoing face More...

#include <pit-face-record.hpp>

Inheritance diagram for nfd::pit::FaceRecord:
Collaboration diagram for nfd::pit::FaceRecord:

Public Member Functions

 FaceRecord (shared_ptr< Face > face)
 
shared_ptr< FacegetFace () const
 
uint32_t getLastNonce () const
 
time::steady_clock::TimePoint getLastRenewed () const
 
time::steady_clock::TimePoint getExpiry () const
 gives the time point this record expires More...
 
void update (const Interest &interest)
 updates lastNonce, lastRenewed, expiry fields More...
 
- Public Member Functions inherited from nfd::StrategyInfoHost
template<typename T >
shared_ptr< T > getStrategyInfo () const
 get a StrategyInfo item More...
 
template<typename T >
void setStrategyInfo (shared_ptr< T > strategyInfo)
 set a StrategyInfo item More...
 
template<typename T , typename... A>
shared_ptr< T > getOrCreateStrategyInfo (A &&...args)
 get or create a StrategyInfo item More...
 
void clearStrategyInfo ()
 clear all StrategyInfo items More...
 

Detailed Description

contains information about an Interest on an incoming or outgoing face

Note
This is an implementation detail to extract common functionality of InRecord and OutRecord

Definition at line 40 of file pit-face-record.hpp.

Constructor & Destructor Documentation

nfd::pit::FaceRecord::FaceRecord ( shared_ptr< Face face)
explicit

Definition at line 31 of file pit-face-record.cpp.

Member Function Documentation

shared_ptr< Face > nfd::pit::FaceRecord::getFace ( ) const
inline

Definition at line 74 of file pit-face-record.hpp.

Referenced by nfd::compare_pickInterest().

uint32_t nfd::pit::FaceRecord::getLastNonce ( ) const
inline

Definition at line 80 of file pit-face-record.hpp.

Referenced by nfd::insertNonceToDnl().

time::steady_clock::TimePoint nfd::pit::FaceRecord::getLastRenewed ( ) const
inline
time::steady_clock::TimePoint nfd::pit::FaceRecord::getExpiry ( ) const
inline

gives the time point this record expires

Returns
getLastRenewed() + InterestLifetime

Definition at line 92 of file pit-face-record.hpp.

Referenced by nfd::compare_InRecord_expiry().

void nfd::pit::FaceRecord::update ( const Interest interest)

updates lastNonce, lastRenewed, expiry fields

Definition at line 40 of file pit-face-record.cpp.

References ndn::DEFAULT_INTEREST_LIFETIME, ndn::Interest::getInterestLifetime(), ndn::Interest::getNonce(), and ndn::time::steady_clock::now().

Referenced by nfd::pit::InRecord::update().


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