|
libbio
|
#include <Products.h>

Public Member Functions | |
| Products () | |
| Products (Code result) | |
| Products (Pointer< const Substances > substances) | |
| Products (Pointer< const Reactants > reactants) | |
| Products (Code result, Pointer< const Substances > substances) | |
| Products (Code result, Pointer< const Reactants > reactants) | |
| virtual | ~Products () |
| virtual bool | operator== (const Code code) const |
| virtual bool | operator!= (const Code code) const |
| operator Code () | |
| operator Substances () | |
| operator Reactants () | |
Protected Attributes | |
| Substances | mSubstances |
| Code | mResult |
Products are the result of a chemical::Reaction.
As such, they include Substances (in order to chain Reactions)
And they include a Code, indicating the result of the reaction.
They can be treated as either Substances or a Code.
| bio::chemical::Products::Products | ( | ) |
| bio::chemical::Products::Products | ( | Code | result | ) |
| result |
| bio::chemical::Products::Products | ( | Pointer< const Substances > | substances | ) |
Assume mResult Success(), since we're given a value and no error to report.
| substances |
Assume mResult Success(), since we're given a value and no error to report.
| reactants |
| bio::chemical::Products::Products | ( | Code | result, |
| Pointer< const Substances > | substances | ||
| ) |
| result | |
| substances |
Like Products(const Reactants*) but carries an explicit result Code instead of assuming Success. This is the ctor Reaction::Attempt's "no reaction found" failure branch always assumed existed — it returned Products(code::NotImplemented(), reactants) — but the overload was missing, so that branch never compiled. It only escaped notice because BIO_SANITIZE at the default safety level drops the failure branch entirely.
| result | the result Code (e.g. code::NotImplemented()). |
| reactants | the Reactants to carry through as Products' Substances. |
|
virtual |
| bio::chemical::Products::operator Code | ( | ) |
| bio::chemical::Products::operator Reactants | ( | ) |
see molecular::Pathway for use.
| bio::chemical::Products::operator Substances | ( | ) |
| code |
| code |
|
protected |
|
protected |