The Gnome Chemistry Utils
0.12.11
|
#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.
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::FormulaResidue, gcu::FormulaBlock, and gcu::FormulaAtom.
virtual int gcu::FormulaElt::GetValence | ( | ) | [pure virtual] |
Implemented in gcu::FormulaResidue, gcu::FormulaBlock, and gcu::FormulaAtom.
virtual std::string gcu::FormulaElt::Markup | ( | ) | [virtual] |
Reimplemented in gcu::FormulaResidue, gcu::FormulaBlock, and gcu::FormulaAtom.
virtual std::string gcu::FormulaElt::Text | ( | ) | [virtual] |
Reimplemented in gcu::FormulaResidue, gcu::FormulaBlock, and gcu::FormulaAtom.
unsigned gcu::FormulaElt::end |
unsigned gcu::FormulaElt::start |