Ditto 4.13.0
Loading...
Searching...
No Matches
ditto::Register Class Reference
Inheritance diagram for ditto::Register:
ditto::MutableRegister

Public Member Functions

template<class T>
 Register (T value)
 Register (const nlohmann::json &info)
template<typename T>
get_value () const
 Get the value of the register in the current view of the document.
nlohmann::json get_json_value () const
DittoCrdtType get_type () const

Protected Attributes

nlohmann::json value

Detailed Description

Deprecated
Use DQL (Ditto Query Language) instead. For more information see: https://ditto.com/link/legacy-to-dql-guide

Member Function Documentation

◆ get_value()

template<class T>
T ditto::Register::get_value ( ) const

Get the value of the register in the current view of the document.

Returns
value