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

kalzium

KalziumDataObject Class Reference

#include <kalziumdataobject.h>

List of all members.


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:

 KalziumDataObject::instance()->ElementList;
to get the whole list of Element, while a
 KalziumDataObject::instance()->element( num );
will return you the pointer to the num'th element of the Periodic Table.

Author:
Carsten Niehaus

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]

Returns:
the instance of this class

Definition at line 37 of file kalziumdataobject.cpp.

void KalziumDataObject::setSearch ( Search *  srch  ) 

Set the main Search to srch.

Definition at line 168 of file kalziumdataobject.cpp.

Search * KalziumDataObject::search (  )  const

Returns:
the main Search

Definition at line 173 of file kalziumdataobject.cpp.

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  ) 

Returns:
the isotopes of the Element Element

Definition at line 158 of file kalziumdataobject.cpp.

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 list of elements.

Definition at line 58 of file kalziumdataobject.h.


The documentation for this class was generated from the following files:
  • kalziumdataobject.h
  • kalziumdataobject.cpp

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal