MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
#include <mip_packet.hpp>
Public Member Functions | |
FieldIterator () | |
Empty iterator, which represents the "end" iterator of a packet. More... | |
FieldIterator (const FieldView &first) | |
bool | operator== (const FieldIterator &other) const |
bool | operator!= (const FieldIterator &other) const |
bool | operator== (std::nullptr_t) const |
bool | operator!= (std::nullptr_t) const |
const FieldView & | operator* () const |
Dereference the iterator as a Field instance. More... | |
FieldIterator & | operator++ () |
Advance to the next field. More... | |
Iterator class for use with the range-based for loop or iterators.
You should generally use the begin()/end() functions on the PacketRef class instead of using this class directly.
|
inline |
Empty iterator, which represents the "end" iterator of a packet.
|
inline |
Create an iterator given the first field to iterate in a packet. Technically this can be any field, not just the first field.
|
inline |
|
inline |
|
inline |
Dereference the iterator as a Field instance.
|
inline |
Advance to the next field.
|
inline |
Comparison between any two iterators. This works even for iterators over different packets, which will never be the same (except all null/end iterators are equivalent).
|
inline |
Comparison with std::nullptr is checking if the iterator points to a valid field (i.e. not the end).