2#ifndef _DITTO_MUTABLE_RGA_
3#define _DITTO_MUTABLE_RGA_
5#include "MutableDocumentPath.hpp"
35 void remove(std::size_t index) DITTO_DEPRECATED;
60 std::string indexed_path(std::size_t index);
Provides an interface to specify a path to a key in a document that you can then call various update ...
Definition: MutableDocumentPath.hpp:32
Definition: MutableRga.hpp:16
nlohmann::json pop() DITTO_DEPRECATED
Pop a value off the end of the Rga.
Definition: MutableRga.cpp:49
void insert(std::size_t index, nlohmann::json value) DITTO_DEPRECATED
Inserts a value into the Rga at the index specified.
Definition: MutableRga.cpp:39
void remove(std::size_t index) DITTO_DEPRECATED
Removes a value at the specified index.
Definition: MutableRga.cpp:34
void push(nlohmann::json value) DITTO_DEPRECATED
Push a value on to the end of the Rga.
Definition: MutableRga.cpp:44
void set(std::size_t index, nlohmann::json value) DITTO_DEPRECATED
Set the element at the given index. Enables indexed modifications to the Rga values.
Definition: MutableRga.cpp:21
Represents a CRDT Replicated Growable Array (RGA) that can be upserted as part of a document or assig...
Definition: Rga.hpp:18
basic_json<> json
default JSON class
Definition: json.hpp:2933