1#ifndef CHEMMISOL_REACTION_H
2#define CHEMMISOL_REACTION_H
43 const std::string&
name,
60 const std::string&
name,
141 const char*
what() const noexcept
override {
142 return message.c_str();
170 const char*
what() const noexcept
override {
171 return message.c_str();
203 const char*
what() const noexcept
override {
204 return message.c_str();
295 std::vector<Reagent> reagents;
319 const std::string& name, std::size_t index,
double log_K,
320 const std::vector<Reagent>& reagents
322 : name(name), index(index), K(std::pow(10, log_K)), log_K(log_K), reagents(reagents) {
Definition reaction.h:122
const char * what() const noexcept override
Definition reaction.h:141
EmptyReagents(const ChemicalSystem *chemical_system, const Reaction *invalid_reaction)
const Reaction & getInvalidReaction() const
Definition reaction.h:114
const ChemicalSystem & getChemicalSystem() const
Definition reaction.h:107
const ChemicalSystem * chemical_system
Definition reaction.h:83
const Reaction * invalid_reaction
Definition reaction.h:87
InvalidReaction(const ChemicalSystem *chemical_system, const Reaction *invalid_reaction)
Definition reaction.h:97
Definition reaction.h:150
MissingProducedSpeciesInReaction(const ChemicalSystem *chemical_system, const Reaction *invalid_reaction)
const char * what() const noexcept override
Definition reaction.h:170
Definition reaction.h:289
std::size_t getIndex() const
Definition reaction.h:338
const std::vector< Reagent > & getReagents() const
Definition reaction.h:359
Reaction(const std::string &name, std::size_t index, double log_K, const std::vector< Reagent > &reagents)
Definition reaction.h:318
const std::string & getName() const
Definition reaction.h:329
double getK() const
Definition reaction.h:345
double getLogK() const
Definition reaction.h:352
Definition reaction.h:183
const char * what() const noexcept override
Definition reaction.h:203
TooManyProducedSpeciesInReaction(const ChemicalSystem *chemical_system, const Reaction *invalid_reaction)
Definition chemmisol.h:31
Phase
Definition species.h:18
Reagent(const std::string &name, double coefficient)
Definition reaction.h:59
std::string name
Definition reaction.h:22
Reagent(const std::string &name, Phase phase, double coefficient)
Definition reaction.h:42
Phase phase
Definition reaction.h:26
double coefficient
Definition reaction.h:31