#include <formula.h>
Public Member Functions | |
FormulaAtom (int Z) | |
virtual | ~FormulaAtom () |
std::string | Markup () |
std::string | Text () |
void | BuildRawFormula (std::map< int, int > &raw) |
int | GetValence () |
class FormulaAtom gcu/formula.h Represents an atom in a formula.
Definition at line 151 of file formula.h.
gcu::FormulaAtom::FormulaAtom | ( | int | Z | ) |
Z |
virtual gcu::FormulaAtom::~FormulaAtom | ( | ) | [virtual] |
The destructor.
void gcu::FormulaAtom::BuildRawFormula | ( | std::map< int, int > & | raw | ) | [virtual] |
raw | where to put the result |
Adds the stoichiometry coefficient to the entry correponding to the element.
Implements gcu::FormulaElt.
int gcu::FormulaAtom::GetValence | ( | ) | [virtual] |
Implements gcu::FormulaElt.
std::string gcu::FormulaAtom::Markup | ( | ) | [virtual] |
Reimplemented from gcu::FormulaElt.
std::string gcu::FormulaAtom::Text | ( | ) | [virtual] |
Reimplemented from gcu::FormulaElt.