Ditto 4.1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ditto::Counter Class Reference
Inheritance diagram for ditto::Counter:
ditto::MutableCounter

Public Member Functions

double get_value () const
 Get the value of the counter in the current view of the document. More...
 
DittoCrdtType get_type () const
 

Protected Member Functions

 Counter (const nlohmann::json &info)
 

Protected Attributes

double value
 

Member Function Documentation

◆ get_value()

double ditto::Counter::get_value ( ) const

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

Returns
double