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

Base class for an entity onto which StrategyInfo items may be placed. More...

#include <strategy-info-host.hpp>

Inheritance diagram for nfd::StrategyInfoHost:

Public Member Functions

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...
 
template<typename T >
size_t eraseStrategyInfo ()
 Erase a StrategyInfo item. More...
 
void clearStrategyInfo ()
 Clear all StrategyInfo items. More...
 

Detailed Description

Base class for an entity onto which StrategyInfo items may be placed.

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

Member Function Documentation

◆ getStrategyInfo()

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

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.

Referenced by nfd::measurements::EntryWithStrategyInfo< T >::operator()().

◆ insertStrategyInfo()

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

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.

Referenced by nfd::fw::AccessStrategy::beforeSatisfyInterest(), nfd::fw::RetxSuppressionExponential::decidePerPitEntry(), and nfd::fw::RetxSuppressionExponential::incrementIntervalForOutRecord().

◆ eraseStrategyInfo()

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

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.

◆ clearStrategyInfo()

void nfd::StrategyInfoHost::clearStrategyInfo ( )
inline

Clear all StrategyInfo items.

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

Referenced by nfd::strategy_choice::clearStrategyInfo().


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