nfd::strategy_choice::Entry Class Reference

Represents an entry in the Strategy Choice table. More...

#include <daemon/table/strategy-choice-entry.hpp>

+ Inheritance diagram for nfd::strategy_choice::Entry:
+ Collaboration diagram for nfd::strategy_choice::Entry:

Public Member Functions

 Entry (const Name &prefix)
 
 ~Entry ()
 
const Name & getPrefix () const
 
fw::StrategygetStrategy () const
 
const Name & getStrategyInstanceName () const
 
void setStrategy (unique_ptr< fw::Strategy > strategy)
 

Detailed Description

Represents an entry in the Strategy Choice table.

See also
StrategyChoice

Definition at line 45 of file strategy-choice-entry.hpp.

Constructor & Destructor Documentation

◆ Entry()

nfd::strategy_choice::Entry::Entry ( const Name &  prefix)
explicit

Definition at line 31 of file strategy-choice-entry.cpp.

◆ ~Entry()

nfd::strategy_choice::Entry::~Entry ( )
default

Member Function Documentation

◆ getPrefix()

const Name& nfd::strategy_choice::Entry::getPrefix ( ) const
inline
Returns
name prefix on which this strategy choice is applied

Definition at line 56 of file strategy-choice-entry.hpp.

◆ getStrategy()

fw::Strategy& nfd::strategy_choice::Entry::getStrategy ( ) const
inline
Returns
strategy instance

Definition at line 69 of file strategy-choice-entry.hpp.

◆ getStrategyInstanceName()

const Name & nfd::strategy_choice::Entry::getStrategyInstanceName ( ) const
Returns
strategy instance name

Definition at line 39 of file strategy-choice-entry.cpp.

◆ setStrategy()

void nfd::strategy_choice::Entry::setStrategy ( unique_ptr< fw::Strategy strategy)

Definition at line 45 of file strategy-choice-entry.cpp.