SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Config::Property::Value_int32_g Class Referencefinal

#include <swcdb/core/config/Property.h>

+ Inheritance diagram for SWC::Config::Property::Value_int32_g:
+ Collaboration diagram for SWC::Config::Property::Value_int32_g:

Public Types

typedef Value_int32_gPtr
 
typedef std::function< void(int32_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 ValuePtr
 

Public Member Functions

 Value_int32_g (const int32_t &v, OnChg_t &&cb, uint8_t flags=0)
 
 Value_int32_g (Value_int32_g *ptr)
 
virtual ~Value_int32_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 int32_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
 
Valueoperator= (Value &&)=delete
 
Valueoperator= (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< int32_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_INT32_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 Tget_pointer (Ptr ptr)
 
static void assure_match (Type t1, Type t2)
 

Detailed Description

Definition at line 586 of file Property.h.

Member Typedef Documentation

◆ OnChg_t

typedef std::function<void(int32_t)> SWC::Config::Property::Value_int32_g::OnChg_t

Definition at line 591 of file Property.h.

◆ Ptr

Constructor & Destructor Documentation

◆ Value_int32_g() [1/2]

SWC::Config::Property::Value_int32_g::Value_int32_g ( const int32_t &  v,
Value_int32_g::OnChg_t &&  cb,
uint8_t  flags = 0 
)

Definition at line 810 of file Property.cc.

Referenced by make_new().

+ Here is the caller graph for this function:

◆ Value_int32_g() [2/2]

SWC::Config::Property::Value_int32_g::Value_int32_g ( Value_int32_g ptr)

Definition at line 815 of file Property.cc.

◆ ~Value_int32_g()

SWC::Config::Property::Value_int32_g::~Value_int32_g ( )
virtualnoexcept

Definition at line 820 of file Property.cc.

Member Function Documentation

◆ get()

SWC_CAN_INLINE int32_t SWC::Config::Property::Value_int32_g::get ( ) const
inlinenoexcept

Definition at line 610 of file Property.h.

Referenced by SWC::System::Mem::_check_stat(), SWC::System::Mem::_release(), SWC::FS::FileSystemBroker::append(), SWC::Manager::Rangers::assign_ranges(), SWC::Manager::Rangers::assign_ranges_run(), SWC::Ranger::ColumnCfg::block_cells(), SWC::Ranger::ColumnCfg::block_size(), SWC::Ranger::ColumnCfg::cellstore_size(), SWC::Manager::MngdColumns::change_active(), SWC::Manager::Rangers::changes(), SWC::Manager::RangersResources::check(), SWC::client::Schemas::clear_expired(), SWC::client::CachedRangers::clear_expired(), SWC::client::Managers::MasterRangesCache::Column::clear_expired(), SWC::FS::FileSystemBroker::close(), SWC::FS::FileSystemBroker::combi_pread(), SWC::Ranger::Compaction::compact(), SWC::Ranger::Compaction::compacted(), SWC::FS::FileSystemBroker::create(), SWC::FS::FileSystemCeph::create(), SWC::FS::FileSystemHadoopJVM::create(), SWC::Manager::MngdColumns::create_schemas_store(), SWC::Comm::client::ConnQueue::delay(), SWC::Manager::MngrRole::disconnection(), SWC::FS::FileSystemBroker::exists(), SWC::Manager::MngrRole::fill_states(), SWC::FS::FileSystemBroker::flush(), SWC::client::CachedRangers::get(), SWC::client::Schemas::get(), SWC::Common::Query::Update::Metric::Reporting::System::get_cpu_ms_interval(), SWC::FS::FileSystemHadoopJVM::get_fs(), SWC::Manager::Rangers::health_check_columns(), SWC::FS::FileSystemBroker::length(), SWC::Manager::MngrRole::manager_checker(), SWC::Manager::MngrRole::managers_checker(), SWC::Manager::MngrRole::managers_checkin(), SWC::System::Mem::Mem(), SWC::FS::FileSystemBroker::mkdirs(), on_change(), SWC::FS::FileSystemBroker::open(), SWC::FS::FileSystemHadoopJVM::open(), SWC::FS::FileSystemBroker::pread(), SWC::Manager::Rangers::range_loaded(), SWC::FS::FileSystemBroker::read(), SWC::FS::FileSystemBroker::readdir(), SWC::FS::FileSystemBroker::remove(), SWC::FS::FileSystemBroker::rename(), SWC::client::Query::Update::Handlers::Metric::Reporting::report(), SWC::FS::FileSystemBroker::rmdir(), SWC::Ranger::Compaction::run(), SWC::Comm::PeriodicTimer::schedule(), SWC::client::Query::Update::Handlers::Metric::Reporting::schedule(), SWC::Comm::client::ConnQueue::schedule_close(), SWC::Manager::Rangers::schedule_run(), SWC::FS::FileSystemBroker::seek(), SWC::Comm::Protocol::Mngr::Req::RgrMngId::set(), SWC::Manager::MngrRole::set_mngr_inchain(), SWC::FS::FileSystemHadoopJVM::setup_connection(), SWC::FS::FileSystemBroker::sync(), and SWC::FS::FileSystemBroker::write().

+ Here is the caller graph for this function:

◆ make_new()

Value::Ptr SWC::Config::Property::Value_int32_g::make_new ( const Strings values = Strings())
overridevirtual

Implements SWC::Config::Property::Value.

Definition at line 822 of file Property.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), and Value_int32_g().

+ Here is the call graph for this function:

◆ on_change()

void SWC::Config::Property::Value_int32_g::on_change ( ) const

Definition at line 854 of file Property.cc.

References get(), and on_chg_cb.

Referenced by set_from().

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

◆ set_cb_on_chg()

void SWC::Config::Property::Value_int32_g::set_cb_on_chg ( Value_int32_g::OnChg_t &&  cb)

Definition at line 859 of file Property.cc.

References on_chg_cb.

◆ set_from() [1/2]

void SWC::Config::Property::Value_int32_g::set_from ( const Strings values)
overridevirtual

Implements SWC::Config::Property::Value.

Definition at line 840 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.

+ Here is the call graph for this function:

◆ set_from() [2/2]

void SWC::Config::Property::Value_int32_g::set_from ( Value::Ptr  ptr)
overridevirtual

Implements SWC::Config::Property::Value.

Definition at line 829 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.

+ Here is the call graph for this function:

◆ to_string()

std::string SWC::Config::Property::Value_int32_g::to_string ( ) const
overridevirtual

Implements SWC::Config::Property::Value.

Definition at line 850 of file Property.cc.

References SWC::Core::to_string(), and value.

+ Here is the call graph for this function:

◆ type()

Value::Type SWC::Config::Property::Value_int32_g::type ( ) const
overridevirtualnoexcept

Implements SWC::Config::Property::Value.

Definition at line 846 of file Property.cc.

References value_type.

Member Data Documentation

◆ on_chg_cb

OnChg_t SWC::Config::Property::Value_int32_g::on_chg_cb

Definition at line 619 of file Property.h.

Referenced by on_change(), set_cb_on_chg(), and set_from().

◆ value

Core::Atomic<int32_t> SWC::Config::Property::Value_int32_g::value

Definition at line 618 of file Property.h.

Referenced by set_from(), SWC::FS::FileSystemHadoopJVM::setup_connection(), and to_string().

◆ value_type

const Type SWC::Config::Property::Value_int32_g::value_type = TYPE_INT32_G
static

Definition at line 588 of file Property.h.

Referenced by type().


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