From d3d0da2d7f0afe62f243d782db31274c6ad97d36 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 21 Jul 2014 14:17:27 +0200 Subject: [PATCH] Added comments --- JsonParser/JsonArrayIterator.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/JsonParser/JsonArrayIterator.h b/JsonParser/JsonArrayIterator.h index 00943ccb..1f662fbc 100644 --- a/JsonParser/JsonArrayIterator.h +++ b/JsonParser/JsonArrayIterator.h @@ -12,26 +12,31 @@ namespace ArduinoJson { namespace Parser { + // An iterator for JsonArray. class JsonArrayIterator : JsonToken { public: + // Create an iterator pointing at the specified JsonToken. JsonArrayIterator(JsonToken token) : JsonToken(token) { } + // Move iterator forward. void operator++() { *this = JsonArrayIterator(nextSibling()); } + // Get the value pointed by the iterator. JsonValue operator*() const { return JsonValue(*this); } + // Test iterator equality. bool operator!= (const JsonArrayIterator& other) const { return JsonToken::operator!=(other);