mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 00:38:26 +01:00
Moved .h files to include/
This commit is contained in:
37
include/ArduinoJson/Internals/JsonNodeIterator.h
Normal file
37
include/ArduinoJson/Internals/JsonNodeIterator.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user