nfd::strategy_choice::Entry Class Reference

Represents a Strategy Choice entry. 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)
 

Friends

class name_tree::Entry
 

Detailed Description

Represents a Strategy Choice entry.

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 32 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 40 of file strategy-choice-entry.cpp.

◆ setStrategy()

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

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

Friends And Related Function Documentation

◆ name_tree::Entry

friend class name_tree::Entry
friend

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