nfd::StrategyInfoHost Class Reference

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

#include <daemon/table/strategy-info-host.hpp>

+ Inheritance diagram for nfd::StrategyInfoHost:

Public Member Functions

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

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

void nfd::StrategyInfoHost::clearStrategyInfo ( )

clear all StrategyInfo items

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

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.

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.

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.