Base class for all configuration items.
More...
#include <StormByte/config/item/base.hxx>
|
| virtual bool | Equals (const Base &base) const =0 |
| | Equals.
|
| |
Base class for all configuration items.
◆ Base() [1/4]
| StormByte::Config::Item::Base::Base |
( |
| ) |
|
|
noexcept |
◆ Base() [2/4]
◆ Base() [3/4]
| StormByte::Config::Item::Base::Base |
( |
const Base & |
base | ) |
|
|
defaultnoexcept |
Copy constructor.
- Parameters
-
◆ Base() [4/4]
| StormByte::Config::Item::Base::Base |
( |
Base && |
base | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
◆ ~Base()
| StormByte::Config::Item::Base::~Base |
( |
| ) |
|
|
overridenoexcept |
◆ As() [1/2]
template<class T >
| decltype(auto) StormByte::Config::Item::Base::As |
( |
| ) |
|
Typed view of this item.
- Template Parameters
-
| T | node type, leaf tag or comment specialization |
- Returns
- reference or converted value depending on T
◆ As() [2/2]
template<class T >
| decltype(auto) StormByte::Config::Item::Base::As |
( |
| ) |
const |
Typed view of this item.
- Template Parameters
-
| T | node type, leaf tag or comment specialization |
- Returns
- reference or converted value depending on T
◆ Equals()
| virtual bool StormByte::Config::Item::Base::Equals |
( |
const Base & |
base | ) |
const |
|
protectedpure virtual |
◆ IsNameValid() [1/2]
Checks if name is valid.
- Parameters
-
- Returns
- bool
◆ IsNameValid() [2/2]
| static bool StormByte::Config::Item::Base::IsNameValid |
( |
std::string_view |
name | ) |
|
|
staticnoexcept |
Checks if name is valid.
- Parameters
-
- Returns
- bool
◆ Name() [1/3]
Gets the name of the item.
- Returns
- name
◆ Name() [2/3]
Sets the name of the item.
- Parameters
-
◆ Name() [3/3]
| void StormByte::Config::Item::Base::Name |
( |
std::string_view |
name | ) |
|
Sets the name of the item.
- Parameters
-
◆ operator!=()
| bool StormByte::Config::Item::Base::operator!= |
( |
const Base & |
base | ) |
const |
|
noexcept |
Compares two items.
- Parameters
-
- Returns
- bool
◆ operator=() [1/2]
| Base & StormByte::Config::Item::Base::operator= |
( |
Base && |
base | ) |
|
|
defaultnoexcept |
Move assignment operator.
- Parameters
-
- Returns
- moved item
◆ operator=() [2/2]
| Base & StormByte::Config::Item::Base::operator= |
( |
const Base & |
base | ) |
|
|
defaultnoexcept |
Assignment operator.
- Parameters
-
- Returns
- copied item
◆ operator==()
| bool StormByte::Config::Item::Base::operator== |
( |
const Base & |
base | ) |
const |
|
noexcept |
Compares two items.
- Parameters
-
- Returns
- bool
◆ Serialize()
◆ Type()
| virtual constexpr Item::Type StormByte::Config::Item::Base::Type |
( |
| ) |
const |
|
constexprpure virtualnoexcept |
◆ TypeToString()
| constexpr std::string_view StormByte::Config::Item::Base::TypeToString |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Gets the type as string.
- Returns
- type as string
◆ m_name
The documentation for this class was generated from the following file:
- lib/public/StormByte/config/item/base.hxx