• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kalzium/libscience

Public Member Functions | List of all members
ElementCountMap Class Reference

#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.

Author
Inge Wallin

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.

void ElementCountMap::clear ( )
inline

Clear the map of ElementCount pointers.

Definition at line 106 of file moleculeparser.h.

QList< Element * > ElementCountMap::elements ( )

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.

QList<ElementCount*> ElementCountMap::map ( )
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
_elementthe 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:
  • moleculeparser.h
  • moleculeparser.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalzium/libscience

Skip menu "kalzium/libscience"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal