Google is committed to advancing racial equity for Black communities. See how.

nl::Weave::Counter

This is an abstract class.

#include <src/lib/support/WeaveCounter.h>

An interface for managing a counter as an integer value.

Summary

Inheritance

Direct Known Subclasses: nl::Weave::MonotonicallyIncreasingCounter

Constructors and Destructors

Counter(void)
~Counter(void)

Public functions

Advance(void)=0
virtual WEAVE_ERROR
Advance the value of the counter.
GetValue(void)=0
virtual uint32_t
Get the current value of the counter.

Public functions

Advance

virtual WEAVE_ERROR Advance(
  void
)=0

Advance the value of the counter.

Details
Returns
A Weave error code if anything failed, WEAVE_NO_ERROR otherwise.

Counter

 Counter(
  void
)

GetValue

virtual uint32_t GetValue(
  void
)=0

Get the current value of the counter.

Details
Returns
The current value of the counter.

~Counter

 ~Counter(
  void
)