#include <OnixS/CME/MDH/Packet.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = ptrdiff_t |
| using | value_type = const Messaging::SbeMessage |
| using | pointer = value_type* |
| using | reference = value_type& |
Public Member Functions | |
| BinaryMessageIterator (const void *dataBegin, const void *dataEnd, const Packet *packet) | |
| value_type | message () const |
| value_type | operator* () const |
| BinaryMessageIterator & | operator++ () |
| bool | operator== (const BinaryMessageIterator &other) const noexcept |
| bool | operator!= (const BinaryMessageIterator &other) const noexcept |
The iterator is a non-owning view. The underlying buffer and optional packet context must remain valid for the iterator's lifetime.
| using difference_type = ptrdiff_t |
| using iterator_category = std::forward_iterator_tag |
| using pointer = value_type* |
| using reference = value_type& |
| using value_type = const Messaging::SbeMessage |
|
inline |
Constructs an iterator over a range of encoded message bytes.
| dataBegin | Address of the current message prefix, or dataEnd for a past-the-end iterator. |
| dataEnd | Address one byte past the encoded message range. |
| packet | Packet used to provide context in validation errors; may be nullptr. |
| std::runtime_error | If the current message prefix or payload does not fit in the range, or the prefix declares a size smaller than the prefix itself. |
|
inline |
Returns a non-owning view of the current encoded message.
| std::runtime_error | If the message payload is smaller than the SBE message header or its declared block length. |
|
inlinenoexcept |
|
inline |
Returns a non-owning view of the current encoded message.
| std::runtime_error | If the message payload is smaller than the SBE message header or its declared block length. |
|
inline |
Advances to the next encoded message.
| std::runtime_error | If the next message prefix or payload does not fit in the range, or the prefix declares a size smaller than the prefix itself. |
|
inlinenoexcept |