struct Ptr_ref
C++
struct Ptr_ref
Iterator; dereferencing gives the element's TD accessor.
include/nprpc/flat.hpp:162
Constructors
Ptr_ref(flat_buffer &b, std::uint32_t o)
Positioned at byte offset o of b.
include/nprpc/flat.hpp:202
Fields
flat_buffer &buffer
The buffer the element lives in.
include/nprpc/flat.hpp:164
std::uint32_t offset
Byte offset of the element.
include/nprpc/flat.hpp:166
Operators
bool operator!=(const Ptr_ref &other) const noexcept
Different position.
include/nprpc/flat.hpp:196
TD operator*()
The element's accessor.
include/nprpc/flat.hpp:184
Ptr_ref &operator++()
Moves to the next element.
include/nprpc/flat.hpp:169
Ptr_ref operator++(int)
Moves to the next element, returning the previous position.
include/nprpc/flat.hpp:176
bool operator==(const Ptr_ref &other) const noexcept
Same position.
include/nprpc/flat.hpp:191