|
LMMS
|
#include <Identifier.h>
Public Member Functions | |
| Identifier () noexcept | |
| Identifier (const char *name) | |
| Identifier (const std::string &name) | |
| Identifier (const char *nameStart, const char *nameEnd) | |
| Identifier (const Identifier &other) noexcept | |
| Identifier & | operator= (const Identifier &other) noexcept |
| ~Identifier () noexcept | |
| bool | operator== (const Identifier &other) const noexcept |
| bool | operator!= (const Identifier &other) const noexcept |
| bool | operator== (const char *other) const noexcept |
| bool | operator!= (const char *other) const noexcept |
| bool | operator< (const char *other) const noexcept |
| bool | operator<= (const char *other) const noexcept |
| bool | operator> (const char *other) const noexcept |
| bool | operator>= (const char *other) const noexcept |
| const std::string & | toString () const noexcept |
| operator StringRef () const noexcept | |
| bool | isValid () const noexcept |
| bool | isNull () const noexcept |
Private Attributes | |
| std::string | name |
Represents a string identifier, designed for accessing properties by name.
Comparing two Identifier objects is very fast (an O(1) operation), but creating them can be slower than just using a String directly, so the optimal way to use them is to keep some static Identifier objects for the things you use often.
|
noexcept |
Creates a null identifier.
| water::Identifier::Identifier | ( | const char * | name | ) |
Creates an identifier with a specified name. Because this name may need to be used in contexts such as script variables or XML tags, it must only contain ascii letters and digits, or the underscore character.
| water::Identifier::Identifier | ( | const std::string & | name | ) |
Creates an identifier with a specified name. Because this name may need to be used in contexts such as script variables or XML tags, it must only contain ascii letters and digits, or the underscore character.
Creates an identifier with a specified name. Because this name may need to be used in contexts such as script variables or XML tags, it must only contain ascii letters and digits, or the underscore character.
|
noexcept |
Creates a copy of another identifier.
|
noexcept |
Destructor
|
inlinenoexcept |
Returns true if this Identifier is null
|
inlinenoexcept |
Returns true if this Identifier is not null
|
inlinenoexcept |
Returns this identifier as a StringRef.
|
inlinenoexcept |
Compares the identifier with a string.
|
inlinenoexcept |
Compares two identifiers. This is a very fast operation.
|
inlinenoexcept |
Compares the identifier with a string.
|
inlinenoexcept |
Compares the identifier with a string.
|
noexcept |
Creates a copy of another identifier.
|
inlinenoexcept |
Compares the identifier with a string.
|
inlinenoexcept |
Compares two identifiers. This is a very fast operation.
|
inlinenoexcept |
Compares the identifier with a string.
|
inlinenoexcept |
Compares the identifier with a string.
|
inlinenoexcept |
Returns this identifier as a string.
|
private |