15class DITTO_DEPRECATED_BECAUSE(
16 "Use DQL (Ditto Query Language) instead. For more information "
17 "see: https://ditto.com/link/legacy-to-dql-guide") Counter {
18 friend class AbstractDocumentPath;
19 friend class MutableCounter;
29 DittoCrdtType get_type()
const;
32 explicit Counter(
const nlohmann::json &info);
36DITTO_DISABLE_DEPRECATED_WARNINGS(
"Counter is deprecated")
37void to_json(nlohmann::json &j, const
Counter &a);
38DITTO_REENABLE_WARNINGS
Definition Counter.hpp:17
double get_value() const
Get the value of the counter in the current view of the document.
Namespace for the Ditto C++ SDK types and functions.
Definition AbstractDocumentPath.hpp:19