|
Reactions
0.1.2
Handling reaction trees and decays
|
Processes among elements (reactions and decays) More...
Namespaces | |
| detail | |
| Internal utilities for the reactions::processes namespace. | |
Functions | |
| REACTIONS_POW_ENUM_WITH_UNKNOWN (node_type, element, reaction, decay) | |
| Node types. More... | |
| template<class FillElement , class FillExpression , class ArrowSwitch > | |
| void | process_expression (std::string::const_iterator &sit, std::string::const_iterator const &end, FillElement fill_element, FillExpression fill_expression, ArrowSwitch arrow_switch) |
| Internal function to process an expression. More... | |
| template<class Process > | |
| Process | make_process (std::string const &str, typename Process::builder_type builder) |
| Make a new process (a reaction or a decay) More... | |
Processes among elements (reactions and decays)
| Process reactions::processes::make_process | ( | std::string const & | str, |
| typename Process::builder_type | builder | ||
| ) |
Make a new process (a reaction or a decay)
| str | string to parse |
| builder | function to build the underlying elements |
| void reactions::processes::process_expression | ( | std::string::const_iterator & | sit, |
| std::string::const_iterator const & | end, | ||
| FillElement | fill_element, | ||
| FillExpression | fill_expression, | ||
| ArrowSwitch | arrow_switch | ||
| ) |
Internal function to process an expression.
| sit | current position in the processed string |
| end | end of the string to process |
| fill_element | fills an element. The function must check whether it needs to fill a component on the left or right side of an arrow. The start of the element is provided to the function. |
| fill_expression | fills an expression. The function must check whether it needs to fill a component on the left or right side of an arrow. |
| arrow_switch | action to execute when an arrow is detected. |
1.8.13