nl::Weave::MonotonicallyIncreasingCounter

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

מחלקה לניהול מונה עולה באופן מונוטוני כערך מספר שלם.

סיכום

ירושה

ירש מ: nl::Weave::Counter
Direct known Subclasses: nl::Weave::PersistedCounter

בונים והורסים

MonotonicallyIncreasingCounter(void)
~MonotonicallyIncreasingCounter(void)

מאפיינים מוגנים

mCounterValue
uint32_t

תפקידים ציבוריים

Advance(void)
virtual WEAVE_ERROR
שיפור הערך של המונה.
GetValue(void)
virtual uint32_t
מקבלים את הערך הנוכחי של המונה.
Init(uint32_t aStartValue)
מפעילים אובייקט MonotonicallyIncreasingCounter.

מאפיינים מוגנים

mCounterValue

uint32_t mCounterValue

תפקידים ציבוריים

רכישה מוקדמת

virtual WEAVE_ERROR Advance(
  void
)

שיפור הערך של המונה.

פרטים
החזרות
קוד שגיאה של Weave אם משהו נכשל, WEAVE_NO_ERROR

GetValue

virtual uint32_t GetValue(
  void
)

מקבלים את הערך הנוכחי של המונה.

פרטים
החזרות
הערך הנוכחי של המונה.

הפעלה

WEAVE_ERROR Init(
  uint32_t aStartValue
)

מפעילים אובייקט MonotonicallyIncreasingCounter.

פרטים
פרמטרים
[in] aStartValue
הערך ההתחלתי של המונה.
החזרות
קוד שגיאה של Weave אם משהו נכשל, WEAVE_NO_ERROR

MonotonicallyIncreasingCounter

 MonotonicallyIncreasingCounter(
  void
)

~MonotonicallyIncreaseCounter

virtual  ~MonotonicallyIncreasingCounter(
  void
)