ReactionEquation.hpp
A type used to represent the equation of a reaction.
Definition: ReactionEquation.hpp:37
auto coefficient(const String &name) const -> double
Return the stoichiometric coefficient of a species in the reaction equation.
ReactionEquation(String const &equation)
Construct a ReactionEquation object by parsing a formatted string.
auto empty() const -> bool
Return true if the rection equation is empty.
auto end()
Return end iterator of this ReactionEquation object (for STL compatibility reasons).
Definition: ReactionEquation.hpp:98
ReactionEquation()
Construct a default ReactionEquation object.
auto species() const -> Vec< Species >
Return the species in the reaction equation.
ReactionEquation(String const &equation, SpeciesList const &species)
Construct a ReactionEquation object by parsing a formatted string.
auto coefficients() const -> Vec< double >
Return the stoichiometric coefficients of the species in the reaction equation.
auto begin() const
Return begin const iterator of this ReactionEquation object (for STL compatibility reasons).
Definition: ReactionEquation.hpp:89
auto begin()
Return begin iterator of this ReactionEquation object (for STL compatibility reasons).
Definition: ReactionEquation.hpp:92
auto end() const
Return end const iterator of this ReactionEquation object (for STL compatibility reasons).
Definition: ReactionEquation.hpp:95
auto size() const -> Index
Return the number of species in the reaction equation.
ReactionEquation(Pairs< Species, double > const &species)
Construct an ReactionEquation object with given species and respective stoichiometric coefficients.
A type used to represent a chemical species and its attributes.
Definition: Species.hpp:35
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Vec< Pair< T, U > > Pairs
Convenient alias for std::vector<std::pair<T, U>>.
Definition: Types.hpp:90
auto operator<(const ChemicalFormula &lhs, const ChemicalFormula &rhs) -> bool
Compare two ChemicalFormula objects for less than.
auto operator==(const ChemicalFormula &lhs, const ChemicalFormula &rhs) -> bool
Compare two ChemicalFormula objects for equality.
auto operator<<(std::ostream &out, AggregateState option) -> std::ostream &
Output an AggregateState value.