Ditto 4.13.0
Loading...
Searching...
No Matches
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

Detailed Description

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

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.