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 Block & | wireEncode () const |
void | wireDecode (const Block &wire) |
const Name & | getName () const |
StrategyChoice & | setName (const Name &name) |
const Name & | getStrategy () const |
StrategyChoice & | setStrategy (const Name &strategy) |
represents an item in NFD StrategyChoice dataset
Definition at line 36 of file strategy-choice.hpp.
|
default |
Referenced by ndn::nfd::StrategyChoice::Error::Error().
|
explicit |
Definition at line 35 of file strategy-choice.cpp.
References wireDecode().
size_t ndn::nfd::StrategyChoice::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 42 of file strategy-choice.cpp.
References ndn::nfd::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(), ndn::encoding::prependNestedBlock(), ndn::tlv::nfd::Strategy, ndn::tlv::nfd::StrategyChoice, and ndn::Name::wireEncode().
Referenced by nfd::StrategyChoiceManager::StrategyChoiceManager().
const Block & ndn::nfd::StrategyChoice::wireEncode | ( | ) | const |
Definition at line 57 of file strategy-choice.cpp.
References ndn::Block::hasWire().
Referenced by ndn::nfd::StrategyChoice::Error::Error().
void ndn::nfd::StrategyChoice::wireDecode | ( | const Block & | wire | ) |
Definition at line 73 of file strategy-choice.cpp.
References ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::Name, ndn::Block::parse(), ndn::tlv::nfd::Strategy, ndn::tlv::nfd::StrategyChoice, ndn::Block::type(), and ndn::Name::wireDecode().
Referenced by ndn::nfd::StrategyChoice::Error::Error(), and StrategyChoice().
|
inline |
Definition at line 66 of file strategy-choice.hpp.
References setName().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
StrategyChoice & ndn::nfd::StrategyChoice::setName | ( | const Name & | name | ) |
Definition at line 106 of file strategy-choice.cpp.
References ndn::Block::reset().
Referenced by getName(), and nfd::StrategyChoiceManager::StrategyChoiceManager().
|
inline |
Definition at line 75 of file strategy-choice.hpp.
References ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(), ndn::nfd::operator==(), and setStrategy().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
StrategyChoice & ndn::nfd::StrategyChoice::setStrategy | ( | const Name & | strategy | ) |
Definition at line 114 of file strategy-choice.cpp.
References ndn::Block::reset().
Referenced by getStrategy().