Ditto 4.2.3
Loading...
Searching...
No Matches
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
 
- Public Member Functions inherited from ditto::Counter
double get_value () const
 Get the value of the counter in the current view of the document.
 
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.