|
Reactions
0.0.0
Handling reaction trees and decays
|
Base class for a process node. More...
#include <processes.hpp>
Public Types | |
| using | element_type = element_wrapper< Element > |
| using | reaction_type = reaction< Element > |
| using | decay_type = decay< Element > |
Public Member Functions | |
| node (std::unique_ptr< element_type > &&ptr) | |
| Constructor from an element. More... | |
| node (std::unique_ptr< reaction_type > &&ptr) | |
| Constructor from a reaction. More... | |
| node (std::unique_ptr< decay_type > &&ptr) | |
| Construction from a decay. More... | |
| node (node &&other) | |
| Move constructor. More... | |
| ~node () noexcept(false) | |
| Destructor. More... | |
| node ()=delete | |
| node (node const &)=delete | |
| node & | operator= (node const &)=delete |
| 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_kind | type () const |
| Get the node type. More... | |
| node_object const * | object () const |
| Get the pointer to the underlying object. More... | |
| Element const * | ptr_as_element () const |
| Return the pointer to the underlying object casted to an element. More... | |
| reaction_type const * | ptr_as_reaction () const |
| Return the pointer to the underlying object casted to a reaction. More... | |
| decay_type const * | ptr_as_decay () const |
| Return the pointer to the underlying object casted to a decay. More... | |
Protected Member Functions | |
| element_type const * | ptr_as_element_wrapper () const |
Base class for a process node.
This abstract class allows to check if the underlying class is an element or a composite object.
| using reactions::node< Element >::decay_type = decay<Element> |
| using reactions::node< Element >::element_type = element_wrapper<Element> |
| using reactions::node< Element >::reaction_type = reaction<Element> |
|
inline |
Constructor from an element.
|
inline |
Constructor from a reaction.
|
inline |
Construction from a decay.
|
inline |
Move constructor.
|
inlinenoexcept |
Destructor.
|
delete |
|
delete |
|
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 pointer to the underlying object.
|
delete |
|
inline |
Return the pointer to the underlying object casted to a decay.
|
inline |
Return the pointer to the underlying object casted to an element.
|
inlineprotected |
Internal method to return the underlying object casted to a wrapped element
|
inline |
Return the pointer to the underlying object casted to a reaction.
|
inline |
Get the node type.
1.8.13