#include <swcdb/core/config/Property.h>
Public Types | |
typedef Value_uint8_g * | Ptr |
typedef std::function< void(uint8_t)> | OnChg_t |
Public Types inherited from SWC::Config::Property::Value | |
enum | Type : uint8_t { TYPE_BOOL, TYPE_UINT8, TYPE_UINT16, TYPE_INT32, TYPE_INT64, TYPE_DOUBLE, TYPE_STRING, TYPE_ENUM, TYPE_STRINGS, TYPE_INT64S, TYPE_DOUBLES, TYPE_BOOL_G, TYPE_UINT8_G, TYPE_UINT16_G, TYPE_INT32_G, TYPE_UINT64_G, TYPE_ENUM_G, TYPE_STRINGS_G } |
typedef Value * | Ptr |
Public Member Functions | |
Value_uint8_g (const uint8_t &v, OnChg_t &&cb, uint8_t flags=0) | |
Value_uint8_g (Value_uint8_g *ptr) | |
virtual | ~Value_uint8_g () noexcept |
Value::Ptr | make_new (const Strings &values=Strings()) override |
void | set_from (Value::Ptr ptr) override |
void | set_from (const Strings &values) override |
Type SWC_CONST_FUNC | type () const noexcept override |
std::string | to_string () const override |
SWC_CAN_INLINE uint8_t | get () const noexcept |
void | on_change () const |
void | set_cb_on_chg (OnChg_t &&cb) |
Public Member Functions inherited from SWC::Config::Property::Value | |
Value (uint8_t flags=0) noexcept | |
Value (Ptr ptr) noexcept | |
Value (Value &&)=delete | |
Value (const Value &)=delete | |
Value & | operator= (Value &&)=delete |
Value & | operator= (const Value &)=delete |
virtual | ~Value () noexcept |
std::ostream & | operator<< (std::ostream &ostream) |
bool | is_skippable () const noexcept |
bool | is_guarded () const noexcept |
Ptr | default_value (bool defaulted) noexcept |
bool | is_default () const noexcept |
Ptr | zero_token () noexcept |
bool | is_zero_token () const noexcept |
Public Attributes | |
Core::Atomic< uint8_t > | value |
OnChg_t | on_chg_cb |
Public Attributes inherited from SWC::Config::Property::Value | |
Core::Atomic< uint8_t > | flags |
Static Public Attributes | |
static const Type | value_type = TYPE_UINT8_G |
Static Public Attributes inherited from SWC::Config::Property::Value | |
static const uint8_t | SKIPPABLE = 0x01 |
static const uint8_t | GUARDED = 0x02 |
static const uint8_t | DEFAULT = 0x04 |
static const uint8_t | NO_TOKEN = 0x08 |
Additional Inherited Members | |
Static Public Member Functions inherited from SWC::Config::Property::Value | |
static const char *SWC_CONST_FUNC | to_string (Type type) noexcept |
template<typename T > | |
static SWC_CAN_INLINE T * | get_pointer (Ptr ptr) |
static void | assure_match (Type t1, Type t2) |
Definition at line 511 of file Property.h.
typedef std::function<void(uint8_t)> SWC::Config::Property::Value_uint8_g::OnChg_t |
Definition at line 516 of file Property.h.
Definition at line 515 of file Property.h.
SWC::Config::Property::Value_uint8_g::Value_uint8_g | ( | const uint8_t & | v, |
Value_uint8_g::OnChg_t && | cb, | ||
uint8_t | flags = 0 |
||
) |
Definition at line 699 of file Property.cc.
Referenced by make_new().
SWC::Config::Property::Value_uint8_g::Value_uint8_g | ( | Value_uint8_g * | ptr | ) |
Definition at line 704 of file Property.cc.
|
virtualnoexcept |
Definition at line 709 of file Property.cc.
|
inlinenoexcept |
Definition at line 535 of file Property.h.
Referenced by SWC::Ranger::Compaction::available(), SWC::Ranger::ColumnCfg::cellstore_max(), SWC::Ranger::ColumnCfg::compact_percent(), SWC::Manager::MngdColumns::create(), SWC::Manager::MngdColumns::create_schemas_store(), SWC::Manager::RangersResources::evaluate(), SWC::Ranger::ColumnCfg::file_replication(), SWC::Manager::MngdColumns::initialize(), SWC::Ranger::ColumnCfg::log_compact_cointervaling(), SWC::Ranger::Compaction::log_compact_possible(), SWC::Ranger::ColumnCfg::log_fragment_preload(), SWC::Ranger::ColumnCfg::log_rollout_ratio(), on_change(), SWC::Ranger::CompactRange::request_more(), SWC::Ranger::Range::run_add_queue(), and SWC::Manager::MngdColumns::update().
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 711 of file Property.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), and Value_uint8_g().
void SWC::Config::Property::Value_uint8_g::on_change | ( | ) | const |
Definition at line 743 of file Property.cc.
References get(), and on_chg_cb.
Referenced by set_from().
void SWC::Config::Property::Value_uint8_g::set_cb_on_chg | ( | Value_uint8_g::OnChg_t && | cb | ) |
Definition at line 748 of file Property.cc.
References on_chg_cb.
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 729 of file Property.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::back(), SWC::Config::Property::from_string(), SWC::Core::AtomicBase< T, OrderT >::store(), and value.
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 718 of file Property.cc.
References SWC::Config::Property::Value::flags, SWC::Condition::from(), on_change(), on_chg_cb, SWC::Core::AtomicBase< T, OrderT >::store(), and value.
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 739 of file Property.cc.
References SWC::Core::to_string(), and value.
|
overridevirtualnoexcept |
Implements SWC::Config::Property::Value.
Definition at line 735 of file Property.cc.
References value_type.
OnChg_t SWC::Config::Property::Value_uint8_g::on_chg_cb |
Definition at line 544 of file Property.h.
Referenced by on_change(), set_cb_on_chg(), and set_from().
Core::Atomic<uint8_t> SWC::Config::Property::Value_uint8_g::value |
Definition at line 543 of file Property.h.
Referenced by set_from(), and to_string().
|
static |
Definition at line 513 of file Property.h.
Referenced by type().