|
ActiveLib
|
Setting containing any number of values, e.g. bool, string etc. More...
#include <ValueSetting.h>


Public Types | |
| using | base = container::Vector<Value> |
| using | Unique = std::unique_ptr<ValueSetting> |
| Unique pointer. | |
| using | Shared = std::shared_ptr<ValueSetting> |
| Shared pointer. | |
| using | Option = std::optional<ValueSetting> |
| Optional. | |
Public Types inherited from active::setting::Setting | |
| using | Unique = std::unique_ptr<Setting> |
| Unique pointer. | |
| using | Shared = std::shared_ptr<Setting> |
| Shared pointer. | |
| using | Option = std::optional<Setting> |
| Optional. | |
Public Types inherited from active::container::Vector< Value > | |
| using | base |
| Base container type. | |
| using | value_type |
| Stored type. | |
| using | size_type |
| Container size (index) type. | |
| using | iterator |
| Container iterator type. | |
| using | const_iterator |
| Container const iterator type. | |
Public Member Functions | |
| ValueSetting () | |
| ValueSetting (const utility::NameID &nameID) | |
| ValueSetting (const Value &value, size_t rows=1, size_t cols=1) | |
| ValueSetting (Value &&value, const utility::NameID::Option nameID=std::nullopt) | |
| template<typename T > | |
| ValueSetting (const std::vector< T > &values, const utility::NameID::Option nameID=std::nullopt) | |
| template<typename T > | |
| ValueSetting (const std::set< T > &values, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (bool val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (int32_t val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (uint32_t val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (int64_t val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (double val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (const utility::Guid &val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (const utility::String &val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (const utility::Time &val, const utility::NameID::Option nameID=std::nullopt) | |
| ValueSetting (const ValueSetting &source)=default | |
| Use default copy constructor. | |
| ValueSetting (ValueSetting &&source) noexcept | |
| Use default copy constructor. | |
| virtual | ~ValueSetting ()=default |
| virtual ValueSetting * | clonePtr () const override |
| const Value & | operator() (size_t row=0, size_t col=0) const |
| virtual bool | operator== (const Setting &ref) const override |
| virtual bool | operator< (const Setting &ref) const override |
| Value & | operator() (size_t row=0, size_t col=0) |
| virtual Setting & | operator= (const Setting &source) override |
| ValueSetting & | operator= (ValueSetting &&source)=default |
| operator bool () const | |
| operator int32_t () const | |
| operator uint32_t () const | |
| operator int64_t () const | |
| operator double () const | |
| operator active::utility::String () const | |
| operator active::utility::Guid () const | |
| operator active::utility::Time () const | |
| template<typename T > | |
| operator std::vector< T > () const | |
| std::optional< Value::Type > | getDefaultType () const |
| size_t | getColumnSize () const |
| bool | empty () const override |
| True if the setting is empty. | |
| bool | isGood (size_t row=0, size_t col=0) const |
| Value::Status | status (size_t row=0, size_t col=0) const |
| bool | boolVal (size_t row=0, size_t col=0) const |
| int32_t | int32Val (size_t row=0, size_t col=0) const |
| uint32_t | uint32Val (size_t row=0, size_t col=0) const |
| int64_t | int64Val (size_t row=0, size_t col=0) const |
| double | doubleVal (size_t row=0, size_t col=0) const |
| active::utility::String | stringVal (size_t row=0, size_t col=0) const |
| active::utility::Guid | guidVal (size_t row=0, size_t col=0) const |
| active::utility::Time | timeVal (size_t row=0, size_t col=0) const |
| void | setDefaultType (std::optional< Value::Type > type=std::nullopt) |
| void | setColumnSize (size_t size) |
| void | clear () override |
| void | setDefault () override |
Public Member Functions inherited from active::setting::Setting | |
| Setting (utility::NameID::Option identifier=std::nullopt) | |
| Setting (utility::String::Option name, utility::Guid::Option guid=std::nullopt) | |
| Setting (const Setting &source) | |
| virtual | ~Setting ()=default |
| virtual utility::String | name () const |
| True if the setting is empty. | |
Public Member Functions inherited from active::utility::Cloner | |
| virtual | ~Cloner ()=default |
Public Member Functions inherited from active::container::Vector< Value > | |
| Vector (size_type toReserve=0) | |
| Vector (const std::initializer_list< Derived > &items) | |
| Vector (const Vector &source) | |
| Vector (Vector &&source) | |
| virtual | ~Vector ()=default |
| auto | operator= (const Vector &source) |
| auto | operator= (Vector &&source) |
| void | push_back (Value *item) |
| void | emplace_back (Value &&item) |
| void | emplace_back (const Value &item) |
| void | emplace_back (value_type &&item) |
| void | emplace_back (value_type &item) |
| auto | insert (const_iterator pos, Value *item) |
| auto | emplace (const_iterator pos, Value &&item) |
| auto | emplace (const_iterator pos, value_type &item) |
| auto | release (iterator &pos) |
| auto | release (const_iterator pos) |
Additional Inherited Members | |
Public Attributes inherited from active::setting::Setting | |
| utility::NameID::Option | identity |
| Optional setting identity. | |
Setting containing any number of values, e.g. bool, string etc.
|
inline |
Default constructor

|
inlineexplicit |
Constructor
| nameID | The setting identifier |
| ValueSetting::ValueSetting | ( | const Value & | value, |
| size_t | rows = 1, | ||
| size_t | cols = 1 ) |
Constructor
| value | A value to populate into the setting |
| rows | The number of rows of this value |
| cols | The number of columns of this value |

| ValueSetting::ValueSetting | ( | Value && | value, |
| const utility::NameID::Option | nameID = std::nullopt ) |
Constructor
| value | A value to populate into the setting |
| nameID | The setting identifier |

|
inline |
Constructor
| values | An array of values to populate into the setting |
| nameID | The setting identifier |

|
inline |
Constructor
| values | An array of values to populate into the setting |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
explicit |
Constructor
| val | The value |
| nameID | The setting identifier |

|
virtualdefault |
Destructor
|
inline |
Get a boolean value
|
inlineoverridevirtual |
Clear the setting (remove any values)
Reimplemented from active::setting::Setting.

|
inlineoverridevirtual |
Clone method
Implements active::setting::Setting.

|
inline |
Get a double precision value
|
inlineoverridevirtual |
True if the setting is empty.
Implements active::setting::Setting.
|
inline |
Get the number of columns the values are notionally arranged in

|
inline |
Get the default value type
|
inline |
Get a guid value
|
inline |
Get a 32-bit integer value
|
inline |
Get a 64-bit integer value
|
inline |
Determine if a value is good
| row | the value row |
| col | the value column |

|
inline |
Get a guid value
|
inline |
Get a string value
|
inline |
Get a time value
|
inline |
Get a boolean value
|
inline |
Get a double precision value
|
inline |
Get a 32-bit integer value
|
inline |
Get a 64-bit integer value
|
inline |
Get an array of values
|
inline |
Get a 32-bit integer value
|
inline |
Subscript operator (mutating)
| row | The value row |
| col | The value column |

|
inline |
Subscript operator (const)
| row | The value row |
| col | The value column |

|
overridevirtual |
Less-than operator
| ref | The value to compare |
Implements active::setting::Setting.
Assignment operator
| source | The object to copy |
Implements active::setting::Setting.

|
overridevirtual |
Equality operator
| ref | The value to compare |
Implements active::setting::Setting.
|
inline |
Set the number of columns the values are notionally arranged in
| size | The number of columns |
|
overridevirtual |
Assign a default to the setting
Implements active::setting::Setting.
|
inline |
Set the default value type
| type | The default value type (nullopt = undefined) |
|
inline |
Get the status of a value
| row | the value row |
| col | the value column |

|
inline |
Get a string value
|
inline |
Get a time value
|
inline |
Get a 32-bit integer value