Bitcoin ABC 0.30.5
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
util::SettingsSpan Struct Reference

Accessor for list of settings that skips negated values when iterated over. More...

#include <settings.h>

Collaboration diagram for util::SettingsSpan:
[legend]

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 SettingsValuebegin () const
 Pointer to first non-negated value. More...
 
const SettingsValueend () 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 SettingsValuedata = nullptr
 
size_t size = 0
 

Detailed Description

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 91 of file settings.h.

Constructor & Destructor Documentation

◆ SettingsSpan() [1/4]

util::SettingsSpan::SettingsSpan ( )
explicitdefault

◆ SettingsSpan() [2/4]

util::SettingsSpan::SettingsSpan ( const SettingsValue value)
inlineexplicitnoexcept

Definition at line 93 of file settings.h.

◆ SettingsSpan() [3/4]

util::SettingsSpan::SettingsSpan ( const SettingsValue dataIn,
size_t  sizeIn 
)
inlineexplicitnoexcept

Definition at line 95 of file settings.h.

◆ SettingsSpan() [4/4]

util::SettingsSpan::SettingsSpan ( const std::vector< SettingsValue > &  vec)
explicitnoexcept

Definition at line 282 of file settings.cpp.

Member Function Documentation

◆ begin()

const SettingsValue * util::SettingsSpan::begin ( ) const

Pointer to first non-negated value.

Definition at line 284 of file settings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ empty()

bool util::SettingsSpan::empty ( ) const

True if there are any non-negated values.

Definition at line 290 of file settings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end()

const SettingsValue * util::SettingsSpan::end ( ) const

Pointer to end of values.

Definition at line 287 of file settings.cpp.

Here is the caller graph for this function:

◆ last_negated()

bool util::SettingsSpan::last_negated ( ) const

True if the last value is negated.

Definition at line 293 of file settings.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ negated()

size_t util::SettingsSpan::negated ( ) const

Number of negated values.

Definition at line 296 of file settings.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ data

const SettingsValue* util::SettingsSpan::data = nullptr

Definition at line 109 of file settings.h.

◆ size

size_t util::SettingsSpan::size = 0

Definition at line 110 of file settings.h.


The documentation for this struct was generated from the following files: