OGS
ChemistryLib::PhreeqcKernelData::Kinetics Class Referencefinal

Detailed Description

Definition at line 33 of file KineticReactant.h.

#include <KineticReactant.h>

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

Public Member Functions

 Kinetics (std::vector< KineticReactant > const &kinetic_reactants)
 
void setChemicalSystemID (std::size_t const chemical_system_id)
 
cxxKinetics const * castToBaseClass () const
 

Constructor & Destructor Documentation

◆ Kinetics()

ChemistryLib::PhreeqcKernelData::Kinetics::Kinetics ( std::vector< KineticReactant > const & kinetic_reactants)
explicit

Definition at line 27 of file KineticReactant.cpp.

28{
29 std::transform(kinetic_reactants.begin(),
30 kinetic_reactants.end(),
31 std::back_inserter(kinetics_comps),
32 [](KineticReactant const& kinetic_reactant)
33 { return *kinetic_reactant.castToBaseClass(); });
34}

Member Function Documentation

◆ castToBaseClass()

cxxKinetics const * ChemistryLib::PhreeqcKernelData::Kinetics::castToBaseClass ( ) const
inline

Definition at line 43 of file KineticReactant.h.

44 {
45 return static_cast<cxxKinetics const*>(this);
46 }

◆ setChemicalSystemID()

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

Definition at line 38 of file KineticReactant.h.

39 {
40 Set_n_user_both(chemical_system_id);
41 }

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