OGS
ChemistryLib::PhreeqcKernelData::EquilibriumReactants Class Referencefinal

Detailed Description

Definition at line 30 of file EquilibriumReactants.h.

#include <EquilibriumReactants.h>

Inheritance diagram for ChemistryLib::PhreeqcKernelData::EquilibriumReactants:
[legend]
Collaboration diagram for ChemistryLib::PhreeqcKernelData::EquilibriumReactants:
[legend]

Public Member Functions

 EquilibriumReactants (std::vector< PhaseComponent > const &phase_components)
void setChemicalSystemID (std::size_t const chemical_system_id)
cxxPPassemblage const * castToBaseClass () const
std::map< std::string, cxxPPassemblageComp > const & getPhaseComponents () const

Constructor & Destructor Documentation

◆ EquilibriumReactants()

ChemistryLib::PhreeqcKernelData::EquilibriumReactants::EquilibriumReactants ( std::vector< PhaseComponent > const & phase_components)
explicit

Definition at line 20 of file EquilibriumReactants.cpp.

22{
23 for (auto const& phase_component : phase_components)
24 {
25 auto& name = phase_component.getName();
26 pp_assemblage_comps[name] = *phase_component.castToBaseClass();
27 }
28}

Member Function Documentation

◆ castToBaseClass()

cxxPPassemblage const * ChemistryLib::PhreeqcKernelData::EquilibriumReactants::castToBaseClass ( ) const
inline

Definition at line 41 of file EquilibriumReactants.h.

42 {
43 return static_cast<cxxPPassemblage const*>(this);
44 }

Referenced by getPhaseComponents(), and ChemistryLib::PhreeqcKernelData::PhreeqcKernel::tidyEquilibriumReactants().

◆ getPhaseComponents()

std::map< std::string, cxxPPassemblageComp > const & ChemistryLib::PhreeqcKernelData::EquilibriumReactants::getPhaseComponents ( ) const
inline

Definition at line 46 of file EquilibriumReactants.h.

47 {
48 return castToBaseClass()->Get_pp_assemblage_comps();
49 }

References castToBaseClass().

Referenced by ChemistryLib::PhreeqcKernelData::PhreeqcKernel::tidyEquilibriumReactants().

◆ setChemicalSystemID()

void ChemistryLib::PhreeqcKernelData::EquilibriumReactants::setChemicalSystemID ( std::size_t const chemical_system_id)
inline

Definition at line 36 of file EquilibriumReactants.h.

37 {
38 Set_n_user_both(chemical_system_id);
39 }

The documentation for this class was generated from the following files: