#include <formula.h>
Public Member Functions | |
| FormulaElt () | |
| virtual | ~FormulaElt () |
| virtual std::string | Markup () |
| virtual std::string | Text () |
| virtual void | BuildRawFormula (std::map< int, int > &raw)=0 |
| virtual int | GetValence ()=0 |
Public Attributes | |
| int | stoich |
| unsigned | start |
| unsigned | end |
class FormulaElt gcu/formula.h Bas class for elements found in a formula.
Definition at line 103 of file formula.h.
| gcu::FormulaElt::FormulaElt | ( | ) |
The constructor.
| virtual gcu::FormulaElt::~FormulaElt | ( | ) | [virtual] |
The destructor.
| virtual void gcu::FormulaElt::BuildRawFormula | ( | std::map< int, int > & | raw | ) | [pure virtual] |
| raw | where to put the result |
Adds the number of atoms of each element to the map taking the stoichiometry coefficient into account.
Implemented in gcu::FormulaAtom, gcu::FormulaBlock, and gcu::FormulaResidue.
| virtual int gcu::FormulaElt::GetValence | ( | ) | [pure virtual] |
Implemented in gcu::FormulaAtom, gcu::FormulaBlock, and gcu::FormulaResidue.
| virtual std::string gcu::FormulaElt::Markup | ( | ) | [virtual] |
Reimplemented in gcu::FormulaAtom, gcu::FormulaBlock, and gcu::FormulaResidue.
| virtual std::string gcu::FormulaElt::Text | ( | ) | [virtual] |
Reimplemented in gcu::FormulaAtom, gcu::FormulaBlock, and gcu::FormulaResidue.
| unsigned gcu::FormulaElt::end |
| unsigned gcu::FormulaElt::start |
1.6.3