Added JSON_PROXY to copy arrays and objects by reference

This commit is contained in:
Benoit Blanchon committed 2014-10-09 18:20:40 +02:00
1 parent bf2d726746
commit 35eaa55b3a
12 files changed
+138 -66

No files matched your search

+8 -11
View File
@@ -4,24 +4,23 @@
#include "Internals/JsonNodeIterator.h"
#include "Internals/JsonNode.h"
#include "Internals/IndentedPrint.h"
#include "Internals/JsonNodeWrapper.h"
class JsonArray;
class JsonObject;
class JsonValue;
class JsonContainer : public Printable
class JsonContainer : public Printable, public JsonNodeWrapper
{
friend JsonValue;
// friend JsonValue;
friend JsonArray;
public:
JsonContainer()
: _node(0)
{
}
JsonContainer(JsonNode* node)
: _node(node)
JsonContainer() {}
explicit JsonContainer(JsonNode* node)
: JsonNodeWrapper(node)
{
}
@@ -54,7 +53,5 @@ protected:
void addChild(JsonNode*);
void removeChild(JsonNode*);
JsonNode* createNode();
JsonNode* _node;
};