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

represents an item in NFD StrategyChoice dataset More...

#include <strategy-choice.hpp>

Classes

class  Error
 

Public Member Functions

 StrategyChoice ()
 
 StrategyChoice (const Block &payload)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &wire)
 
const NamegetName () const
 
StrategyChoicesetName (const Name &name)
 
const NamegetStrategy () const
 
StrategyChoicesetStrategy (const Name &strategy)
 

Detailed Description

Constructor & Destructor Documentation

◆ StrategyChoice() [1/2]

ndn::nfd::StrategyChoice::StrategyChoice ( )
default

◆ StrategyChoice() [2/2]

ndn::nfd::StrategyChoice::StrategyChoice ( const Block payload)
explicit

Definition at line 35 of file strategy-choice.cpp.

References wireDecode().

Member Function Documentation

◆ wireEncode() [1/2]

template<encoding::Tag TAG>
size_t ndn::nfd::StrategyChoice::wireEncode ( EncodingImpl< TAG > &  encoder) const

◆ wireEncode() [2/2]

const Block & ndn::nfd::StrategyChoice::wireEncode ( ) const

Definition at line 57 of file strategy-choice.cpp.

References ndn::Block::hasWire().

◆ wireDecode()

◆ getName()

const Name& ndn::nfd::StrategyChoice::getName ( ) const
inline

Definition at line 62 of file strategy-choice.hpp.

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setName()

StrategyChoice & ndn::nfd::StrategyChoice::setName ( const Name name)

Definition at line 107 of file strategy-choice.cpp.

References ndn::Block::reset().

◆ getStrategy()

const Name& ndn::nfd::StrategyChoice::getStrategy ( ) const
inline

Definition at line 71 of file strategy-choice.hpp.

Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().

◆ setStrategy()

StrategyChoice & ndn::nfd::StrategyChoice::setStrategy ( const Name strategy)

Definition at line 115 of file strategy-choice.cpp.

References ndn::Block::reset().


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