|
| template<typename E> |
| std::string_view | toStringView (E e) noexcept |
| | Convert an enum value into a string view.
|
| template<typename E> |
| std::string | toString (E e) noexcept |
| | Convert an enum value into a string.
|
| template<typename E> |
| std::optional< E > | fromStringView (std::string_view) noexcept=delete |
| | Convert a string view to an enum value.
|
| template<typename E> |
| std::optional< E > | fromString (std::string const &) noexcept=delete |
| | Convert a string to an enum value.
|
| template<typename E> |
| std::unordered_map< std::string, E > const & | allValuesMap () noexcept=delete |
| | Map from label (owned string) to enum value for type E.
|
| template<typename E> |
| std::unordered_map< std::string_view, E > const & | allValuesMapView () noexcept=delete |
| | Map from label (string_view) to enum value for type E.
|
| template<typename E> |
| std::vector< E > const & | allValues () noexcept=delete |
| | Return all enum values registered for E, in the order provided to the macro. Deleted by default; provided via macro specialization.
|
| template<typename E> |
| std::vector< std::string_view > const & | allValuesStringView () noexcept=delete |
| | Return all labels registered for E, in the order provided to the macro. Deleted by default; provided via macro specialization.
|
Enum string conversion and enumeration utilities.
The templates in this namespace are declared as deleted by default and are meant to be explicitly specialized by the macros in this file.