![]() |
Spicy
|
#include <id.h>
Public Types | |
| using | Base = detail::IDBase< ID > |
Public Member Functions | |
| ID () | |
| ID (const char *s) | |
| ID (std::string_view s) | |
| ID (std::string_view s, AlreadyNormalized n) | |
| template<typename... T, typename enable = std::enable_if_t<(... && std::is_convertible_v<T, std::string_view>)>> | |
| ID (const T &... s) | |
| ID (std::initializer_list< std::string_view > x) | |
| ID (const Base &other) | |
| ID (Base &&other) noexcept | |
Public Member Functions inherited from hilti::detail::IDBase< ID > | |
| IDBase & | operator= (const IDBase &other) |
| IDBase & | operator= (IDBase &&other) noexcept |
| const std::string & | str () const |
| ID | local () const |
| ID | namespace_ () const |
| bool | empty () const |
| size_t | length () const |
| bool | isAbsolute () const |
| ID | sub (int i) const |
| ID | sub (int from, int to) const |
| ID | relativeTo (const ID &root) const |
| ID | makeAbsolute () const |
| ID & | operator+= (const ID &other) |
| ID & | operator+= (std::string_view other) |
| ID | operator+ (std::string_view other) const |
| ID | operator+ (const ID &other) const |
| bool | operator== (const ID &other) const |
| bool | operator!= (const ID &other) const |
| bool | operator< (const ID &other) const |
| operator bool () const | |
| operator std::string () const | |
| operator std::string_view () const | |
Represents an identifier.
|
inline |
Creates an empty ID.
|
inline |
Creates an ID from an (not normalized) string.
|
inline |
|
inlineexplicit |
Concatenates multiple strings into a single ID, separating them with ::.
|
inline |
Concatenates multiple strings into a single ID, separating them with ::.