]> Git trees. - libqmvoc.git/commitdiff
* add API-DOCS
authorCarsten Niehaus <cniehaus@gmx.de>
Sun, 24 Jul 2005 14:30:45 +0000 (14:30 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sun, 24 Jul 2005 14:30:45 +0000 (14:30 +0000)
* QString --> const QString&

svn path=/trunk/KDE/kdeedu/kalzium/src/isotope.h; revision=438158

kalzium/src/isotope.cpp
kalzium/src/isotope.h

index bb3d541910421152cf056287734bd2306b626b62..3f2881f111ae699bc2acbd2d3d3dc09e3a5aa521 100644 (file)
@@ -22,7 +22,7 @@
 #include <kdebug.h>
 #include <klocale.h>
 
-Isotope::Isotope( int neutrons, double percentage, double weight, double halflife, QString format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, QString spin, QString magmoment)
+Isotope::Isotope( int neutrons, double percentage, double weight, double halflife, const QString& format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, const QString& spin, const QString& magmoment)
 {
        m_neutrons = neutrons;
        m_percentage = percentage;
@@ -32,10 +32,15 @@ Isotope::Isotope( int neutrons, double percentage, double weight, double halflif
        m_alphadecay = alphadecay;
        m_betaplusdecay = betaplusdecay;
        m_betaminusdecay = betaminusdecay;
+
        m_ecdecay = ecdecay;
        m_decayenergy = decayenergy;
        m_spin = spin;
        m_magmoment = magmoment;
+
+       m_alphapercentage = alphapercentage;
+       m_betaminusdecay = betaminuspercentage;
+       m_betaplusdecay = betapluspercentage;
 }
 
 QString Isotope::halflifeToHtml()
index 5051c669e51d32ac77fabb94add38b4ad83145f5..7bba33dfc5230c06b449e2264150c41cd199ea92 100644 (file)
@@ -31,7 +31,7 @@
 class Isotope
 {
        public:
-               Isotope( int neutrons, double percentage, double weight, double halflife, QString format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, QString spin, QString magmoment);
+               Isotope( int neutrons, double percentage, double weight, double halflife, const QString& format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, const QString& spin, const QString& magmoment);
 
                bool seconds() const{
                        if ( m_format == "seconds" )
@@ -59,18 +59,30 @@ class Isotope
                        return m_neutrons;
                }
 
+               /**
+                * the weight of the isotope
+                */
                double weight() const{
                        return m_weight;
                }
                
+               /**
+                * @return true if the isotopes decays in alpha rays
+                */
                bool alphadecay() const{
                        return m_alphadecay;
                }
                
+               /**
+                * @return true if the isotopes decays in beta plus rays
+                */
                bool betaplusdecay() const{
                        return m_betaplusdecay;
                }
                
+               /**
+                * @return true if the isotopes decays in beta-minus rays
+                */
                bool betaminusdecay() const{
                        return m_betaminusdecay;
                }
@@ -143,6 +155,21 @@ class Isotope
                * magnetic moment
                */
                QString m_magmoment;
+
+               /**
+                * the percentage with which the istope decays as alpha-rays
+                */
+               double m_alphapercentage;
+               
+               /**
+                * the percentage with which the istope decays as beta-plus 
+                */
+               double m_betapluspercentage;
+               
+               /**
+                * the percentage with which the istope decays as beta-minus
+                */
+               double m_betaminuspercentage;
 };
 
 #endif // ISOTOPE_H