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 |
|
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().
const Block & ndn::nfd::StrategyChoice::wireEncode | ( | ) | const |
Definition at line 57 of file strategy-choice.cpp.
References ndn::Block::hasWire().
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_THROW, ndn::Block::parse(), ndn::tlv::nfd::Strategy, ndn::tlv::nfd::StrategyChoice, ndn::Block::type(), and ndn::Name::wireDecode().
Referenced by StrategyChoice().
|
inline |
Definition at line 62 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 107 of file strategy-choice.cpp.
References ndn::Block::reset().
Referenced by getName().
|
inline |
Definition at line 71 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 115 of file strategy-choice.cpp.
References ndn::Block::reset().
Referenced by getStrategy().