The Gnome Chemistry Utils 0.13.3
|
#include <formula.h>
Public Member Functions | |
virtual | ~FormulaBlock () |
std::string | Markup () |
std::string | Text () |
void | BuildRawFormula (std::map< int, int > &raw) |
int | GetValence () |
Public Attributes | |
std::list< FormulaElt * > | children |
int | parenthesis |
class FormulaBlock gcu/formula.h Represents a sub formula delimited by a pair of matching brackets.
virtual gcu::FormulaBlock::~FormulaBlock | ( | ) | [virtual] |
The destructor.
void gcu::FormulaBlock::BuildRawFormula | ( | std::map< int, int > & | raw | ) | [virtual] |
raw | where to put the result |
Adds the number of atoms of each element to the map taking the stoichiometry coefficient into account.
Implements gcu::FormulaElt.
int gcu::FormulaBlock::GetValence | ( | ) | [virtual] |
Implements gcu::FormulaElt.
std::string gcu::FormulaBlock::Markup | ( | ) | [virtual] |
Reimplemented from gcu::FormulaElt.
std::string gcu::FormulaBlock::Text | ( | ) | [virtual] |
Reimplemented from gcu::FormulaElt.
std::list<FormulaElt *> gcu::FormulaBlock::children |