class MonotonicallyIncreasingCounter
Defined at line 70 of file gen/third_party/openweave-core/src/include/Weave/Support/WeaveCounter.h
A class for managing a monotonically-increasing counter as an integer value.
Protected Members
uint32_t mCounterValue
Public Methods
void MonotonicallyIncreasingCounter ()
void ~MonotonicallyIncreasingCounter ()
WEAVE_ERROR Init (uint32_t aStartValue)
Initialize a MonotonicallyIncreasingCounter object.
Parameters
aStartValue [in] The starting value of the counter.
Returns
A Weave error code if something fails, WEAVE_NO_ERROR otherwise
WEAVE_ERROR Advance ()
Advance the value of the counter.
Returns
A Weave error code if something fails, WEAVE_NO_ERROR otherwise
uint32_t GetValue ()
Get the current value of the counter.
Returns
The current value of the counter.