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

base class for an entity onto which StrategyInfo objects may be placed More...

#include <strategy-info-host.hpp>

Inheritance diagram for nfd::StrategyInfoHost:

Public Member Functions

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

base class for an entity onto which StrategyInfo objects may be placed

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

Member Function Documentation

§ getStrategyInfo()

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

get a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of from nfd::fw::StrategyInfo
Return values
nullptrif no StrategyInfo of type T is stored

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

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

§ setStrategyInfo()

template<typename T >
void nfd::StrategyInfoHost::setStrategyInfo ( shared_ptr< T >  strategyInfo)

set a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of from nfd::fw::StrategyInfo

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

Referenced by getOrCreateStrategyInfo().

§ getOrCreateStrategyInfo()

template<typename T , typename ... A>
shared_ptr< T > nfd::StrategyInfoHost::getOrCreateStrategyInfo ( A &&...  args)

get or create a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of from nfd::fw::StrategyInfo

If no StrategyInfo of type T is stored, it's created with args; otherwise, the existing item is returned.

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

References setStrategyInfo().

Referenced by nfd::fw::RetxSuppressionExponential::decide().

§ clearStrategyInfo()

void nfd::StrategyInfoHost::clearStrategyInfo ( )

clear all StrategyInfo items

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


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