Base class for species and subspecies. More...
#include <SpeciesBase.h>
Public Member Functions | |
SpeciesBase (const std::string &name) | |
bool | operator== (const SpeciesBase &other) const |
Comparison operator checks if the two base species have the same name. | |
bool | operator!= (const SpeciesBase &other) const |
Comparison for checking whether or not the two are not equal | |
const std::string & | name () const |
Getter method for the name of species. | |
double | mass () const |
Getter method for the mass of the species mass of the species is in kg. | |
double | molarMass () const |
Getter method for the molar mass of the species molar mass is in g / mol. | |
int | chargeNumber () const |
Getter method for the charge number of the species. | |
double | charge () const |
Getter method for the charge of the species. | |
const std::string & | latexRepresentation () const |
Getter method for the latex name of the species. | |
Base class for species and subspecies.
prism::SpeciesBase::SpeciesBase | ( | const std::string & | name | ) |
name | the string representation of the base |