36 template<encoding::Tag TAG>
40 size_t totalLength = 0;
45 totalLength += encoder.prependVarNumber(totalLength);
64 m_wire = buffer.block();
89 if (val->elements().empty()) {
114 m_strategy = strategy;
127 return os <<
"StrategyChoice("
128 <<
"Name: " << sc.
getName() <<
", "
Represents a TLV element of the NDN packet format.
element_const_iterator elements_begin() const noexcept
Equivalent to elements().begin().
element_const_iterator elements_end() const noexcept
Equivalent to elements().end().
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
uint32_t type() const noexcept
Return the TLV-TYPE of the Block.
void reset() noexcept
Reset the Block to a default-constructed state.
void parse() const
Parse TLV-VALUE into sub-elements.
Represents an absolute name.
size_t wireEncode(EncodingImpl< TAG > &encoder) const
Prepend wire encoding to encoder.
void wireDecode(const Block &wire)
Decode name from wire encoding.
Represents an item in NFD StrategyChoice dataset.
StrategyChoice & setName(const Name &name)
const Name & getName() const
const Block & wireEncode() const
const Name & getStrategy() const
void wireDecode(const Block &wire)
StrategyChoice & setStrategy(const Name &strategy)
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
EncodingImpl< EstimatorTag > EncodingEstimator
size_t prependNestedBlock(EncodingImpl< TAG > &encoder, uint32_t type, const U &value)
Prepend a TLV element containing a nested TLV element.
EncodingImpl< EncoderTag > EncodingBuffer
Contains classes and functions related to the NFD Management protocol.
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)