![]() |
Bitcoin ABC
0.26.3
P2P Digital Currency
|
Accessor for list of settings that skips negated values when iterated over. More...
#include <settings.h>
Public Member Functions | |
SettingsSpan ()=default | |
SettingsSpan (const SettingsValue &value) noexcept | |
SettingsSpan (const SettingsValue *dataIn, size_t sizeIn) noexcept | |
SettingsSpan (const std::vector< SettingsValue > &vec) noexcept | |
const SettingsValue * | begin () const |
Pointer to first non-negated value. More... | |
const SettingsValue * | end () const |
Pointer to end of values. More... | |
bool | empty () const |
True if there are any non-negated values. More... | |
bool | last_negated () const |
True if the last value is negated. More... | |
size_t | negated () const |
Number of negated values. More... | |
Public Attributes | |
const SettingsValue * | data = nullptr |
size_t | size = 0 |
Accessor for list of settings that skips negated values when iterated over.
The last boolean false
value in the list and all earlier values are considered negated.
Definition at line 86 of file settings.h.
|
explicitdefault |
|
inlineexplicitnoexcept |
Definition at line 88 of file settings.h.
|
inlineexplicitnoexcept |
Definition at line 90 of file settings.h.
|
explicitnoexcept |
Definition at line 276 of file settings.cpp.
const SettingsValue * util::SettingsSpan::begin | ( | ) | const |
Pointer to first non-negated value.
Definition at line 278 of file settings.cpp.
bool util::SettingsSpan::empty | ( | ) | const |
True if there are any non-negated values.
Definition at line 284 of file settings.cpp.
const SettingsValue * util::SettingsSpan::end | ( | ) | const |
Pointer to end of values.
Definition at line 281 of file settings.cpp.
bool util::SettingsSpan::last_negated | ( | ) | const |
True if the last value is negated.
Definition at line 287 of file settings.cpp.
size_t util::SettingsSpan::negated | ( | ) | const |
Number of negated values.
Definition at line 290 of file settings.cpp.
const SettingsValue* util::SettingsSpan::data = nullptr |
Definition at line 104 of file settings.h.
size_t util::SettingsSpan::size = 0 |
Definition at line 105 of file settings.h.