forked from bblanchon/ArduinoJson
Improved JsonObjectIterator
This commit is contained in:
@ -16,9 +16,10 @@ namespace ArduinoJson
|
||||
{
|
||||
}
|
||||
|
||||
void operator++()
|
||||
JsonObjectIterator& operator++()
|
||||
{
|
||||
++_objectKeyValue;
|
||||
_objectKeyValue = JsonObjectKeyValue(_objectKeyValue.next());
|
||||
return *this;
|
||||
}
|
||||
|
||||
JsonObjectKeyValue operator*() const
|
||||
|
@ -22,11 +22,6 @@ namespace ArduinoJson
|
||||
return JsonValue(_node->getAsObjectValue());
|
||||
}
|
||||
|
||||
void operator++()
|
||||
{
|
||||
_node = _node->next;
|
||||
}
|
||||
|
||||
bool operator==(const JsonObjectKeyValue& other) const
|
||||
{
|
||||
return _node == other._node;
|
||||
@ -37,6 +32,11 @@ namespace ArduinoJson
|
||||
return _node != other._node;
|
||||
}
|
||||
|
||||
Internals::JsonNode* next()
|
||||
{
|
||||
return _node->next;
|
||||
}
|
||||
|
||||
private:
|
||||
Internals::JsonNode* _node;
|
||||
};
|
||||
|
Reference in New Issue
Block a user