4#include "AbstractDocumentPath.hpp"
27 Rga(std::vector<nlohmann::json> value = std::vector<nlohmann::json>())
30 DittoCrdtType get_type()
const;
36 std::vector<nlohmann::json>
get_value()
const;
41 std::vector<nlohmann::json> value;
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition: AbstractDocumentPath.hpp:21
Represents a CRDT Replicated Growable Array (RGA) that can be upserted as part of a document or assig...
Definition: Rga.hpp:18
Rga(std::vector< nlohmann::json > value=std::vector< nlohmann::json >()) DITTO_DEPRECATED
Construct a new Rga object than can be used as part of a document's context.
Definition: Rga.cpp:15
std::vector< nlohmann::json > get_value() const
Return the array representation of the RGA.
Definition: Rga.cpp:13
basic_json<> json
default JSON class
Definition: json.hpp:2933