kalzium/libscience
#include <moleculeparser.h>
Public Member Functions | |
ElementCountMap () | |
~ElementCountMap () | |
void | add (ElementCountMap &_map) |
void | add (Element *_element, int _count) |
void | clear () |
QList< Element * > | elements () |
QList< ElementCount * > | map () |
void | multiply (int _factor) |
ElementCount * | search (Element *_element) |
Detailed Description
This class is used to count the elements in the molecule which is being calculated.
Definition at line 90 of file moleculeparser.h.
Constructor & Destructor Documentation
ElementCountMap::ElementCountMap | ( | ) |
Constructor.
Definition at line 27 of file moleculeparser.cpp.
ElementCountMap::~ElementCountMap | ( | ) |
Destructor.
Definition at line 33 of file moleculeparser.cpp.
Member Function Documentation
void ElementCountMap::add | ( | ElementCountMap & | _map | ) |
- Parameters
-
_map
Definition at line 51 of file moleculeparser.cpp.
void ElementCountMap::add | ( | Element * | _element, |
int | _count | ||
) |
- Parameters
-
_element _count
Definition at line 75 of file moleculeparser.cpp.
|
inline |
Clear the map of ElementCount pointers.
Definition at line 106 of file moleculeparser.h.
Returns the elements in the molecule.
For example, if the molecule is CO2, a list with C and O will be returned.
- Returns
- the elements in the molecule
Definition at line 60 of file moleculeparser.cpp.
|
inline |
Definition at line 139 of file moleculeparser.h.
void ElementCountMap::multiply | ( | int | _factor | ) |
- Parameters
-
_factor
Definition at line 88 of file moleculeparser.cpp.
ElementCount * ElementCountMap::search | ( | Element * | _element | ) |
- Parameters
-
_element the searched Element
- Returns
- the Element which is searched
Definition at line 39 of file moleculeparser.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.