Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb_yyjson::yyjson_obj_iter Struct Reference
Collaboration diagram for duckdb_yyjson::yyjson_obj_iter:

Public Attributes

size_t idx
size_t max
yyjson_val * cur
yyjson_val * obj

Detailed Description

A JSON object iterator.

Example
yyjson_val *key, *val;
while ((key = yyjson_obj_iter_next(&iter))) {
your_func(key, val);
}
yyjson_api_inline yyjson_obj_iter yyjson_obj_iter_with(yyjson_val *obj)
Definition duckdb.cpp:42241
yyjson_api_inline yyjson_val * yyjson_obj_iter_next(yyjson_obj_iter *iter)
Definition duckdb.cpp:42251
yyjson_api_inline yyjson_val * yyjson_obj_iter_get_val(yyjson_val *key)
Definition duckdb.cpp:42261
Definition duckdb.cpp:38981
yyjson_val * obj
Definition duckdb.cpp:38985
Definition duckdb.cpp:41543

If the ordering of the keys is known at compile-time, you can use this method to speed up value lookups:

// {"k1":1, "k2": 3, "k3": 3}
yyjson_val *key, *val;
yyjson_val *v1 = yyjson_obj_iter_get(&iter, "k1");
yyjson_val *v3 = yyjson_obj_iter_get(&iter, "k3");
yyjson_api_inline yyjson_val * yyjson_obj_iter_get(yyjson_obj_iter *iter, const char *key)
Definition duckdb.cpp:42265
See also
yyjson_obj_iter_get() and yyjson_obj_iter_getn()

Member Data Documentation

◆ idx

size_t duckdb_yyjson::yyjson_obj_iter::idx

next key's index

◆ max

size_t duckdb_yyjson::yyjson_obj_iter::max

maximum key index (obj.size)

◆ cur

yyjson_val* duckdb_yyjson::yyjson_obj_iter::cur

next key

◆ obj

yyjson_val* duckdb_yyjson::yyjson_obj_iter::obj

the object being iterated


The documentation for this struct was generated from the following file: