PRISM
 v0.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
prism::SubSpecies Class Reference

The parts with a Species can be brokenup into Eg Speices: NH3, SubSpecies: [N, H3]. More...

#include <SubSpecies.h>

Inheritance diagram for prism::SubSpecies:
prism::SpeciesBase

Public Member Functions

 SubSpecies (const std::string &name)
 Creates a simple SubSpecies object.
 
bool operator== (const SubSpecies &other) const
 Comparison operator checks if the sub species have the same member variables.
 
bool operator!= (const SubSpecies &other) const
 Comparison for checking whether or not the two are not equal

 
const std::string & base () const
 getter method for the elemental base of the species
 
const std::string & modifier () const
 getter method for the modifier std::string
 
unsigned int subscript () const
 getter method for the subscript on the subspecies
 
const std::string & neutralGroundState () const
 Gets the ground neutral state of the subspecies Ex: H3* -> H3.
 
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.
 

Protected Attributes

std::string _name
 The full std::string of the species base.
 
double _mass
 The mass of an individual instance of the species.
 
double _molar_mass
 the molar mass of the species
 
double _charge
 the charge of the spcies in coulomb
 
int _charge_num
 The level of charge ex: Ar-4 this is -4.
 
std::string _latex_name
 The name of the spcies formatted for printing in a latex_table.
 

Detailed Description

The parts with a Species can be brokenup into Eg Speices: NH3, SubSpecies: [N, H3].

Constructor & Destructor Documentation

◆ SubSpecies()

prism::SubSpecies::SubSpecies ( const std::string & name)

Creates a simple SubSpecies object.

Parameters
namethe string representation of the subspecies

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