2#ifndef _DITTO_REGISTER_
3#define _DITTO_REGISTER_
5#include "AbstractDocumentPath.hpp"
7#include "internal_errors.hpp"
15 template <
class T>
Register(T value);
16 Register(
const nlohmann::json &info);
21 template <
typename T> T
get_value()
const;
22 nlohmann::json get_json_value()
const;
23 DittoCrdtType get_type()
const;
29void to_json(nlohmann::json &j,
const Register &a);
31template <
class T> Register::Register(T ext_value) {
32 value = nlohmann::json(ext_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
Definition Register.hpp:11
T get_value() const
Get the value of the register in the current view of the document.
Definition Register.hpp:35