Corrade::Utility::JsonObjectIterator class new in Git master

JSON object iterator.

Iterator for JsonObjectView, which is returned from Json::parseObject() and JsonToken::asObject(). See Iterating objects and arrays for more information.

Public functions

auto operator==(const JsonObjectIterator& other) const -> bool
Equality comparison.
auto operator!=(const JsonObjectIterator& other) const -> bool
Non-equality comparison.
auto operator++() -> JsonObjectIterator&
Advance to next position.
auto operator*() const -> JsonObjectItem
Dereference.

Function documentation

JsonObjectIterator& Corrade::Utility::JsonObjectIterator::operator++()

Advance to next position.

Expects that the iterator is not at the end of the token stream. It's however not possible to detect advancing outside of the iterated object, such iterators have undefined behavior. Implemented using JsonToken::next().

JsonObjectItem Corrade::Utility::JsonObjectIterator::operator*() const

Dereference.

Expects that the iterator is not at the end of the token stream. It's however not possible to detect advancing outside of the iterated object, dereferencing such iterators has undefined behavior.