1#ifndef SIMDJSON_GENERIC_ONDEMAND_OBJECT_ITERATOR_H
3#ifndef SIMDJSON_CONDITIONAL_INCLUDE
4#define SIMDJSON_GENERIC_ONDEMAND_OBJECT_ITERATOR_H
5#include "simdjson/generic/ondemand/base.h"
6#include "simdjson/generic/implementation_simdjson_result_base.h"
7#include "simdjson/generic/ondemand/value_iterator.h"
11namespace SIMDJSON_IMPLEMENTATION {
31 simdjson_inline
bool operator==(const
object_iterator &) const noexcept;
33 simdjson_inline
bool operator!=(const
object_iterator &) const noexcept;
44 value_iterator iter{};
58struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> :
public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> {
60 simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::object_iterator &&value)
noexcept;
62 simdjson_inline simdjson_result() noexcept = default;
69 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::field> operator*() noexcept;
71 simdjson_inline
bool operator==(const simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> &) const noexcept;
73 simdjson_inline
bool operator!=(const simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> &) const noexcept;
75 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> &operator++() noexcept;
A JSON field (key/value pair) in an object.
simdjson_inline object_iterator() noexcept=default
Create a new invalid object_iterator.
A forward-only JSON object field iterator.
The top level simdjson namespace, containing everything the library provides.
error_code
All possible errors returned by simdjson.
The result of a simdjson operation that could fail.
simdjson_inline error_code error() const noexcept
The error.