#include <formula.h>
class FormulaAtom gcu/formula.h Represents an atom in a formula.
Definition at line 151 of file formula.h.
§ FormulaAtom()
| gcu::FormulaAtom::FormulaAtom |
( |
int |
Z | ) |
|
§ ~FormulaAtom()
| virtual gcu::FormulaAtom::~FormulaAtom |
( |
| ) |
|
|
virtual |
§ BuildRawFormula()
| void gcu::FormulaAtom::BuildRawFormula |
( |
std::map< int, int > & |
raw | ) |
|
|
virtual |
- Parameters
-
| raw | where to put the result |
Adds the stoichiometry coefficient to the entry correponding to the element.
Implements gcu::FormulaElt.
§ GetValence()
| int gcu::FormulaAtom::GetValence |
( |
| ) |
|
|
virtual |
- Returns
- the (most probable) valence of the element.
Implements gcu::FormulaElt.
§ Markup()
| std::string gcu::FormulaAtom::Markup |
( |
| ) |
|
|
virtual |
- Returns
- the string representation of the element as a markup.
Reimplemented from gcu::FormulaElt.
§ Text()
| std::string gcu::FormulaAtom::Text |
( |
| ) |
|
|
virtual |
- Returns
- the string representation of the element as raw text.
Reimplemented from gcu::FormulaElt.
The documentation for this class was generated from the following file: