|
Reactions
0.1.0
Handling reaction trees and decays
|
Description of a process where reactants generate a set of products. More...
#include <processes.hpp>

Public Types | |
| using | element_type = element_wrapper< Element > |
| using | builder_type = element_traits::builder_tpl_t< Element > |
| Underlying element type. More... | |
| using | nodes_type = std::vector< node< Element, reaction > > |
Public Member Functions | |
| reaction (reaction &&)=default | |
| Collection of elements. More... | |
| reaction (const reaction &)=default | |
| Default copy constructor. More... | |
| reaction & | operator= (const reaction &)=default |
| Default assignment operator. More... | |
| ~reaction ()=default | |
| Default destructor. More... | |
| reaction ()=delete | |
| nodes_type const & | reactants () const |
| Get the reactants of the reaction. More... | |
| nodes_type const & | products () const |
| Get the products of the reaction. More... | |
| bool | operator== (reaction< Element > const &other) const |
| Compare two reactions. More... | |
| bool | operator!= (reaction< Element > const &other) const |
| Compare two reactions. More... | |
Protected Member Functions | |
| reaction (std::string::const_iterator &&begin, std::string::const_iterator const &end, builder_type builder) | |
| Constructor from the string iterators. More... | |
| reaction (std::string::const_iterator &sit, std::string::const_iterator const &end, builder_type builder) | |
| Constructor from the string iterators. More... | |
Protected Attributes | |
| nodes_type | m_reactants |
| Reactants. More... | |
| nodes_type | m_products |
| Products. More... | |
Friends | |
| template<class Process > | |
| Process | reactions::processes::make_process (std::string const &, typename Process::builder_type) |
Description of a process where reactants generate a set of products.
Nested reactions must be expressed within parenteses.
| using reactions::reaction< Element >::builder_type = element_traits::builder_tpl_t<Element> |
Underlying element type.
| using reactions::reaction< Element >::element_type = element_wrapper<Element> |
| using reactions::reaction< Element >::nodes_type = std::vector<node<Element, reaction> > |
Signature type of an element builder
|
default |
Collection of elements.
Default move constructor
|
default |
Default copy constructor.
|
default |
Default destructor.
|
delete |
|
inlineprotected |
Constructor from the string iterators.
| begin | iterator pointing to the beginning of the string. |
| end | iterator pointing to the end of the string. |
| builder | function to create the underlying element from a string. |
|
inlineprotected |
Constructor from the string iterators.
This constructor is called internally when creating reactions that contain other reactions.
| begin | iterator pointing to the beginning of the string. |
| end | iterator pointing to the end of the string. |
| builder | function to create the underlying element from a string. |
|
inline |
Compare two reactions.
| other | the reaction to compare with (of the same underlying type). |
|
default |
Default assignment operator.
|
inline |
Compare two reactions.
| other | the reaction to compare with (of the same underlying type). |
|
inline |
Get the products of the reaction.
|
inline |
Get the reactants of the reaction.
|
friend |
|
protected |
Products.
|
protected |
Reactants.
1.8.13