|
Reactions
0.1.2
Handling reaction trees and decays
|
Base class for a process node. More...
#include <processes.hpp>


Public Types | |
| using | base_type = std::variant< element_wrapper< Element >, Chain< Element > > |
| using | element_type = element_wrapper< Element > |
| using | chain_type = Chain< Element > |
Public Member Functions | |
| bool | is_element () const |
| Check if the underlying class is an element. More... | |
| bool | is_reaction () const |
| Check if the underlying class is a reaction. More... | |
| bool | is_decay () const |
| Check if the underlying class is a decay. More... | |
| processes::node_type | type () const |
| Get the node type. More... | |
| Element const & | as_element () const |
| Return the pointer to the underlying object casted to an element. More... | |
| chain_type const & | as_chain () const |
| Return the pointer to the underlying object casted to a reaction. More... | |
Protected Member Functions | |
| element_type const & | as_element_wrapper () const |
| Return the underlying object casted to a wrapped. More... | |
Protected Member Functions inherited from std::variant< element_wrapper< Element >, Chain< Element > > | |
| T | emplace (T... args) |
| T | index (T... args) |
| T | operator= (T... args) |
| T | swap (T... args) |
| T | valueless_by_exception (T... args) |
| T | variant (T... args) |
| T | ~variant (T... args) |
Base class for a process node.
This abstract class allows to check if the underlying class is an element or a chain object.
| using reactions::node< Element, Chain >::base_type = std::variant<element_wrapper<Element>, Chain<Element> > |
| using reactions::node< Element, Chain >::chain_type = Chain<Element> |
| using reactions::node< Element, Chain >::element_type = element_wrapper<Element> |
|
inline |
Return the pointer to the underlying object casted to a reaction.
|
inline |
Return the pointer to the underlying object casted to an element.
|
inlineprotected |
Return the underlying object casted to a wrapped.
|
inline |
Check if the underlying class is a decay.
|
inline |
Check if the underlying class is an element.
|
inline |
Check if the underlying class is a reaction.
|
inline |
Get the node type.
1.8.13