OGS
ChemistryLib::PhreeqcIOData::ReactionRate Struct Reference

Detailed Description

Definition at line 21 of file ReactionRate.h.

#include <ReactionRate.h>

Public Member Functions

 ReactionRate (std::string kinetic_reactant_, std::vector< std::string > &&expression_statements_)
 

Public Attributes

std::string const kinetic_reactant
 
std::vector< std::string > const expression_statements
 

Friends

std::ostream & operator<< (std::ostream &os, ReactionRate const &reaction_rate)
 

Constructor & Destructor Documentation

◆ ReactionRate()

ChemistryLib::PhreeqcIOData::ReactionRate::ReactionRate ( std::string kinetic_reactant_,
std::vector< std::string > && expression_statements_ )
inline

Definition at line 23 of file ReactionRate.h.

25 : kinetic_reactant(std::move(kinetic_reactant_)),
26 expression_statements(std::move(expression_statements_))
27 {
28 }
std::vector< std::string > const expression_statements

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
ReactionRate const & reaction_rate )
friend

Definition at line 19 of file ReactionRate.cpp.

20{
21 os << reaction_rate.kinetic_reactant << "\n";
22 os << "-start"
23 << "\n";
24 int line_number = 1;
25 for (auto const& expression_statement : reaction_rate.expression_statements)
26 {
27 os << line_number << " " << expression_statement << "\n";
28 ++line_number;
29 }
30 os << "-end"
31 << "\n";
32
33 return os;
34}

Member Data Documentation

◆ expression_statements

std::vector<std::string> const ChemistryLib::PhreeqcIOData::ReactionRate::expression_statements

Definition at line 34 of file ReactionRate.h.

◆ kinetic_reactant

std::string const ChemistryLib::PhreeqcIOData::ReactionRate::kinetic_reactant

Definition at line 33 of file ReactionRate.h.


The documentation for this struct was generated from the following file: