Comment item (#, // or /* *\/).
More...
#include <StormByte/config/item/comment.hxx>


Public Member Functions | |
| Comment (const StormByte::String::String &comment) | |
| Constructs a Comment with the given string. | |
| Comment (StormByte::String::String &&comment) | |
| Move constructor from comment string. | |
| Comment (const char *comment) | |
| Constructs a Comment from a C string. | |
| Comment (const Comment &base)=default | |
| Copy constructor. | |
| Comment (Comment &&base) noexcept=default | |
| Move constructor. | |
| Comment & | operator= (const Comment &base)=default |
| Copy assignment operator. | |
| Comment & | operator= (Comment &&base) noexcept=default |
| Move assignment operator. | |
| ~Comment () noexcept override | |
| Destructor. | |
| bool | Equals (const Base &other) const noexcept override |
| Polymorphic equality comparison. | |
| StormByte::String::String | Serialize (const int &indent_level) const noexcept override |
| Serializes the comment item. | |
| constexpr Item::Type | Type () const noexcept override |
| Gets the item type. | |
| constexpr StormByte::Config::Item::CommentType | CommentType () const noexcept |
| Gets the comment syntax. | |
| constexpr std::string_view | CommentTypeToString () const noexcept |
| Converts comment syntax to string. | |
| StormByte::String::String & | Text () noexcept |
| Comment text. | |
| const StormByte::String::String & | Text () const noexcept |
| Comment text. | |
| PointerType | Clone () const override |
| Clones the comment. | |
| PointerType | Move () override |
| Moves the comment. | |
| ~Comment () noexcept | |
| Destructor for bash single-line comments. | |
| ~Comment () noexcept | |
| Destructor for C single-line comments. | |
| ~Comment () noexcept | |
| Destructor for C multi-line comments. | |
| bool | Equals (const Base &other) const noexcept |
| Equality for bash single-line comments. | |
| bool | Equals (const Base &other) const noexcept |
| Equality for C single-line comments. | |
| bool | Equals (const Base &other) const noexcept |
| Equality for C multi-line comments. | |
| StormByte::String::String | Serialize (const int &indent_level) const noexcept |
| Serializes a bash single-line comment. | |
| StormByte::String::String | Serialize (const int &indent_level) const noexcept |
| Serializes a C single-line comment. | |
| StormByte::String::String | Serialize (const int &indent_level) const noexcept |
| Serializes a C multi-line comment. | |
Public Member Functions inherited from StormByte::Config::Item::Base | |
| Base () noexcept | |
| Constructor. | |
| Base (const StormByte::String::String &name) | |
| Constructor. | |
| Base (const Base &base) noexcept=default | |
| Copy constructor. | |
| Base (Base &&base) noexcept=default | |
| Move constructor. | |
| Base & | operator= (const Base &base) noexcept=default |
| Assignment operator. | |
| Base & | operator= (Base &&base) noexcept=default |
| Move assignment operator. | |
| ~Base () noexcept override | |
| Destructor. | |
| bool | operator== (const Base &base) const noexcept |
| Compares two items. | |
| bool | operator!= (const Base &base) const noexcept |
| Compares two items. | |
| constexpr const StormByte::String::String & | Name () const noexcept |
| Gets the name of the item. | |
| constexpr void | Name (const StormByte::String::String &name) |
| Sets the name of the item. | |
| void | Name (std::string_view name) |
| Sets the name of the item. | |
| constexpr std::string_view | TypeToString () const noexcept |
| Gets the type as string. | |
| template<class T > | |
| decltype(auto) | As () |
| Typed view of this item. | |
| template<class T > | |
| decltype(auto) | As () const |
| Typed view of this item. | |
Public Member Functions inherited from StormByte::Clonable< Base, StormByte::Shared< Base > > | |
| constexpr | Clonable ()=default |
| constexpr | Clonable (const Clonable &)=default |
| constexpr | Clonable (Clonable &&) noexcept=default |
| constexpr Clonable & | operator= (const Clonable &)=default |
| constexpr Clonable & | operator= (Clonable &&) noexcept=default |
| virtual constexpr | ~Clonable () noexcept=default |
Static Public Attributes | |
| static constexpr bool | CommentTag = true |
Additional Inherited Members | |
Public Types inherited from StormByte::Clonable< Base, StormByte::Shared< Base > > | |
| typedef SmartPointer | PointerType |
Static Public Member Functions inherited from StormByte::Config::Item::Base | |
| static bool | IsNameValid (const StormByte::String::String &name) noexcept |
| Checks if name is valid. | |
| static bool | IsNameValid (std::string_view name) noexcept |
| Checks if name is valid. | |
Static Public Member Functions inherited from StormByte::Clonable< Base, StormByte::Shared< Base > > | |
| static PointerType | MakePointer (Args &&... args) |
Protected Attributes inherited from StormByte::Config::Item::Base | |
| StormByte::String::String | m_name |
| Name of the item. | |
Comment item (#, // or /* *\/).
| T | Comment syntax (CommentType). |
|
inline |
Constructs a Comment with the given string.
| comment | The comment string. |
|
inline |
Move constructor from comment string.
| comment | Comment string. |
|
inline |
|
default |
Copy constructor.
| base | Comment to copy. |
|
defaultnoexcept |
Move constructor.
| base | Comment to move. |
|
overridenoexcept |
Destructor.
Defined in this module so catch matches across a DLL.
|
noexcept |
Destructor for bash single-line comments.
|
noexcept |
Destructor for C single-line comments.
|
noexcept |
Destructor for C multi-line comments.
|
inlineoverridevirtual |
Clones the comment.
Implements StormByte::Clonable< Base, StormByte::Shared< Base > >.
|
inlineconstexprnoexcept |
Gets the comment syntax.
|
inlineconstexprnoexcept |
Converts comment syntax to string.
|
virtualnoexcept |
Equality for bash single-line comments.
| other | The other item. |
Implements StormByte::Config::Item::Base.
|
virtualnoexcept |
Equality for C single-line comments.
| other | The other item. |
Implements StormByte::Config::Item::Base.
|
virtualnoexcept |
Equality for C multi-line comments.
| other | The other item. |
Implements StormByte::Config::Item::Base.
|
overridevirtualnoexcept |
Polymorphic equality comparison.
| other | The other item to compare against. |
Implements StormByte::Config::Item::Base.
|
inlineoverridevirtual |
Moves the comment.
Implements StormByte::Clonable< Base, StormByte::Shared< Base > >.
|
defaultnoexcept |
|
default |
|
virtualnoexcept |
Serializes a bash single-line comment.
| indent_level | Indentation level. |
Reimplemented from StormByte::Config::Item::Base.
|
virtualnoexcept |
Serializes a C single-line comment.
| indent_level | Indentation level. |
Reimplemented from StormByte::Config::Item::Base.
|
virtualnoexcept |
Serializes a C multi-line comment.
| indent_level | Indentation level. |
Reimplemented from StormByte::Config::Item::Base.
|
overridevirtualnoexcept |
Serializes the comment item.
| indent_level | Indentation level. |
Reimplemented from StormByte::Config::Item::Base.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexproverridevirtualnoexcept |
|
staticconstexpr |