55 virtual std::string to_string()
const;
89 virtual void setNeutralGroundState() = 0;
94struct std::hash<prism::SpeciesBase>
Base class for species and subspecies.
Definition SpeciesBase.h:21
int chargeNumber() const
Getter method for the charge number of the species.
Definition SpeciesBase.h:45
int _charge_num
The level of charge ex: Ar-4 this is -4.
Definition SpeciesBase.h:67
std::string checkName(const std::string &name)
Method checks to make sure that the name is not an empty std::string also checks to make sure e and E...
Definition SpeciesBase.C:24
std::string _neutral_ground_state
the neutral ground state for a species ex: Ar2* -> Ar2
Definition SpeciesBase.h:72
double _molar_mass
the molar mass of the species
Definition SpeciesBase.h:63
const std::string & latexRepresentation() const
Getter method for the latex name of the species.
Definition SpeciesBase.h:49
bool operator!=(const SpeciesBase &other) const
Comparison for checking whether or not the two are not equal.
Definition SpeciesBase.C:51
const std::string & name() const
Getter method for the name of species.
Definition SpeciesBase.h:33
virtual void setMass()=0
Method for setting the mass of the species.
virtual void setCharge()=0
Method for the setting the charge number of the species.
SpeciesBase(const std::string &name)
Definition SpeciesBase.C:21
double molarMass() const
Getter method for the molar mass of the species molar mass is in g / mol.
Definition SpeciesBase.h:43
bool operator==(const SpeciesBase &other) const
Comparison operator checks if the two base species have the same name.
Definition SpeciesBase.C:45
double _charge
the charge of the spcies in coulomb
Definition SpeciesBase.h:65
std::string _name
The full std::string of the species base.
Definition SpeciesBase.h:59
virtual void setLatexName()=0
methods for setting the latex name of each species
const std::string & neutralGroundState() const
Gets the ground neutral state of the subspecies Ex: H3* -> H3.
Definition SpeciesBase.h:54
double charge() const
Getter method for the charge of the species.
Definition SpeciesBase.h:47
double _mass
The mass of an individual instance of the species.
Definition SpeciesBase.h:61
double mass() const
Getter method for the mass of the species mass of the species is in kg.
Definition SpeciesBase.h:38
std::string _latex_name
The name of the spcies formatted for printing in a latex_table.
Definition SpeciesBase.h:69
size_t operator()(const prism::SpeciesBase &obj) const
Custom hash function based only on the name of the species.