esp8266ndn
NDN Arduino library for ESP8266 and more
|
Iterator over TLV elements. More...
#include <decoder.hpp>
Inherited by ndnph::Name::Iterator.
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = const Tlv |
using | difference_type = std::ptrdiff_t |
using | pointer = value_type * |
using | reference = value_type & |
Public Member Functions | |
Iterator ()=default | |
Iterator (const uint8_t *pos, const uint8_t *end) | |
bool | hasError () const |
Whether a decoding error has occurred. More... | |
Iterator & | operator++ () |
Increment to next TLV element. More... | |
Iterator | operator++ (int) |
reference | operator* () |
Obtain Decoder::Tlv. More... | |
pointer | operator-> () |
Friends | |
bool | operator== (const Iterator &lhs, const Iterator &rhs) |
Iterator over TLV elements.
using ndnph::Decoder::Iterator::difference_type = std::ptrdiff_t |
using ndnph::Decoder::Iterator::iterator_category = std::forward_iterator_tag |
using ndnph::Decoder::Iterator::value_type = const Tlv |
|
default |
|
inlineexplicit |
|
inline |
Whether a decoding error has occurred.
|
inline |
Obtain Decoder::Tlv.
Dereferencing past-end iterator is allowed and returns empty Decoder::Tlv.
|
inline |
Increment to next TLV element.
Incrementing past-end iterator is allowed and has no effect.
|
inline |
|
inline |