DissociationReactions.hpp
A type used to represent the chemical formula of a chemical species.
Definition: ChemicalFormula.hpp:27
A type used store a collection of dissociation reactions.
Definition: DissociationReactions.hpp:38
auto operator=(const DissociationReactions &) -> DissociationReactions &=delete
Assign a DissociationReactions object to this [deleted].
static auto instance() -> DissociationReactions &
Return the single DissociationReactions object.
static auto coefficient(const ChemicalFormula &complex, const ChemicalFormula &ion) -> double
Return the stoichiometric coefficient of an ion in a complex substance.
static auto reset() -> void
Reset the DissociationReactions object to its default state.
auto end()
Return end iterator of this DissociationReactions instance.
static auto size() -> std::size_t
Return the number of dissociation reactions in the database.
static auto reactions() -> const Deque< DissociationReaction > &
Return the dissociation reactions in the database.
static auto get(const ChemicalFormula &complex) -> std::optional< DissociationReaction >
Return the dissociation reaction of the substance with given chemical formula.
static auto append(DissociationReaction reaction) -> void
Append a dissociation reaction in to the database.
DissociationReactions(const DissociationReactions &)=delete
Construct a copy of a DissociationReactions object [deleted].
auto begin() const
Return begin const iterator of this DissociationReactions instance.
auto begin()
Return begin iterator of this DissociationReactions instance.
auto end() const
Return end const iterator of this DissociationReactions instance.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
A type used to represent a dissociation reaction of a neutral substance into ions.
Definition: DissociationReactions.hpp:28
std::vector< std::pair< double, ChemicalFormula > > ions
The dissociated ions and their stoichiometric coefficients.
Definition: DissociationReactions.hpp:33
ChemicalFormula complex
The chemical formula of the complex substance that dissociates into ions.
Definition: DissociationReactions.hpp:30