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

Public Member Functions

void increment (double amount)
 increment the value of the counter by the given amount More...
 
- Public Member Functions inherited from ditto::Counter
double get_value () const
 Get the value of the counter in the current view of the document. More...
 
DittoCrdtType get_type () const
 

Additional Inherited Members

- Protected Member Functions inherited from ditto::Counter
 Counter (const nlohmann::json &info)
 
- Protected Attributes inherited from ditto::Counter
double value
 

Member Function Documentation

◆ increment()

void ditto::MutableCounter::increment ( double  amount)

increment the value of the counter by the given amount

Parameters
amountbe which the counter will be increased. This value can be negative.