mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
38 lines
522 B
C
38 lines
522 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include "JsonNode.h"
|
||
|
|
||
|
class JsonNodeIterator
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
explicit JsonNodeIterator(JsonNode* node)
|
||
|
: node(node)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
bool operator!= (const JsonNodeIterator& other) const
|
||
|
{
|
||
|
return node != other.node;
|
||
|
}
|
||
|
|
||
|
void operator++()
|
||
|
{
|
||
|
node = node->next;
|
||
|
}
|
||
|
|
||
|
JsonNode* operator*() const
|
||
|
{
|
||
|
return node;
|
||
|
}
|
||
|
|
||
|
JsonNode* operator->() const
|
||
|
{
|
||
|
return node;
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
JsonNode* node;
|
||
|
};
|
||
|
|