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_doubles Class Referencefinal

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

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

Public Member Functions

 Value_doubles (Doubles &&v, uint8_t flags=0) noexcept
 
 Value_doubles (Value_doubles *ptr)
 
virtual ~Value_doubles () noexcept
 
Ptr make_new (const Strings &values=Strings()) override
 
void set_from (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 Doubles get () const
 
- 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

Doubles value
 
- Public Attributes inherited from SWC::Config::Property::Value
Core::Atomic< uint8_t > flags
 

Static Public Attributes

static const Type value_type = TYPE_DOUBLES
 
- 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

- 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
 
- 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 441 of file Property.h.

Constructor & Destructor Documentation

◆ Value_doubles() [1/2]

SWC::Config::Property::Value_doubles::Value_doubles ( Doubles &&  v,
uint8_t  flags = 0 
)
noexcept

Definition at line 596 of file Property.cc.

Referenced by make_new().

+ Here is the caller graph for this function:

◆ Value_doubles() [2/2]

SWC::Config::Property::Value_doubles::Value_doubles ( Value_doubles ptr)

Definition at line 600 of file Property.cc.

◆ ~Value_doubles()

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

Definition at line 602 of file Property.cc.

Member Function Documentation

◆ get()

SWC_CAN_INLINE Doubles SWC::Config::Property::Value_doubles::get ( ) const
inline

Definition at line 462 of file Property.h.

◆ make_new()

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

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

Definition at line 604 of file Property.cc.

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

+ Here is the call graph for this function:

◆ set_from() [1/2]

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

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

Definition at line 617 of file Property.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::clear(), SWC::Config::Property::from_string(), SWC::Core::Vector< T, SizeT, GROW_SZ >::push_back(), and value.

+ Here is the call graph for this function:

◆ set_from() [2/2]

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

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

Definition at line 611 of file Property.cc.

References SWC::Config::Property::Value::flags, SWC::Condition::from(), SWC::Core::AtomicBase< T, OrderT >::store(), and value.

+ Here is the call graph for this function:

◆ to_string()

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

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

Definition at line 630 of file Property.cc.

References SWC::format_list(), and value.

+ Here is the call graph for this function:

◆ type()

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

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

Definition at line 626 of file Property.cc.

References value_type.

Member Data Documentation

◆ value

Doubles SWC::Config::Property::Value_doubles::value

Definition at line 466 of file Property.h.

Referenced by set_from(), and to_string().

◆ value_type

const Type SWC::Config::Property::Value_doubles::value_type = TYPE_DOUBLES
static

Definition at line 443 of file Property.h.

Referenced by type().


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