nl:: Weave:: MonotonicallyIncreasingCounter
#include <src/lib/support/WeaveCounter.h>
Một lớp để quản lý bộ đếm tăng đơn điệu dưới dạng giá trị số nguyên.
Tóm tắt
Tính kế thừa
Kế thừa từ: nl::Weave::CounterLớp học con đã biết trực tiếp: nl::Weave::PersistedCounter
Hàm khởi tạo và phá huỷ |
|
|---|---|
MonotonicallyIncreasingCounter(void)
|
|
~MonotonicallyIncreasingCounter(void)
|
Thuộc tính được bảo vệ |
|
|---|---|
mCounterValue
|
uint32_t
|
Hàm công khai |
|
|---|---|
Advance(void)
|
virtual WEAVE_ERROR
Tăng giá trị của bộ đếm.
|
GetValue(void)
|
virtual uint32_t
Lấy giá trị hiện tại của bộ đếm.
|
Init(uint32_t aStartValue)
|
Khởi tạo đối tượng MonotonicallyIncreasingCounter.
|
Thuộc tính được bảo vệ
mCounterValue
uint32_t mCounterValue
Hàm công khai
Vé mua trước
virtual WEAVE_ERROR Advance( void )
Tăng giá trị của bộ đếm.
| Chi tiết | |
|---|---|
| Trả về |
Mã lỗi Weave nếu xảy ra lỗi, nếu không thì WEAVE_NO_ERROR
|
GetValue
virtual uint32_t GetValue( void )
Lấy giá trị hiện tại của bộ đếm.
| Chi tiết | |
|---|---|
| Trả về |
Giá trị hiện tại của bộ đếm.
|
Init
WEAVE_ERROR Init( uint32_t aStartValue )
Khởi tạo đối tượng MonotonicallyIncreasingCounter.
| Chi tiết | |||
|---|---|---|---|
| Tham số |
|
||
| Trả về |
Mã lỗi Weave nếu xảy ra lỗi, nếu không thì WEAVE_NO_ERROR
|
||
MonotonicallyIncreasingCounter
MonotonicallyIncreasingCounter( void )
~MonotonicallyIncreasingCounter
virtual ~MonotonicallyIncreasingCounter( void )