Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Element Class Reference

#include </home/clem/local/src/opie/noncore/apps/oxygen/kmolelements.h>

Inheritance diagram for Element:

Inheritance graph
[legend]
Collaboration diagram for Element:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Element (const QString &name, double weight)
virtual ~Element ()
double getWeight (QDict< SubUnit > *elstable) const
void addTo (ElementList &els, double coef)
QString getName () const
void writeOut (QString &line)

Private Attributes

double weight
QString name

Detailed Description

A chemical element.

Definition at line 124 of file kmolelements.h.


Constructor & Destructor Documentation

Element::Element const QString n,
double  w
 

A chemical element.

Definition at line 205 of file kmolelements.cpp.

Element::~Element  )  [virtual]
 

Definition at line 209 of file kmolelements.cpp.


Member Function Documentation

void Element::addTo ElementList els,
double  coef
[virtual]
 

Add THIS to ELS, with a coefficient COEF.

Implements SubUnit.

Definition at line 225 of file kmolelements.cpp.

References ElementList::addElement(), and name.

QString Element::getName  )  const [virtual]
 

Reimplemented from SubUnit.

Definition at line 229 of file kmolelements.cpp.

References name.

double Element::getWeight QDict< SubUnit > *  elstable  )  const [virtual]
 

Get the molecular weight of THIS, based on the data from ELSTABLE.

Reimplemented from SubUnit.

Definition at line 221 of file kmolelements.cpp.

References weight.

void Element::writeOut QString line  )  [virtual]
 

Write THIS to LINE, in a format suitable for the element definition file.

Implements SubUnit.

Definition at line 216 of file kmolelements.cpp.

References name, QString::setNum(), and weight.


Member Data Documentation

QString Element::name [private]
 

Definition at line 141 of file kmolelements.h.

Referenced by addTo(), getName(), and writeOut().

double Element::weight [private]
 

Definition at line 140 of file kmolelements.h.

Referenced by getWeight(), and writeOut().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:51 2005 for OPIE by  doxygen 1.4.2