|
Reactions
0.0.0
Handling reaction trees and decays
|
Contains macros to define smart enumeration types. More...


Go to the source code of this file.
Classes | |
| struct | reactions::pow_enum::string_tpl< C > |
| String as a template of characters. More... | |
| struct | reactions::pow_enum::string_builder< lambda_str_type > |
| Helper struct to convert strings to templates of strings. More... | |
| struct | reactions::pow_enum::string_builder< lambda_str_type >::produce< indices > |
| struct | reactions::pow_enum::apply_range< count, meta_functor, indices > |
| Transform a template of characters into a string. More... | |
| struct | reactions::pow_enum::apply_range< 0, meta_functor, indices... > |
| Transform a template of characters into a string. More... | |
| struct | reactions::pow_enum::string_group< S > |
| Group of string templates. More... | |
Namespaces | |
| reactions::pow_enum | |
| Utilities to define smart enumeration types. | |
Macros | |
| #define | REACTIONS_POW_ENUM(enum_name, ...) |
| #define | REACTIONS_POW_ENUM_WITH_UNKNOWN(enum_name, ...) |
Functions | |
| template<class... Strings, char... C> | |
| constexpr auto | reactions::pow_enum::parse_string_impl (string_group< Strings... >, string_tpl< C... >, string_tpl<>) |
| Implementation of the function to parse a string. More... | |
| template<class... Strings, char... Cp, char C0, char... C> | |
| constexpr auto | reactions::pow_enum::parse_string_impl (string_group< Strings... >, string_tpl< Cp... >, string_tpl< C0, C... >) |
| Implementation of the function to parse a string. More... | |
| template<char... C> | |
| constexpr auto | reactions::pow_enum::parse_string (string_tpl< C... > s) |
| Parse a string template and return it as an array of strings. More... | |
Contains macros to define smart enumeration types.
The macro REACTIONS_POW_ENUM_WITH_UNKNOWN is provided in this file, which defines a class containing an enumeration type, and several functions and constant objects to iterate over the enumeration values and convert/parse them to/from strings.
| #define REACTIONS_POW_ENUM | ( | enum_name, | |
| ... | |||
| ) |
This macro defines a new class with the given name, which itself defines an enum and a series of elements to facilitate operations with them.
| #define REACTIONS_POW_ENUM_WITH_UNKNOWN | ( | enum_name, | |
| ... | |||
| ) |
This macro defines a new class with the given name, which itself defines an enum and a series of elements to facilitate operations with them.
1.8.13