Ditto 4.14.6
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ditto::Register Class Reference
Inheritance diagram for ditto::Register:
Inheritance graph
[legend]
Collaboration diagram for ditto::Register:
Collaboration graph
[legend]

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