#include <formula.h>
Public Methods | |
| MolecularFormula (const Ref< Molecule > &m) | |
| Constructors. The argument must be nonnull. | |
| MolecularFormula (const Molecule *m) | |
| ~MolecularFormula () | |
| const char* | formula () const |
| Returns a null terminated string containing the molecular formula. | |
| int | natomtypes () |
| Returns the number of atomtypes. | |
| int | Z (int itype) |
| Returns atomic number of given atomtypeindex. | |
| int | nZ (int itype) |
| Returns number of atoms of given atomtypeindex. | |
There is only one constructor which takes Ref<Molecule> as input.