]> Git trees. - libqmvoc.git/commitdiff
apidox and removal of a useless method
authorCarsten Niehaus <cniehaus@gmx.de>
Wed, 22 Feb 2006 10:38:39 +0000 (10:38 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Wed, 22 Feb 2006 10:38:39 +0000 (10:38 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=512350

libscience/element.h
libscience/isotope.cpp
libscience/isotope.h

index 9145f79d427a5ff274d7381e0296da3fbf46ca3f..c3889ee91c3b5b62598e80ac923251788843d896 100644 (file)
@@ -44,13 +44,13 @@ class Element
                virtual ~Element();
                
                /**
-                * Sdd the ChemicalDataObject @p o to this Element
+                * Add the ChemicalDataObject @p o to this Element
                 * @param o the ChemicalDataObject to be added
                 */
                void addData( ChemicalDataObject*o );
 
                /**
-                * Sdd a ChemicalDataObject with @p value of @p type to this
+                * Add a ChemicalDataObject with @p value of @p type to this
                 * Element
                 * @param value the QVariant to be added
                 * @param type the BlueObelisk type to be added
index 0d38c38f35fc7fc4424c9f72e1228fa11bd43ac9..7d4ac406a7104dbc92fe51b1f447d2f15dca84bf 100644 (file)
@@ -33,11 +33,6 @@ Isotope::~Isotope()
 {
 }
 
-ChemicalDataObject* Isotope::data() const
-{
-       return m_mass;
-}
-
 void Isotope::addData( ChemicalDataObject* o )
 {
        if ( o->type() == ChemicalDataObject::exactMass )
@@ -53,7 +48,6 @@ void Isotope::addData( ChemicalDataObject* o )
        else if ( o->type() == ChemicalDataObject::halfLife )
                m_halflife = o;
 
-       //FIXME in the future there should be real CDOs. But CDO only supports one datavalue...
        if ( o->type() == ChemicalDataObject::betaplusDecay )
                m_betaplus = o;
        else if (  o->type() == ChemicalDataObject::betaminusDecay )
index db6789eb989685f5b297e8ea4987622b93da3187..d3211bea481d0986a428569861b7e2c5b50ff701 100644 (file)
@@ -36,22 +36,49 @@ class Isotope
                 * Constructs a new empty isotope.
                 */
                Isotope();
+
+               /**
+                * Destructor
+                */
                virtual ~Isotope();
 
+               /**
+                * This struct stores the information how the nucleons in the 
+                * isotopes are split into neutrons and protons.
+                */
                struct Nucleons
                {
+                       /**
+                        * the number of neutrons of the isotope
+                        */
                        int neutrons;
+                       
+                       /**
+                        * the number of protons of the isotope
+                        */
                        int protons;
                };
 
-               ChemicalDataObject* data() const;
-
+               /**
+                * @return the mass of the isotope
+                */
                double mass() const;
 
+               /**
+                * @return the errormargin ( delta mass ) of the isotope
+                */
                QString errorMargin() const;
 
+               /**
+                * If the isotope belongs to Iron, this method will return "26"
+                * @return the number of the element the isotope belongs to
+                */
                int parentElementNumber() const;
 
+               /**
+                * If the isotope belongs to Iron, this method will return "Fe"
+                * @return the symbol of the element the isotope belongs to
+                */
                QString parentElementSymbol() const;
 
                QString spin() const;
@@ -100,18 +127,22 @@ class Isotope
                        return m_alpha;
                }
 
+               /**
+                * This enum stores the different kinds of decay
+                */
                enum Decay
                {
-                       ALPHA,
-                       BETAPLUS,
-                       BETAMINUS,
-                       EC
+                       ALPHA/**<alpha decay*/,
+                       BETAPLUS/**<beta plus decay*/,
+                       BETAMINUS/**<beta minus decay*/,
+                       EC/**ec decay*/
                };
 
                /**
-                * @return the number of neutrons of the Isotope after the decay
+                * @return the nucleons of neutrons of the Isotope after the decay
                 */
                Isotope::Nucleons nucleonsAfterDecay( Decay kind );
+
        private:
                /**
                 * the symbol of the element the isotope belongs to