]> Git trees. - libqmvoc.git/commitdiff
remove implementation from .h
authorAlbert Astals Cid <tsdgeos@terra.es>
Sun, 23 Oct 2005 17:20:18 +0000 (17:20 +0000)
committerAlbert Astals Cid <tsdgeos@terra.es>
Sun, 23 Oct 2005 17:20:18 +0000 (17:20 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=473439

libscience/element.cpp
libscience/element.h

index 8006dbd7633180de7b2ec6e5a5ada6774f721d3e..96145522593be9dd5ad49886b33f236d956b5c77 100644 (file)
@@ -76,6 +76,41 @@ Isotope* Element::isotopeByNucleons( int numberOfNucleons ) const
        return 0;
 }
 
+QList<Isotope*> Element::isotopes() const
+{
+       return m_isotopeList;
+}
+
+QList<double> Element::spectrumList() const
+{
+       return m_spectrumList;
+}
+
+void Element::setIsotopeList( const QList<Isotope*> &list )
+{
+       m_isotopeList = list;
+}
+
+void Element::setSpectrum( Spectrum *spec )
+{
+       m_spectrum = spec;
+}
+
+bool Element::hasSpectrum() const
+{
+       return m_hasSpectrum;
+}
+
+void Element::setHasSepctrum(bool value)
+{
+       m_hasSpectrum = value;
+}
+
+Spectrum* Element::spectrum() const
+{
+       return m_spectrum;
+}
+
 Element::~Element()
 {
 }
@@ -233,3 +268,13 @@ const QString Element::adjustUnits( const int type )
        return v;
 }
 
+void Element::addData( ChemicalDataObject*o )
+{
+       dataList.append( o );
+}
+
+void Element::addData( const QVariant& value, ChemicalDataObject::BlueObelisk type )
+{
+       ChemicalDataObject* tmp = new ChemicalDataObject( value, type );
+       dataList.append( tmp );
+}
index 0bdb3f7ff747cbc3c8c101fdf4a01284261eb296..43d2d62c597f9220c4c862f0641205cdff6a8dec 100644 (file)
@@ -59,47 +59,33 @@ class Element{
                        COVALENT
                };
 
-               QList<Isotope*> isotopes() const{
-                       return m_isotopeList;
-        }
+               QList<Isotope*> isotopes() const;
 
-               QList<double> spectrumList() const{
-                       return m_spectrumList;
-               }
+               QList<double> spectrumList() const;
 
-               void setIsotopeList( const QList<Isotope*> &list ){
-                       m_isotopeList = list;
-               }
+               void setIsotopeList( const QList<Isotope*> &list );
 
                /**
                 * sets the Spectrum of the Element
                 * @param spec the Spectrum of the Element
                 */
-               void setSpectrum( Spectrum *spec ){
-                       m_spectrum = spec;
-               }
+               void setSpectrum( Spectrum *spec );
 
                /**
                 * @return if the element has information about spectra
                 */
-               bool hasSpectrum() const{
-                       return m_hasSpectrum;
-               }
+               bool hasSpectrum() const;
 
                /**
                 * define if the element has a known Spectrum
                 * @param value if true, the Element has a Spectrum
                 */
-               void setHasSepctrum(bool value){
-                       m_hasSpectrum = value;
-               }
+               void setHasSepctrum(bool value);
 
                /**
                 * @return the Spectrum of the element
                 */
-               Spectrum* spectrum() const{
-                       return m_spectrum;
-               }
+               Spectrum* spectrum() const;
 
                /**
                 * adjusts the units for the data. The user can
@@ -151,9 +137,7 @@ class Element{
                 * Sdd the ChemicalDataObject @p o to this Element
                 * @param o the ChemicalDataObject to be added
                 */
-               void addData( ChemicalDataObject*o ){
-                       dataList.append( o );
-               }
+               void addData( ChemicalDataObject*o );
 
                /**
                 * Sdd a ChemicalDataObject with @p value of @p type to this
@@ -161,10 +145,7 @@ class Element{
                 * @param value the QVariant to be added
                 * @param type the BlueObelisk type to be added
                 */
-               void addData( const QVariant& value, ChemicalDataObject::BlueObelisk type ) {
-                       ChemicalDataObject* tmp = new ChemicalDataObject( value, type );
-                       dataList.append( tmp );
-               }
+               void addData( const QVariant& value, ChemicalDataObject::BlueObelisk type );
 
                /**
                 * @return the ChemicalDataObject which stores the information