#include <formula.h>
class FormulaBlock gcu/formula.h Represents a sub formula delimited by a pair of matching brackets.
Definition at line 189 of file formula.h.
§ ~FormulaBlock()
virtual gcu::FormulaBlock::~FormulaBlock |
( |
| ) |
|
|
virtual |
§ BuildRawFormula()
void gcu::FormulaBlock::BuildRawFormula |
( |
std::map< int, int > & |
raw | ) |
|
|
virtual |
- Parameters
-
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.
§ GetValence()
int gcu::FormulaBlock::GetValence |
( |
| ) |
|
|
virtual |
- Returns
- the (most probable) valence of the element.
Implements gcu::FormulaElt.
§ Markup()
std::string gcu::FormulaBlock::Markup |
( |
| ) |
|
|
virtual |
- Returns
- the string representation of the element as a markup.
Reimplemented from gcu::FormulaElt.
§ Text()
std::string gcu::FormulaBlock::Text |
( |
| ) |
|
|
virtual |
- Returns
- the string representation of the element as raw text.
Reimplemented from gcu::FormulaElt.
§ children
std::list<FormulaElt *> gcu::FormulaBlock::children |
The list of the formula elements delimited by the pair of brackets.
Definition at line 221 of file formula.h.
§ parenthesis
int gcu::FormulaBlock::parenthesis |
0 for "()", 1 for "[]" or 2 for "{}".
Definition at line 225 of file formula.h.
The documentation for this class was generated from the following file: