https://mooseframework.inl.gov
Public Attributes | Friends | List of all members
ReactionNetworkUtils::Term Struct Reference

#include <ReactionNetworkUtils.h>

Public Attributes

double coefficient
 
std::string species
 
std::optional< std::string > state
 
std::optional< std::string > charge
 

Friends

bool operator< (const Term &a, const Term &b) noexcept
 

Detailed Description

Definition at line 19 of file ReactionNetworkUtils.h.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const Term a,
const Term b 
)
friend

Definition at line 31 of file ReactionNetworkUtils.h.

32  {
33  if (a.species != b.species)
34  return a.species < b.species;
35  if (a.state != b.state)
36  return a.state < b.state;
37  return a.charge < b.charge;
38  }

Member Data Documentation

◆ charge

std::optional<std::string> ReactionNetworkUtils::Term::charge

Definition at line 25 of file ReactionNetworkUtils.h.

◆ coefficient

double ReactionNetworkUtils::Term::coefficient

Definition at line 21 of file ReactionNetworkUtils.h.

Referenced by ReactionNetworkUtils::parseReactionNetwork().

◆ species

std::string ReactionNetworkUtils::Term::species

Definition at line 22 of file ReactionNetworkUtils.h.

◆ state

std::optional<std::string> ReactionNetworkUtils::Term::state

Definition at line 24 of file ReactionNetworkUtils.h.


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