forked from bblanchon/ArduinoJson
Extracting a common base class for JsonArray and JsonObject...
This commit is contained in:
@ -33,6 +33,8 @@ class List {
|
||||
const_iterator end() const { return const_iterator(NULL); }
|
||||
|
||||
protected:
|
||||
node_type *createNode();
|
||||
|
||||
JsonBuffer *_buffer;
|
||||
node_type *_firstNode;
|
||||
};
|
||||
|
@ -50,7 +50,6 @@ class JsonArray : public Internals::JsonPrintable<JsonArray>,
|
||||
// constructor is private: instance must be created via a JsonBuffer
|
||||
JsonArray(JsonBuffer *buffer) : List(buffer) {}
|
||||
|
||||
node_type *createNode();
|
||||
inline void addNode(node_type *node);
|
||||
|
||||
static JsonArray _invalid;
|
||||
|
@ -55,7 +55,6 @@ class JsonObject : public Internals::JsonPrintable<JsonObject>,
|
||||
JsonObject(JsonBuffer *buffer) : List(buffer) {}
|
||||
|
||||
JsonVariant &add(key_type key) { return (*this)[key]; }
|
||||
node_type *createNode();
|
||||
void addNode(node_type *nodeToAdd);
|
||||
void removeNode(node_type *nodeToRemove);
|
||||
|
||||
|
Reference in New Issue
Block a user