Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

sc::MolecularFormula Class Reference

The MolecularFormula class is used to calculate the molecular formula of a Molecule. More...

#include <formula.h>

List of all members.

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.


Detailed Description

The MolecularFormula class is used to calculate the molecular formula of a Molecule.

There is only one constructor which takes Ref<Molecule> as input.


The documentation for this class was generated from the following file:
Generated at Fri Jan 10 08:15:32 2003 for MPQC 2.1.3 using the documentation package Doxygen 1.2.14.