#include <ctoon.h>
A TOON object iterator.
Example
your_func(key, val);
}
static ctoon_val * ctoon_obj_iter_get_val(ctoon_val *key)
static ctoon_val * ctoon_obj_iter_next(ctoon_obj_iter *iter)
static ctoon_obj_iter ctoon_obj_iter_with(ctoon_val *obj)
If the ordering of the keys is known at compile-time, you can use this method to speed up value lookups:
static ctoon_val * ctoon_obj_iter_get(ctoon_obj_iter *iter, const char *key)
- See also
- ctoon_obj_iter_get() and ctoon_obj_iter_getn()
Definition at line 1885 of file ctoon.h.
◆ cur
◆ idx
| size_t ctoon_obj_iter::idx |
next key's index
Definition at line 1886 of file ctoon.h.
◆ max
| size_t ctoon_obj_iter::max |
maximum key index (obj.size)
Definition at line 1887 of file ctoon.h.
◆ obj
the object being iterated
Definition at line 1889 of file ctoon.h.
The documentation for this struct was generated from the following file:
- /home/runner/work/ctoon/ctoon/include/ctoon.h