Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
counter_result Class Reference

Represents result of counter operations. More...

#include <couchbase/counter_result.hxx>

Inheritance diagram for counter_result:
Inheritance graph

Public Member Functions

 counter_result ()=default
 
 counter_result (couchbase::cas cas, couchbase::mutation_token token, std::uint64_t content)
 Constructs result for get_any_replica operation, or an entry for get_all_replicas operation.
 
auto content () const -> std::uint64_t
 Current value of the counter.
 
- Public Member Functions inherited from mutation_result
 mutation_result ()=default
 
 mutation_result (couchbase::cas cas, mutation_token token)
 Constructs result for get_any_replica operation, or an entry for get_all_replicas operation.
 
auto mutation_token () const -> const std::optional< mutation_token > &
 
- Public Member Functions inherited from result
 result ()=default
 
 result (couchbase::cas cas)
 
auto cas () const -> couchbase::cas
 

Detailed Description

Represents result of counter operations.

Since
1.0.0
Committed
Generally available API and should be preferred in production

Constructor & Destructor Documentation

◆ counter_result() [1/2]

counter_result ( )
default
Since
1.0.0
Internal
Internal interface

◆ counter_result() [2/2]

counter_result ( couchbase::cas cas,
couchbase::mutation_token token,
std::uint64_t content )
inline

Constructs result for get_any_replica operation, or an entry for get_all_replicas operation.

Parameters
cas
tokencounter token returned by the server
contentcurrent value of the counter
Since
1.0.0
Committed
Generally available API and should be preferred in production

Member Function Documentation

◆ content()

auto content ( ) const -> std::uint64_t
inlinenodiscard

Current value of the counter.

Returns
unsigned value of the counter

The documentation for this class was generated from the following file: