Reactions  0.0.0
Handling reaction trees and decays
Namespaces | Functions
reactions::processes Namespace Reference

Processes among elements (reactions and decays) More...

Namespaces

 detail
 Internal utilities for the reactions::processes namespace.
 

Functions

 REACTIONS_POW_ENUM_WITH_UNKNOWN (node_kind, 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...
 

Detailed Description

Processes among elements (reactions and decays)

Function Documentation

◆ make_process()

template<class Process >
Process reactions::processes::make_process ( std::string const &  str,
typename Process::builder_type  builder 
)

Make a new process (a reaction or a decay)

Parameters
strstring to parse
builderfunction to build the underlying elements
Returns
the new process

◆ process_expression()

template<class FillElement , class FillExpression , class ArrowSwitch >
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.

Parameters
sitcurrent position in the processed string
endend of the string to process
fill_elementfills 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_expressionfills an expression. The function must check whether it needs to fill a component on the left or right side of an arrow.
arrow_switchaction to execute when an arrow is detected.

◆ REACTIONS_POW_ENUM_WITH_UNKNOWN()

reactions::processes::REACTIONS_POW_ENUM_WITH_UNKNOWN ( node_kind  ,
element  ,
reaction  ,
decay   
)

Node types.