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;
40#if SIMDJSON_DEVELOPMENT_CHECKS
41 bool has_been_referenced{
false};
49 value_iterator iter{};
63struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> :
public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> {
65 simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::object_iterator &&value)
noexcept;
67 simdjson_inline simdjson_result() noexcept = default;
74 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::field> operator*() noexcept;
76 simdjson_inline
bool operator==(const simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> &) const noexcept;
78 simdjson_inline
bool operator!=(const simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object_iterator> &) const noexcept;
80 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.
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.