|
|
| | Comment (const std::string &comment) |
| | Constructs a Comment with the given string.
|
| |
| | Comment (std::string &&comment) |
| | Move constructor from comment string.
|
| |
| | Comment (const Comment &base)=default |
| | Copy constructor.
|
| |
| | Comment (Comment &&base)=default |
| | Move constructor.
|
| |
| Comment & | operator= (const Comment &base)=default |
| | Copy assignment operator.
|
| |
| Comment & | operator= (Comment &&base)=default |
| | Move assignment operator.
|
| |
|
| ~Comment () noexcept override=default |
| | Destructor.
|
| |
|
| bool | Equals (const Base &other) const noexcept override |
| | Polymorphic equality comparison.
|
| |
| std::string | Serialize (const int &indent_level) const noexcept override |
| | Serializes the comment item.
|
| |
| constexpr Item::Type | Type () const noexcept override |
| | Gets the item type.
|
| |
| std::optional< CommentType > | GetCommentType () const noexcept override |
| | Returns the concrete comment type of this Comment specialization.
|
| |
| constexpr StormByte::Config::Item::CommentType | CommentType () const noexcept |
| | Gets the comment syntax.
|
| |
| constexpr std::string | CommentTypeToString () const noexcept |
| | Converts comment syntax to string.
|
| |
| PointerType | Clone () const override |
| | Clones the comment.
|
| |
| PointerType | Move () override |
| | Moves the comment.
|
| |
| | Value (const T &value) |
| | Constructs a Value with the given value.
|
| |
| | Value (const char *value) |
| | Constructs a string Value from a C string.
|
| |
| | Value (const char *name, const char *value) |
| | Constructs a named string Value from C strings.
|
| |
| | Value (T &&value) |
| | Move constructor from value.
|
| |
| | Value (const std::string &name, const T &value) |
| | Constructs a named Value.
|
| |
| | Value (std::string &&name, T &&value) |
| | Constructs a named Value (move).
|
| |
| | Value (const std::string &name, const char *value) |
| | Named string constructor from C string value.
|
| |
| | Value (std::string &&name, const char *value) |
| | Named string constructor (move name) from C string value.
|
| |
| | Value (const Value &single)=default |
| | Copy constructor.
|
| |
| | Value (Value &&single) noexcept=default |
| | Move constructor.
|
| |
| Value & | operator= (const Value &single)=default |
| | Copy assignment operator.
|
| |
| Value & | operator= (Value &&single) noexcept=default |
| | Move assignment operator.
|
| |
|
virtual | ~Value () noexcept override=default |
| | Destructor.
|
| |
| bool | Equals (const Base &other) const noexcept override |
| | Polymorphic equality comparison.
|
| |
| bool | operator== (const Value< T > &single) const noexcept |
| | Checks if two Value objects are equal.
|
| |
| bool | operator!= (const Value< T > &single) const noexcept |
| | Inequality operator.
|
| |
| T & | operator* () noexcept |
| | Gets the item value (mutable).
|
| |
| const T & | operator* () const noexcept |
| | Gets the item value (const).
|
| |
| std::string | Serialize (const int &indent_level) const noexcept override |
| | Serializes the item to a string.
|
| |
|
| Base ()=default |
| | Default constructor.
|
| |
| | Base (const std::string &name) |
| | Constructs a Base item with a name.
|
| |
| | Base (const Base &base)=default |
| | Copy constructor.
|
| |
| | Base (Base &&base) noexcept=default |
| | Move constructor.
|
| |
| Base & | operator= (const Base &base)=default |
| | Copy assignment operator.
|
| |
| Base & | operator= (Base &&base) noexcept=default |
| | Move assignment operator.
|
| |
|
virtual | ~Base () noexcept=default |
| | Destructor.
|
| |
| bool | operator== (const Base &other) const noexcept |
| | Equality operator.
|
| |
| bool | operator!= (const Base &other) const noexcept |
| | Inequality operator.
|
| |
| constexpr const std::optional< std::string > & | Name () const noexcept |
| | Gets the name of the item.
|
| |
| constexpr void | Name (const std::string &name) noexcept |
| | Sets the item name.
|
| |
| bool | IsNameValid () const noexcept |
| | Checks if the current name is valid.
|
| |
| constexpr std::string | TypeToString () const noexcept |
| | Gets the item type as a string.
|
| |
| | operator std::string () const |
| | Converts the item to a string.
|
| |
| template<typename T > |
| const T & | Value () const |
| | Gets the item value (const).
|
| |
| template<typename T > |
| T & | Value () |
| | Gets the item value (mutable).
|
| |
template<
CommentType T>
class StormByte::Config::Item::Comment< T >
Comment item (#, // or /* *\/).
- Template Parameters
-