OGS
ChemistryLib::PhreeqcKernelData::AqueousSolution Class Referencefinal

Detailed Description

Definition at line 24 of file AqueousSolution.h.

#include <AqueousSolution.h>

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

Public Member Functions

 AqueousSolution (double const temperature, double const pressure, double const pe_value, cxxISolution const &initial_aqueous_solution)
 
std::unique_ptr< cxxISolution const > getInitialAqueousSolution () const
 
void setChemicalSystemID (std::size_t const chemical_system_id)
 
cxxSolution const * castToBaseClass () const
 
std::unique_ptr< cxxSolution const > castToBaseClassNoninitialized ()
 

Constructor & Destructor Documentation

◆ AqueousSolution()

ChemistryLib::PhreeqcKernelData::AqueousSolution::AqueousSolution ( double const temperature,
double const pressure,
double const pe_value,
cxxISolution const & initial_aqueous_solution )

Definition at line 17 of file AqueousSolution.cpp.

20{
21 new_def = true;
22 tc = temperature;
23 patm = pressure;
24 pe = pe_value;
25
26 Set_initial_data(&initial_aqueous_solution);
27}

References ChemistryLib::pe.

Member Function Documentation

◆ castToBaseClass()

cxxSolution const * ChemistryLib::PhreeqcKernelData::AqueousSolution::castToBaseClass ( ) const
inline

Definition at line 41 of file AqueousSolution.h.

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

Referenced by ChemistryLib::PhreeqcKernelData::PhreeqcKernel::PhreeqcKernel(), and castToBaseClassNoninitialized().

◆ castToBaseClassNoninitialized()

std::unique_ptr< cxxSolution const > ChemistryLib::PhreeqcKernelData::AqueousSolution::castToBaseClassNoninitialized ( )
inline

Definition at line 46 of file AqueousSolution.h.

47 {
48 Destroy_initial_data();
49 return std::make_unique<cxxSolution const>(*castToBaseClass());
50 }

References castToBaseClass().

◆ getInitialAqueousSolution()

std::unique_ptr< cxxISolution const > ChemistryLib::PhreeqcKernelData::AqueousSolution::getInitialAqueousSolution ( ) const
inline

Definition at line 31 of file AqueousSolution.h.

32 {
33 return std::make_unique<cxxISolution const>(*Get_initial_data());
34 }

◆ setChemicalSystemID()

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

Definition at line 36 of file AqueousSolution.h.

37 {
38 Set_n_user_both(chemical_system_id);
39 }

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


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