nfd::pit::InRecord Class Reference

contains information about an Interest from an incoming face More...

#include <daemon/table/pit-in-record.hpp>

+ Inheritance diagram for nfd::pit::InRecord:
+ Collaboration diagram for nfd::pit::InRecord:

Public Member Functions

 InRecord (Face &face)
 
void clearStrategyInfo ()
 clear all StrategyInfo items More...
 
template<typename T >
size_t eraseStrategyInfo ()
 erase a StrategyInfo item More...
 
time::steady_clock::TimePoint getExpiry () const
 gives the time point this record expires More...
 
Face & getFace () const
 
const Interest & getInterest () const
 
uint32_t getLastNonce () const
 
time::steady_clock::TimePoint getLastRenewed () const
 
template<typename T >
T * getStrategyInfo () const
 get a StrategyInfo item More...
 
template<typename T , typename... A>
std::pair< T *, bool > insertStrategyInfo (A &&...args)
 insert a StrategyInfo item More...
 
void update (const Interest &interest)
 

Detailed Description

contains information about an Interest from an incoming face

Definition at line 36 of file pit-in-record.hpp.

Constructor & Destructor Documentation

nfd::pit::InRecord::InRecord ( Face &  face)
explicit

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

Member Function Documentation

void nfd::StrategyInfoHost::clearStrategyInfo ( )
inherited

clear all StrategyInfo items

Definition at line 31 of file strategy-info-host.cpp.

template<typename T >
size_t nfd::StrategyInfoHost::eraseStrategyInfo ( )
inlineinherited

erase a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of fw::StrategyInfo
Returns
number of items erased

Definition at line 82 of file strategy-info-host.hpp.

time::steady_clock::TimePoint nfd::pit::FaceRecord::getExpiry ( ) const
inlineinherited

gives the time point this record expires

Returns
getLastRenewed() + InterestLifetime

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

Face & nfd::pit::FaceRecord::getFace ( ) const
inlineinherited

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

const Interest & nfd::pit::InRecord::getInterest ( ) const
inline

Definition at line 53 of file pit-in-record.hpp.

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

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

time::steady_clock::TimePoint nfd::pit::FaceRecord::getLastRenewed ( ) const
inlineinherited

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

template<typename T >
T* nfd::StrategyInfoHost::getStrategyInfo ( ) const
inlineinherited

get a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of fw::StrategyInfo
Returns
an existing StrategyInfo item of type T, or nullptr if it does not exist

Definition at line 44 of file strategy-info-host.hpp.

template<typename T , typename... A>
std::pair<T*, bool> nfd::StrategyInfoHost::insertStrategyInfo ( A &&...  args)
inlineinherited

insert a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of fw::StrategyInfo
Returns
a new or existing StrategyInfo item of type T, and true for new item, false for existing item

Definition at line 63 of file strategy-info-host.hpp.

void nfd::pit::InRecord::update ( const Interest &  interest)

Definition at line 37 of file pit-in-record.cpp.