OGS
ChemistryLib::PhreeqcKernelData::EquilibriumReactants Class Referencefinal

Detailed Description

Definition at line 37 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 27 of file EquilibriumReactants.cpp.

29{
30 for (auto const& phase_component : phase_components)
31 {
32 auto& name = phase_component.getName();
33 pp_assemblage_comps[name] = *phase_component.castToBaseClass();
34 }
35}

Member Function Documentation

◆ castToBaseClass()

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

Definition at line 48 of file EquilibriumReactants.h.

49 {
50 return static_cast<cxxPPassemblage const*>(this);
51 }

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

◆ getPhaseComponents()

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

Definition at line 53 of file EquilibriumReactants.h.

54 {
55 return castToBaseClass()->Get_pp_assemblage_comps();
56 }

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 43 of file EquilibriumReactants.h.

44 {
45 Set_n_user_both(chemical_system_id);
46 }

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