NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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::fw::AccessStrategy::beforeSatisfyInterest(), and 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::decide(), nfd::fw::NccStrategy::getMeasurementsEntryInfo(), nfd::fw::asf::AsfMeasurements::getNamespaceInfo(), and nfd::fw::asf::AsfMeasurements::getOrCreateNamespaceInfo().

◆ 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.

References clearStrategyInfo().

◆ clearStrategyInfo()

void nfd::StrategyInfoHost::clearStrategyInfo ( )

clear all StrategyInfo items

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

Referenced by nfd::strategy_choice::clearStrategyInfo(), and eraseStrategyInfo().


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