kalzium
KalziumDataObject Class Reference
#include <kalziumdataobject.h>
Detailed Description
This class contains all Element objects.This singleton class collects all the information about the elements of the Periodic Table as list of Element.
Use:
to get the whole list of Element, while aKalziumDataObject::instance()->element( num );
Definition at line 47 of file kalziumdataobject.h.
Public Member Functions | |
| void | setSearch (Search *srch) |
| Search * | search () const |
| Element * | element (int number) |
| QList< Isotope * > | isotopes (int number) |
| QList< Isotope * > | isotopes (Element *element) |
| QPixmap | pixmap (int number) |
| int | numberOfElements () const |
Static Public Member Functions | |
| static KalziumDataObject * | instance () |
Public Attributes | |
| QList< Element * > | ElementList |
Member Function Documentation
| KalziumDataObject * KalziumDataObject::instance | ( | ) | [static] |
| void KalziumDataObject::setSearch | ( | Search * | srch | ) |
| Search * KalziumDataObject::search | ( | ) | const |
| Element * KalziumDataObject::element | ( | int | number | ) |
- Returns:
- the Element with the number
number
- Parameters:
-
number the number of the Element which will be returned
Definition at line 142 of file kalziumdataobject.cpp.
| QList< Isotope * > KalziumDataObject::isotopes | ( | int | number | ) |
- Returns:
- the isotopes of the Element with the number
number
Definition at line 163 of file kalziumdataobject.cpp.
| QList< Isotope * > KalziumDataObject::isotopes | ( | Element * | element | ) |
| QPixmap KalziumDataObject::pixmap | ( | int | number | ) |
Definition at line 150 of file kalziumdataobject.cpp.
| int KalziumDataObject::numberOfElements | ( | ) | const [inline] |
Use this to get the number of elements we have.
It is cached so you are strongly suggested to use this instead of hardcode the number of elements.
- Returns:
- the number of elements we have
Definition at line 94 of file kalziumdataobject.h.
Member Data Documentation
| QList<Element*> KalziumDataObject::ElementList |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference