class to represent a chemical formula
More...
#include <Chemistry.hpp>
List of all members.
Public Types |
typedef std::map
< Element::Type, int > | Map |
Private Attributes |
boost::shared_ptr< Impl > | impl_ |
Detailed Description
class to represent a chemical formula
Definition at line 133 of file Chemistry.hpp.
Member Typedef Documentation
Constructor & Destructor Documentation
pwiz::chemistry::Formula::Formula |
( |
const std::string & |
formula = "" | ) |
|
formula string given by symbol/count pairs, e.g. water: "H2 O1" (whitespace optional)
pwiz::chemistry::Formula::Formula |
( |
const char * |
formula | ) |
|
pwiz::chemistry::Formula::Formula |
( |
const Formula & |
formula | ) |
|
pwiz::chemistry::Formula::~Formula |
( |
| ) |
|
Member Function Documentation
const Formula& pwiz::chemistry::Formula::operator= |
( |
const Formula & |
formula | ) |
|
double pwiz::chemistry::Formula::monoisotopicMass |
( |
| ) |
const |
double pwiz::chemistry::Formula::molecularWeight |
( |
| ) |
const |
std::string pwiz::chemistry::Formula::formula |
( |
| ) |
const |
int pwiz::chemistry::Formula::operator[] |
( |
Element::Type |
e | ) |
const |
access to the Element's count in the formula
int& pwiz::chemistry::Formula::operator[] |
( |
Element::Type |
e | ) |
|
Map pwiz::chemistry::Formula::data |
( |
| ) |
const |
Formula& pwiz::chemistry::Formula::operator*= |
( |
int |
scalar | ) |
|
bool pwiz::chemistry::Formula::operator== |
( |
const Formula & |
that | ) |
const |
formulas are equal iff their elemental compositions are equal
bool pwiz::chemistry::Formula::operator!= |
( |
const Formula & |
that | ) |
const |
Member Data Documentation
boost::shared_ptr<Impl> pwiz::chemistry::Formula::impl_ |
|
private |
The documentation for this class was generated from the following file:
- /Users/parag/_Research/pwiz/svn/trunk/pwiz/pwiz/utility/chemistry/Chemistry.hpp