Wrapper around C-style NVS iterators.
#include <base.hpp>
Public Types | |
| using | value_type = nvs_entry_info_t |
| using | difference_type = std::ptrdiff_t |
| using | reference = value_type |
| using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
| Iterator (char const *namespace_name) | |
| Ctor. | |
| ~Iterator () | |
| Dtor. | |
| reference | operator* () const |
| Iterator & | operator++ () |
| void | operator++ (int) |
Private Attributes | |
| nvs_iterator_t | _it {} |
| esp_err_t | _err {} |
Friends | |
| constexpr bool | operator== (Iterator const &lhs, Sentinel) |
| Equality comparison. | |
| using mem::nvs::Base::Iterator::difference_type = std::ptrdiff_t |
| using mem::nvs::Base::Iterator::iterator_category = std::input_iterator_tag |
| using mem::nvs::Base::Iterator::value_type = nvs_entry_info_t |
|
inline |
Creates an iterator to enumerate NVS entries.
| namespace_name | Namespace to iterate over |
|
inline |
Release iterator.
|
inline |
|
inline |
|
inline |
esp_err_t implicitly converts to bool. Any other value than 'ESP_OK' indicates that we have reached the end.
|
private |
|
private |